Array of objects expected in parameter 'Tracking'

:bullseye: What is your goal?

To get the Xero ‘Create an Invoice’ module to recognise an array as an array

:thinking: What is the problem & what have you tried?

I’m creating a Xero invoice, and am setting the line items via an array that is being parsed from a JSON and then aggregated. However, despite the Tracking section of the bundle being set to an array, the Xero ‘Create an Invoice’ module keeps spitting out ‘BundleValidationError’ and ‘Array of objects expected in parameter ‘Tracking’.’. Attached is the bundles outputted by the array aggregator and the error message from the Xero ‘Create an Invoice’ module. How do I get it to recognise that the array is in fact an array?

:clipboard: Error messages or input/output bundles

BundleValidationError
Array of objects expected in parameter ‘Tracking’

:camera_with_flash: Screenshots (scenario flow, module settings, errors)

Hey
Tracking is a primitive array, not an array of objects/collections.

If you refer to the image, you can see that my tracking array is a primitive array.

Exactly, but the module you’re mapping it into is expecting an array of objects, not a primitive array.

2 Likes

Ahh yep, that was it. So confusing that they do it as a collection of a text rather than just text. Thank you!

1 Like

You’re welcome :slight_smile:
Could be confusing yea.