Account: 1410 - Stock In Hand can only be updated via Stock Transactions

Just upgrade from version 10 to version 13. trying to cancel and stock entry done in version 10 and get account out of syn message. with am option to create journal entry. When i create the journal and try to submit am getting Account: 1410 - Stock In Hand - KSI can only be updated via Stock Transactions

You can change the account type of the stock in hand account from stock to any other account type and pass the journal entry. After that please change the account type back into stock. However I have no idea why the account out of sync msg is coming.