Urgunet help needed. Pyodide code is gone and not visible after updating to v2.3.5

Describe the problem/error/question

After I updated my environment to v2.3.5 from v1.123 (most likely, didn’t notice the exact version), all my Python code nodes that contained Pyodide code, are not showing previous code at all. I was aware about the breaking change but in my understanding I should be able to just modify the code after update to follow the change. However now I can’t see code in any of my nodes. After I select Python or JS, it just resets it to plain example.

What is the error message (if any)?

Please share your workflow

This is just an example of a node, I have around dozens of them across many workflows

Share the output returned by the last node

Problem in node ‘Combine preferences data‘
Could not get parameter

By that output I suppose that previous code that was using data retrieving from previous node with _input.all() still exists somewhere but is not visible for some reason.

Information on your n8n setup

  • n8n version: 2.3.5
  • Database: SQLite
  • n8n EXECUTIONS_PROCESS setting: own, main
  • Running n8n via: n8n cloud
  • Operating system:

Urgent help needed to fix the workflow.

Hi @Ustym_Buchko

In v2.x, Python/JS nodes were rewritten, so old code isn’t shown in the editor, but it’s still in the workflow JSON

Try this Export your workflow JSON. And Find your node’s code field your old code is there. Copy it into the new node and update _input.all() → items or items[0].json.

Your code isn’t at lost it just needs manual migration

That’s what I have in the object of code node:
{
“parameters”: {
“language”: “python”
},
“type”: “n8n-nodes-base.code”,
“typeVersion”: 2,
“position”: [
64,
-160
],
“id”: “8c04bc05-6234-41fd-a912-33a13e12b942”,
“name”: “Combine preferences data”,
“executeOnce”: false
}

Don’t see code here unfortunately

Have you try to open an execution before the upgrade

Click the code node

Most times the executed source code is still visible there, even if the editor lost it

Same problem here. In my case, every execution before the update is gone.

@igorlaltuf @Ustym_Buchko

Check any exports, backups, or Git repos where workflows may have been saved

And did it happened on n8n cloud

I would strongly recommend you reach out to the support team

But note for future make sure to export workflows before upgrades

yes, no code displayed there as well and the same error in Language field that python value is not supported

That confirm it that the code is fully gone

What you can do now is

Delete and recreate the Code node

Re-implement the logic using:
JS Code node (v2), or New Python node (v2 syntax) if available on your instance

Rebuild logic using items, not _input.all()

same problem here

i’d say horrible experience with the latest updates, disappearing nodes and codes

1 Like

Thanks a lot for bringing the problem to our attention. That was definitely not intended like that. Sorry for the problems it caused. A PR has already opened to fix the issue:

1 Like

Just updated to version 2.3.6, but the issue still persists.