It depends- are you including "IDUSA" in the document number? This is a required input that can be found on the back of your NY license. You can find the number after (not including) "IDUSA."
For more information, see Where do I find my document number so that I can e-file my New York return?