Education

I entered my 529 contribution on line 30 which is in “red”. Thus , an error and I can’t file . On IT-201 indicated a full time NY resident . If I leave blank and don’t take the deduction it doesn’t ifucatecsn error  and I lose it. What’s  the problem ?