Error Failed to Save Logic App

Basya Salid 0 Reputation points
2024-11-26T14:28:49.8633333+00:00

I am getting this error in Power Automate when trying to set a monthly re-occurrence on a specific day in the code view. Failed to save logic app TestingRecurence. The recurrence schedule of trigger 'Recurrence' could not have 'WeekDays' for recurrence frequency 'Month'. Is there a workaround for this?

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,245 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 29,131 Reputation points Microsoft Employee
    2024-11-26T21:19:25.0633333+00:00

    Hey @Basya Salid

    I don't believe you can comingle weekDays with a different scale; i.e. weekDays can only be configured with a Week frequency. Use monthDays instead. For example, the following will run the last day of the month. You can tweak to meet your scheduled preference. Example recurrences list suggestions on how to configure the trigger.

    "triggers": {
        "Recurrence": {
            "recurrence": {
                "frequency": "Month",
                "interval": 1,
                "schedule": {
                    "monthDays": [-1]
                }
            },
            "type": "Recurrence"
        }
    }
    

    Another option is using a Sliding Window connector instead, see https://learn.microsoft.com/en-us/azure/connectors/connectors-native-sliding-window.

    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.