Ok, it does not happen only for iron of course, but for all resources. Already happend to me 4 or 5 times.
If you trade the exact amount of resources to build something, then you will see a message like that.
Now i know that, and i always buy 1 more... So if i need 2300 wood, i buy 2301...
But it must be easy to fix... no?