Flow schedule day of month not accepted
Detection
- String:
dayOfMonthToRun invalid at this location in type FlowSchedule
- Replaces: Error parsing file
Examples
Error Invoice_Reminder Error parsing file: Element {http://soap.sforce.com/2006/04/metadata}dayOfMonthToRun invalid at this location in type FlowSchedule
Resolution
The schedule of the flow has <dayOfMonthToRun>, which the API version of the target org does not accept.
- sfdx-hardis removes it before each deployment with the built-in replacement rule builtin-flow-schedule-day-of-month: check it is on in .sfdx-hardis.yml (https://sfdx-hardis.cloudity.com/salesforce-devops-config-replacement-rules-builtin/)
- Once the target org runs the release that accepts it, the rule removes nothing anymore