python nodes in prompt flow is erasing the code

Mohammad, Abdel Salam 0 Reputation points
2025-04-10T08:11:20.6833333+00:00

Hi,

I developed a prompt flow using Azure AI Foundry back in Feb, 2025. I came today to continue working on it, and I found that all the Python nodes are without the code, just a black node. I need the flow with nodes, please.

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,332 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Amira Bedhiafi 33,071 Reputation points Volunteer Moderator
    2025-04-10T09:35:59.03+00:00

    Hello Mohammad !

    Thank you for posting on Microsoft Learn.

    Microsoft has been rolling out updates to Prompt Flow and the underlying Azure AI Studio tooling.

    In some cases, these updates can affect saved flows, especially those created before certain February/March 2025 updates.

    If the .promptflow file or node JSON was partially corrupted or not properly synced, the UI may show "blank" nodes.

    If you're viewing the flow in a newer version of the studio that expects additional metadata, and your original flow didn't have it, nodes may fail to render properly.

    What you can do ?

    Try to inspect .promptflow/ folder and node .json files

    • Open your local or cloud project directory.
    • Look inside .promptflow/flows/<flow-name>/ or .promptflow/ folders.
    • Check if the .json files for each Python node contain the "code" block or "source" property.

    Try to reach out to the support team by opening a ticket if your issue still persist.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.