An issue was found where executing a script with a lot of ':SET_CALE' commands would eventually run into error:
"Calendar '&01'/ '&02' is not of type Static (S). Inserting a new period/day is not possible."
This occurs even though the CALE-Keyword shown in the error message, actually is a static keyword.
Release : 21.0.4
The issue has been confirmed to be a bug and will be fixed with a future service pack for Automation Engine V21.0 .
Workaround: use WAIT or divide the script into smaller batches, so that no more than 30 calendars are processed at a time.