Workflow Partial Fails
Status: Closed · Asked by iRest Institute on · 0 views
Hi iRest Institute Team,
We reviewed your workflow and the provided Task History and identified the following errors:
1. Iterator and JSON Extractor – Empty Data
In the Shopify V2 – Order Fulfillment trigger, the Advanced response format provides the line_items data, which is mapped to the Iterator. Within the same Shopify response, the discount_allocations field is returning an empty array ([]).
Your JSON Extractor is configured to extract data from this discount_allocations field. Since the field is empty in the captured response, the JSON Extractor returns the error 422 – Empty data. This explains the empty-data error observed in your Task History.
If you expect discount allocation data for this order, please verify the order details in Shopify. If this data is optional, you can add a condition to handle cases where discount_allocations is empty before passing it to the JSON Extractor.
2. Shopify V2 – Find Product by ID
We also found a separate error in this action:
401 – Invalid API key or access token (unrecognized login or wrong password)
Please verify your Shopify connection in Pabbly Connect and reconnect it if the credentials are invalid.
Since you mentioned that the workflow started experiencing partial failures after being converted to the new builder, please check the above points and test the workflow again.
If the issue persists after these checks, please share the latest Task History ID so we can investigate the remaining failures further.
Pabbly Support:
Hi iRest Institute Team,We reviewed your workflow and the provided Task History and identified the following errors:1. Iterator and JSON Extractor – Empty DataIn the Shopify V2 – Order Fulfillment trigger, the Advanced response format provides the line_items data, which is mapped to the Iterator. Wi
Hi Support,
1) Yes, if the Price of the Item in Shopify is $0, the discount_allocations field will return an empty array ([]). However, if the price is above $0, it array will have data, which is needed. That's why the JSON Extractor step has been marked as "Ignore Error". It should see the error and continue to process the next step, but it looks like it's stopping there. Can you help me get it working again?
2) Thanks for letting me know about this. It looks like Shopify needed me to make a new connector App for Pabbly. This is working. So I just need your help resolving 1) above.
Update, I tried turning off "Ignore Error" and then enabling it again. That seems to have worked. One odd thing is that the History still only shows up to the Iterator step happening. But it's successfully going to the end and passing the Data on to the next Workflow. So it's good enough for now.
Thank you for your help. You can mark this as resolved.
Hi iRest Institute Team,
Thank you for providing the update! We are glad to hear that toggling the "Ignore Error" setting resolved the issue and that your workflow is executing and passing data as expected.
Regarding the history display, because the workflow executes rapidly through the iterator steps, the history logs may occasionally take a moment to update or condense, but as long as the downstream actions receive the data, the execution flow is functioning correctly.
As requested, we are closing this ticket and marking it as Resolved. If you encounter any further issues or have additional questions, feel free to reach out or open a new ticket anytime.