Can I not deduct my IRA contribution of $5500? My employer's retirement plan was closed in 2016 but I received my distribution (rollover) in 2017. My AGI is $240,000.

I'm getting the message that the AGI is too high to deduct, but I thought if you don't have an employer retirement plan available there is no income limit.