An error occurred while importing from the DSL folder. #15930

Closed
opened 2026-02-21 19:24:01 -05:00 by yindo · 4 comments
Owner

Originally created by @hangboss on GitHub (Aug 6, 2025).

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

Version 1.7.1

Cloud or Self Hosted

Cloud

Steps to reproduce

send api request: https://cloud.dify.ai/console/api/apps/imports

request info:

{"mode":"yaml-content","yaml_content":""}

response info:

{
    "id": "d54e16fa-d5f7-4636-8ebd-e2f41aaa5147",
    "status": "failed",
    "app_id": null,
    "app_mode": null,
    "current_dsl_version": "0.3.1",
    "imported_dsl_version": "",
    "error": "yaml_content is required when import_mode is yaml-content"
}

✔️ Expected Behavior

successfully created

Actual Behavior

An error occurred

Originally created by @hangboss on GitHub (Aug 6, 2025). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version Version 1.7.1 ### Cloud or Self Hosted Cloud ### Steps to reproduce - https://cloud.dify.ai/apps - click `import DSL file` - drop a folder with some DSL files - click Create send api request: https://cloud.dify.ai/console/api/apps/imports request info: ```json {"mode":"yaml-content","yaml_content":""} ``` response info: ```json { "id": "d54e16fa-d5f7-4636-8ebd-e2f41aaa5147", "status": "failed", "app_id": null, "app_mode": null, "current_dsl_version": "0.3.1", "imported_dsl_version": "", "error": "yaml_content is required when import_mode is yaml-content" } ``` ### ✔️ Expected Behavior successfully created ### ❌ Actual Behavior An error occurred
yindo added the 🐞 buggood first issue labels 2026-02-21 19:24:01 -05:00
yindo closed this issue 2026-02-21 19:24:01 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Aug 6, 2025):

Hi @hangboss! I'm Dosu and I’m helping the dify team.

The error happens because Dify Cloud only supports importing a single DSL YAML file at a time—not a folder or multiple files. When you drop a folder, the UI doesn't process its contents, so the API request ends up with an empty yaml_content field, which triggers the error you saw "yaml_content is required when import_mode is yaml-content".

To import your DSL, select and upload a single .yaml or .yml file containing your app definition. If you have multiple DSL files, you'll need to manually combine them into one valid YAML file before importing. Folder or multi-file import isn't currently supported in Dify Cloud v1.7.1, and there are no recent changes adding this feature "the uploader only accepts a single file".

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Chat with Dosu Join Discord Share on X

@dosubot[bot] commented on GitHub (Aug 6, 2025): <!-- Greeting --> Hi @hangboss! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the dify team. <!-- Answer --> The error happens because Dify Cloud only supports importing a single DSL YAML file at a time—not a folder or multiple files. When you drop a folder, the UI doesn't process its contents, so the API request ends up with an empty `yaml_content` field, which triggers the error you saw ["yaml_content is required when import_mode is yaml-content"](https://github.com/langgenius/dify/blob/1f15cba9a0d417fab40437a6ed64bbc43ffb0fe8/api/services/app_dsl_service.py). To import your DSL, select and upload a single `.yaml` or `.yml` file containing your app definition. If you have multiple DSL files, you'll need to manually combine them into one valid YAML file before importing. Folder or multi-file import isn't currently supported in Dify Cloud v1.7.1, and there are no recent changes adding this feature ["the uploader only accepts a single file"](https://github.com/langgenius/dify/blob/1f15cba9a0d417fab40437a6ed64bbc43ffb0fe8/web/app/components/app/create-from-dsl-modal/uploader.tsx). <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/52caad5d-1ce5-42dc-90c8-6922d0dc46c6?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/52caad5d-1ce5-42dc-90c8-6922d0dc46c6?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/52caad5d-1ce5-42dc-90c8-6922d0dc46c6?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/52caad5d-1ce5-42dc-90c8-6922d0dc46c6?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/52caad5d-1ce5-42dc-90c8-6922d0dc46c6?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/52caad5d-1ce5-42dc-90c8-6922d0dc46c6?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/52caad5d-1ce5-42dc-90c8-6922d0dc46c6?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/6088a4f4-073a-43f3-b3d4-4f06fb0c05a0/ask?utm_source=github)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify/issues/23492)
Author
Owner

@crazywoola commented on GitHub (Aug 6, 2025):

If I remember correctly, importing apps only supports single imports, and only knowledge bases support folder imports.

@crazywoola commented on GitHub (Aug 6, 2025): If I remember correctly, importing apps only supports single imports, and only knowledge bases support folder imports.
Author
Owner

@hangboss commented on GitHub (Aug 6, 2025):

I think we should update the tips or support importing multiple apps through folders

@hangboss commented on GitHub (Aug 6, 2025): I think we should update the tips or support importing multiple apps through folders
Author
Owner

@crazywoola commented on GitHub (Aug 6, 2025):

Sure, this is easy to fix, are you willing to submit a PR :)

@crazywoola commented on GitHub (Aug 6, 2025): Sure, this is easy to fix, are you willing to submit a PR :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#15930