x
-.txt
n
You might want to do a test in debugger and see your object after transform if it has all the valid line items and locations. I had a similar issue in the past but my resolution was to make the transform dynamic and adding the locations to the line items.