Where are you being asked for a state tax id number?
If you are referring to a W-2, the state information is entered based on the W-2 you received as shown in boxes 15 thru 17.
If your state does not have a personal income tax then leave boxes 15 thru 17 on the W-2 blank (empty?