Error on creating Sales order via AIF

Hi all

On creating Sales Order via AIF I am getting error

"There is no sales unit on the sales line with item D0004."

I am creating SalesOrder using visual studio.

Help me out…

I think your missing the Sales unit field to filled in the class what your using to create the sales order. Might be unit field i am not sure check the data for the item in which unit your creating the sales order.