dify icon indicating copy to clipboard operation
dify copied to clipboard

Workflow Reverts to Initial Setup with draft_workflow_not_sync Error in Dify Workflow Creator

Open mohammadmaso opened this issue 6 months ago • 1 comments

Self Checks

  • [X] This is only for bug report, if you would like to ask a question, please head to Discussions.
  • [X] I have searched for existing issues search for existing issues, including closed ones.
  • [X] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • [X] Please do not modify this template :) and fill in all the required fields.

Dify version

0.6.16

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

1- Create a new workflow in the Dify Workflow Creator. 2- Make several changes to the workflow (e.g., adding nodes, connecting nodes, or adjusting settings). 3- Attempt to save or continue editing the workflow. 4- The workflow unexpectedly jumps back to its initial setup state.

✔️ Expected Behavior

  • The workflow resets to its initial setup state, losing all recent changes.
  • The browser console shows the following error:
{
 "code": "draft_workflow_not_sync",
 "message": "Workflow graph might have been modified, please refresh and resubmit.",
 "status": 400
}

❌ Actual Behavior

  • The workflow should save changes or allow continued editing without reverting to the initial setup state.

Please let me know if any additional information is required. I appreciate your help in resolving this issue!

mohammadmaso avatar Aug 11 '24 17:08 mohammadmaso