I did some changes to the standard commercial invoice and made the below report.

In this case i wanted to get the customer part number corresponding to the inventory Id in the sales order. Please check the below screenshot.

So I joined the InventoryItem with the INitemXref by the Inventory ID. And also i joined the INitemXref with the BAccount by the BAccountId as follows.

But when doing this below “XML not well-formed” error pops out.

So please give me a support to overcome this issue. Thank you.