search cancel

SET_CALE only works with static calendar keywords

book

Article ID: 216384

calendar_today

Updated On:

Products

CA Automic One Automation

Issue/Introduction

Update of Dynamic Calendar Event by using :SET_CALE statement provides error:

Calendar '&01'/ '&02' is not of type Static (S). Inserting a new period/day is not possible.

 

Example usage of SET_CALE inside of a script which add the date:

:SET_CALE "CALENDAR_NAME" , "EVENT_NAME" , "&DATUM#",, ON

Environment

Release : 12.x

Component : AUTOMATION ENGINE

Cause

Script Statement: Inserts/deletes a date or time period in/from a static Calendar Event.

Resolution

:SET_CALE statement can be used only for Static Calendar Events

 

The documentation will be updated to reflect this behavior:

https://docs.automic.com/documentation/webhelp/english/AA/12.3/DOCU/12.3/Automic%20Automation%20Guides/help.htm#Script/Reference/SET_CALE.htm?TocPath=Reference%257CAutomation%2520Engine%2520Script%2520Reference%257CScript%2520Elements%2520Ordered%2520by%2520Purpose%257CObjects%257C_____19