When the agent log is rotated, the R3_IMPORT_CALENDAR fails(ENDED_NOT_OK) with the message below in the SAP agent's log.
20221014/092857.843 - U02000071 Current directory: C:\Automic\AE21\Agents\sap\bin
20221014/092857.845 - U02000066 Host information: Host name='btama-dollaru', IP address='10.253.128.61'
20221014/092857.846 - U02000153 The JVM Option HeapDumpOnOutOfMemoryError is enabled.
20221014/092906.598 - U02000005 Job 'R3_IMPORT_CALENDAR' with RunID '1030116' is to be started.
20221014/092906.599 - U02000003 Job 'R3_IMPORT_CALENDAR' started with RunID '1030116'.
20221014/092906.648 - Destination TS1_EN100AFR 6b2d7f3e782a6b2d7f was changed. Refresh the destination instance with the JCoDestinationManager.
20221014/092906.878 - U00029000 Report '1031040' for file 'C:\Automic\AE21\Agents\sap\bin\..\temp\PLOG_OAACGPVW.TXT' has been started.
20221014/092907.728 - U02004202 Create new API connection with client '100' and user 'BTA'.
20221014/092908.351 - Authentication token 'B9A5202E973BD066AD339B56E11B2725884B1420CF8EA30FAE79041FCA04A5C91FB6D2795DDDDAD05F16012FE8C99C01C1F2147C00E5F390AC1885DF309A58D7' is invalid.
20221014/092908.399 - U02000009 Job 'R3_IMPORT_CALENDAR' with RunID '1030116' ended with return code '153'.
20221014/092908.620 - U02000015 Periodical job test started.
20221014/092908.871 - U00029001 Report '1031040' ended normally.
20221014/092909.497 - U02001026 Job 'R3_IMPORT_CALENDAR' with RunID '1030116' has been removed from the job table.
20221014/092909.685 - U00029000 Report '1030117' for file 'C:\Automic\AE21\Agents\sap\bin\..\temp\OAACGPVW.TXT' has been started.
20221014/092909.689 - U00029001 Report '1030117' ended normally.
20221014/092940.939 - U00003449 Output to the TRACE file is finished.
20221014/092942.988 - Destination TS1_EN100AFR 6b2d7f3e782a6b2d7f was changed. Refresh the destination instance with the JCoDestinationManager.
Release : 21.x
The issue has been fixed in AWA v21.0.5 with the SAP agent and Automation Engine (requires update to utilities, initialdata, AWI as well)