langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
53.37k stars 7.8k forks source link

Batch run workflow report "The content of the uploaded file does not match the structure" #11093

Closed lfzm closed 5 days ago

lfzm commented 5 days ago

Self Checks

Dify version

v0.12.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

When running a workflow in batches, when the variable display name is Chinese, or the variable name and the variable display name are inconsistent, the uploaded file will report "the content of the uploaded file does not match the structure". Tip:

  1. The uploaded file is a template file downloaded.
  2. Change the variable display name to English, and you can succeed.

Failure example: 1732586448994

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

dosubot[bot] commented 5 days ago

Hey @lfzm! 👋 I'm here to help you with any bugs, questions, or contributions you have for the Dify project. I can assist you while we wait for a human maintainer to review your issue.

I found a similar closed issue related to encoding problems with non-English characters, specifically Chinese. The suggested solution was to change the return type in the HTTP module to 'text/plain; charset=utf-8' to resolve encoding issues [1]. This might be relevant to your problem with variable display names in Chinese causing structure mismatches in the batch run workflow.

To continue talking to Dosu, mention @dosu.

crazywoola commented 5 days ago

You must keep the headers in your template 风向标内容 & 风向标编号.

lfzm commented 1 day ago

@crazywoola
There are 风向标内容 & 风向标编号 in the column of the template. I modified the data directly by downloading the template.