Issue with Array Aggregator and Missing "item_attribute_name" in Make

Hello everyone from Paris,

I’m facing an issue with my Make scenario, which automates invoice creation in Tiime from orders placed on Shopify.

Context:

When a new order is placed on Shopify, my scenario retrieves product information and creates a corresponding invoice in Tiime. Each product should be added as a separate line item in the invoice.

To handle this, I set up:
:one: An Iterator to process each product individually.
:two: An Array Aggregator immediately after, to reconstruct an Array[] containing all invoice line items.
:three: This array is then mapped directly into the Lines field of the “Tiime Apps - Invoice Creation” module.

Problem encountered:

I get the following error in Make:
:police_car_light: “[400] This value must not be null.”

After multiple tests:
:white_check_mark: If I manually fill in the product details in the Tiime Apps module, the invoice is successfully created.
:cross_mark: If I use the array generated by the Array Aggregator, which contains exactly the same fields, I get the error.

By comparing both cases, I noticed that:

  • With manual input, the field item_attribute_name = "Categories" is correctly set.
  • With the Array Aggregator, this field is missing and hidden, which prevents validation.


Question:

How can I force the addition of item_attribute_name within the Array Aggregator so that it is correctly recognized by Tiime when sending data?

Thanks in advance for your help! :raising_hands: :blush:

You can send the input and output variable of the setup here

Of course, let me know in what format you’d like me to send them?

you can download and send them, once the scenarip runs and you click on the bubbles at the top of each modules you can downlod them there

Here, the jSON Input/Output for Iterator module, Array Aggregator and TiimeApps when the error occurs (when data come from ArrayAggregator) and when it’s OK (when data are added manually).

If you compare TiimeAppsError-Input.json and OK-TiimeApps-Input.json you can see that “item_attribute_name”: “Catégorie” is missing. But It’s an hidden field, I can’t update it value.

“item_attributes”: [
{
“item_attribute_name”: “Catégorie”,
“item_attribute_value”: “sale”
}
]

ArrayAggr43-output.json (1.7 KB)
TiimeAppsError-Input.json (2.2 KB)
OK-TiimeApps-Input.json (2.3 KB)