<@ULVA73B9P> How to solve this error: ```{'detail'...
# ask-marvin
n
@Marvin How to solve this error:
Copy code
{'detail': ["Error updating deployment: Deployment 
UUID('ed405495-8052-4e66-9571-d96b4231355a') has multiple schedules. Please use 
the UI or update your client to adjust this deployment's schedules."]}
While in the docs I can see that on prefect yaml there can be deployment with more than 1 schedule
m
It looks like you're encountering an issue related to having multiple schedules for a deployment in Prefect. While the YAML configuration for deployments supports multiple schedules, the error you're seeing indicates there's a problem updating these schedules through the client or the UI. ### Steps to Resolve 1. Update Prefect Version: Ensure your Prefect version is up to date. Sometimes such issues are addressed in newer versions of the software. You can check the latest version and update if necessary. 2. Use Prefect UI: As the error message suggests, you may need to use the Prefect UI to manage the deployment's schedules. The Prefect UI should allow you to visually manage and update these schedules without running into this issue. 3. Configuration Example: Here is an example structure for multiple schedules in a YAML file, should you need to verify your existing configuration:
Copy code
yaml
   deployments:
     - name: my-deployment
       flow_name: my-flow
       schedules:
         - cron: "0 0 * * *"
           timezone: "America/Chicago"
           active: false
         - cron: "0 12 * * *"
           timezone: "America/New_York"
           active: true
         - cron: "0 18 * * *"
           timezone: "Europe/London"
           active: true
### Helpful Links - Prefect Schedules Documentation ### Relevant GitHub Issues There are related discussions on GitHub about similar issues: - Expand Projects to Support Multiple Deployments - Deployment Concept Update Hopefully, this provides a clear path to resolving the issue. If you've tried these steps and the issue persists, consider reaching out on the Prefect community forums for more targeted assistance.