Related question-- NJ resident with a NJ license works in NY, so he files a NY non resident return. The NY software asks for the NY code. Say what? He doesn't have a NY license!
NJ Drivers license works fine for NY non resident. I've done lots of them. Haven't tried it but I think the selection TP has no license may clear the error. There's some direction on the NY DOR website that I think gives more detailed direction if no license.