AIF exception - The value 'xxx' in field 'Lot ID' is not found in relating table'Inventory transactions' ( ax 2009)

Hi all,

Our system is AX 2009, when we import xml file(packing slip) from another system to create 1: sales order, 2: packing slip

Then we got this exception:

Error found when validating record.

The value ‘xxx’ in field ‘Lot ID’ is not found in relating table’Inventory transactions’

Creation has been canceled.

The error caused by the item was not in stock.

My question is: how can i locate where the error is thrown? validating inventtransId?

Thanks!

Rosa