Tax-exempt interest state allocation

On the 1099-div for a brokerage account, box 12 Exempt-interest dividends, I have an entry for the state I live in, which is MA, and a line for all nonresident states, which is XX.  At the end of box 12 it asks for the state where the dividends were earned.  In the past, I've always entered MX, but the time I'm getting an error that it's not a valid state.  Am I supposed to enter just MA because that's the state I live in?