Upsert data in a lookup cache - Both 200 and 401 Status Codes? - Mock Response must be in integrator.io canonical format

Hi Everyone,

I am building a flow that upserts data into a lookup cache. It works fine, but when I click “Populate with: Live data” under “Mock response” and try to save, it throws a “Mock Response must be in integrator.io canonical format” error message.

I noticed that both status codes 200 and 401 are returned. How can it both be successful and unsuccessful at the same time? I dug into it and the lookup cache has the value I upserted, so it works but still throws the 401 error upon attempting to populate with live data.

In any case, I got it to save by just removing the object within the “errors” array.

Figured I’d put this out there incase anyone else runs into this issue or if it’s a bug to be fixed.

Hi @jaredfraley

Thanks for flagging this and for sharing the workaround.

We’re going to log this as a bug and evaluate the right fix so “Populate with: Live data” works smoothly for this import scenario without you needing to manually edit the errors array.

Appreciate you calling it out.

1 Like

Thank you for bringing this up, I ran into the same issue.

1 Like