Shopify Flow - variable in Run code action error

I am running into this error with Shopify Flow, has anyone seen it before?

Ran into transient error: Failed to query data for subsequent steps: Failed to create GraphQL query - undefined method `type' for nil

The flow is querying some customer metafields and adding some tags, as well as writing these metafields. I have added the metafield definitions so not really sure what it could be.

The error is on the trigger, which is customer tags added.

Since this afternoon, it started giving problems with variables in the run code action. Not with the ones already setup, but with new workflows.What I usually do is log the metafield as a variable and then it’s available as an alias in the run code action. Not working this time

Hi, we can’t really troubleshoot this without a workflow run link and more details. If you don’t want to share here, you may need to go through support.

Hi @paul_n, I re-created the Flow from scratch and the problem is no longer happening. Same trigger, same metafields, same definitions and actions.

Would it be helpful for the support theme to get the logs from the previous workflow? Otherwise I’ll mark it as resolved