hi Sahana,
The number of entries in target getting created for LineItem is not the same as expected.
Yes its true that on checking on individual level it might not give error.
So you need to check what is the no of Lineitems getting generated with the context for target xml.
There might be not the right elements in each context so Please make sure you put proper context change and no of elements in total queue should be appropriate.
Please share your target structure and Mapping for better clarity.
Hope this helps.
thanks and regards,
Praveen T