Dylan Sather (Pipedream) : if you’re seeing TypeErrors, it’s likely that some intermediate property (like steps.shopify_update_inv.product) is undefined, which means you won’t be able to read the sku property.
There are a few solutions to this problem, but Lodash’s get function will handle the absence of intermediate object properties and return undefined if the value doesn’t exist: Handle missing variable - Pipedream
Dylan Sather (Pipedream) : do you know if the Shopify methods like shopify.inventoryItem.get return Promises? As long as you’re awaiting those, Pipedream should wait for them to resolve before the next step runs, but feel free to add console.log statements at the end of the step to confirm
Dylan Sather (Pipedream) : Do you see the step exports below the Shopify update step for these failed events? That should make it clear what’s returned and what’s not from the step
Nick G : Because of the quantity of events they no longer appear in my workflow list to be retried - is there a way to trigger that from the error workflow?
Dylan Sather (Pipedream) : Not currently, but you can fetch the last 100 errors using the REST API, which should contain the original payload, so you can send it to the workflow: https://docs.pipedream.com/api/rest/#get-workflow-errors .
We’re planning to expose this in the UI eventually so you get a list of the last 100 errors for each workflow (regardless of how many successful events are processed).
Nick G : ok I was able to grab the original event body from the error and manually edit the test event from my workflow and rerun it, it succeeded without issue. Going to try logging more details and review throughout the day