# Exception: Unknown 'Run Code' execution error

**URL:** <https://community.shopify.com/t/exception-unknown-run-code-execution-error/606982>\
**Category:** Shopify Flow\
**Tags:** troubleshooting\
**Created:** [April 9, 2026, 12:31pm UTC](https://community.shopify.com/t/exception-unknown-run-code-execution-error/606982 "2026-04-09T12:31:17Z")\
**Posts on this page:** 4\
**Page:** 1

## AI-generated summary

A previously stable Shopify Flow started failing with the generic error "Exception: Unknown 'Run Code' execution error," including when tested on older orders that had worked before. Replacing the logic with dummy code did not help, which strongly suggests a Shopify platform or Flow sandbox issue rather than a problem in the workflow code.

Suggested troubleshooting steps:
- Duplicate the entire flow and test the copy.
- Delete and re-add the "Run Code" action, in case that node is corrupted.
- Deactivate and reactivate the workflow to reset execution.
- Check the Shopify status page for Flow-related incidents.

Recommended next action:
- Contact Shopify Support and ask for escalation to the Flow team.
- Provide the flow name, affected order IDs, and the exact error message to help investigation.

No confirmed fix was reported in the discussion. The issue remains open, with the main consensus being that the failure is likely on Shopify’s side and requires support escalation.

<div class="post-metadata">

**Author:** ![Lewis\_Wright](https://avatars.discourse-cdn.com/v4/letter/l/35a633/32.png) [@Lewis\_Wright](https://community.shopify.com/u/Lewis_Wright)\
**Post date:** [April 9, 2026, 12:31pm UTC](https://community.shopify.com/t/exception-unknown-run-code-execution-error/606982/1 "2026-04-09T12:31:18Z")

</div>

A flow that has been working fine for months has suddenly started failing with “Exception: Unknown ‘Run Code’ execution error”. If I test it on existing orders that previously worked, it still errors. Shopify provides no logs, so it’s impossible to determine the cause of the issue.

I’ve tried replacing the code with dummy code that does nothing and it still seems to trigger the same error so the problem is almost certain on Shopify’s side.

---

<div class="post-metadata">

**Author:** ![ShopIntegrations](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/shopintegrations/32/395638_2.png) [@ShopIntegrations](https://community.shopify.com/u/ShopIntegrations)\
**Post date:** [April 9, 2026, 6:34pm UTC](https://community.shopify.com/t/exception-unknown-run-code-execution-error/606982/2 "2026-04-09T18:34:06Z")

</div>

Yeah, if even dummy code is throwing that generic exception, the Flow execution sandbox is definitely choking on Shopify’s end. I ran into a similar weird glitch with the Run Code action a few weeks ago.

Two things you can try before dealing with support:

1. Duplicate the entire flow and test the copy.
2. Delete the Run Code block completely and add a fresh one in. Sometimes the specific node gets corrupted behind the scenes.

If it still fails, you’ll unfortunately have to escalate to Shopify Support. Tell them to flag it directly to the Flow team since you’ve already isolated it to the sandbox failing on empty code.

---

<div class="post-metadata">

**Author:** ![Michross](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/michross/32/388510_2.png) [@Michross](https://community.shopify.com/u/Michross)\
**Post date:** [April 9, 2026, 8:46pm UTC](https://community.shopify.com/t/exception-unknown-run-code-execution-error/606982/3 "2026-04-09T20:46:38Z")

</div>

This is almost certainly a Shopify-side issue, the fact that even dummy code throws the same error is the giveaway, it’s not your logic at all.

A few things worth trying while you wait for them to fix it:

- **Duplicate the Flow** and run it fresh; sometimes a new instance clears whatever got corrupted on the backend

- **Remove and re-add the “Run Code” action** entirely in the duplicated flow

- **Check Shopify Status page** at [shopify.com/status](http://shopify.com/status) to see if Flows/Run Code is flagged

Most importantly raise it directly with **Shopify Support** and include the Flow name, affected order IDs and the exact error, the more examples you give them the faster they escalate it.

You’re not doing anything wrong here, just needs to be on their radar!

---

<div class="post-metadata">

**Author:** ![mastroke](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/mastroke/32/399915_2.png) [@mastroke](https://community.shopify.com/u/mastroke)\
**Post date:** [April 11, 2026, 7:00pm UTC](https://community.shopify.com/t/exception-unknown-run-code-execution-error/606982/4 "2026-04-11T19:00:03Z")

</div>

This sounds genuinely frustrating, especially without any logs to debug. Based on what you’re describing—dummy code still failing and previously working orders now throwing errors—it does seem like a platform-side issue rather than a problem with your code logic.

A few things you can try:

**Immediate steps:**

- Deactivate and then reactivate the workflow. This can sometimes reset the execution environment for the “Run Code” action.

- Duplicate the workflow and test the duplicate. A fresh workflow instance can occasionally bypass any corrupted state causing the issue.
