Question
Infosys
IN
Last activity: 13 Apr 2022 8:56 EDT
Multiple timezones not supported for one calendar
Hi All,
I am trying to save as existing operator and getting error ' Multiple timezones not supported for one calendar'. Recently we did a pega upgrade from 7.2.2 to 8.5.4 version. Is that causing issue?
Please help me with this.
Regards,
Vinay
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Updated: 13 Apr 2022 8:56 EDT
Infomatics Corp
US
@VinayMalkar Open the Operator Record and Go to work Tab and check for the Business Calendar configured for the Operator. Use the Open rule to open the Calendar Instance. If the calendar instance is not available then create/use existing one to configure.
Pegasystems Inc.
GB
@VinayMalkar I don't believe there's been any change in the product regarding the functionality. It might have been something during the update process within the application?
If there are more than one Calendar instances with the same first key (name of the Calendar) but different time zones defined on it then PRPC will complain and raise that error almost everywhere during creation of a work case.
Could you take a look at the following support article? https://community.pega.com/support/support-articles/multiple-timezones-not-supported-one-calendar-error
Updated: 4 Feb 2022 5:29 EST
Infosys
IN
@MarijeSchillern Hi, thank you for your reply. I am getting this error while resaving some of thee operators only.In those operators where warning is there
"Not able to find an active calendar named An unknown Calendar. Be sure to create calendar instances in advance for each future year needed by your application."
Pegasystems Inc.
GB
I'm confused - are you no longer getting the original error logged in this forum question ie ' Multiple timezones not supported for one calendar'. ?
Do you receive data from external systems via SOAP? ie perhaps the reference to the particular calendar is coming in via a SOAP request?
There may be a Rule-Utility-Function call which attempts to use this calendar:
BusinessCalendar addDays--(String,int,boolean,String)
BusinessCalendar addDays--(String,int,boolean,String,String)
BusinessCalendar addTime
BusinessCalendar differenceBetweenDateTimes
BusinessCalendar differenceBetweenDays When these functions cannot find the reference calendar, they use the Default calendar on the same operation. As there may be differences between the Default calendar and the unknown Calendar (which may exist in some external system), you should determine where that unknown calendar resides and decide if you need to incorporate that calendar into your Pega application; or if you can continue with the use of the Default calendar, as well as the continual error messages in the log.
To determine the name of the unknown Calendar, you can turn on DEBUG for the class :
com.pega.pegarules.priv.businessCalendar.CalendarUtility.
I'm confused - are you no longer getting the original error logged in this forum question ie ' Multiple timezones not supported for one calendar'. ?
Do you receive data from external systems via SOAP? ie perhaps the reference to the particular calendar is coming in via a SOAP request?
There may be a Rule-Utility-Function call which attempts to use this calendar:
BusinessCalendar addDays--(String,int,boolean,String)
BusinessCalendar addDays--(String,int,boolean,String,String)
BusinessCalendar addTime
BusinessCalendar differenceBetweenDateTimes
BusinessCalendar differenceBetweenDays When these functions cannot find the reference calendar, they use the Default calendar on the same operation. As there may be differences between the Default calendar and the unknown Calendar (which may exist in some external system), you should determine where that unknown calendar resides and decide if you need to incorporate that calendar into your Pega application; or if you can continue with the use of the Default calendar, as well as the continual error messages in the log.
To determine the name of the unknown Calendar, you can turn on DEBUG for the class :
com.pega.pegarules.priv.businessCalendar.CalendarUtility.
You will then see a DEBUG message in the PegaRules log file which identifies the unknown calendar similar to this: - Loading calendar = myUnknownCalendar - load calendar myUnknownCalendar failed returning false - The business calendar object could not be found
You can associate a calendar with operators (in the Operator ID data instances), organizations, and work queues.
References to calendars identify only the first key part. The system uses a context-determined date as the (starting) second key part.
That is why we asked to check whether there is an identical calendar defined in the Organisation.
Could you check the definition as per the documentation?
https://docs-previous.pega.com/reference/86/about-calendar-data-instances
Please log a support ticket if you need our support team to go through the debug Pega logs with you.
-
Krishnam Raju Kola
Infomatics Corp
US
@VinayMalkar I dont see you can configure multiple timezones for the calendar. Can you check the Calendar mapped to the operator. OOTB there is no provision to support mutliple timezones.
Infosys
IN
@Abhilash_K Hi, Can you please tell me how can I check this?
Accepted Solution
Updated: 13 Apr 2022 8:56 EDT
Infomatics Corp
US
@VinayMalkar Open the Operator Record and Go to work Tab and check for the Business Calendar configured for the Operator. Use the Open rule to open the Calendar Instance. If the calendar instance is not available then create/use existing one to configure.