Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Exception calling businesscalendar function

SA-7850

Summary



While executing DefineSLATimes(Pega-ProCom:06-01-01) activity, an exception is encountered in step 7 where we call function addTime(Lib(Pega-RULES:BusinessCalendar).).

This function will call checkCalendarCache function, which tryes to load calendar from DataBaseImpl, so it starts an authorized process which fails with next message:
"ERROR Trying to save an invalid page: ** Flow PreliminarySession had an error in step ASSIGNMENT52:
com.pega.pegarules.pub.runtime.IndeterminateConditionalException: Trying to evaluate Rule-Access-When conditions IsSystemRequestor when there is no page to evaluate them against Trying to save an invalid page: page is not valid"

From other places, isSystemRequestor is called several times, all of which work properly.

In this case, all these actions are performed by an agent.
When the activities and other rules are executed under a normal user, everything works fine.


Error Messages



2015-03-17 16:31:25,484 [j2ee14_ws,maxpri=10]] [ STANDARD] [ruleset] (Task.System_Queue_Timer.Action) DateTimeUtils dtu = ThreadContainer.get().getDateTimeUtils();

com.pega.pegarules.pub.runtime.IndeterminateConditionalException: Trying to evaluate Rule-Access-When conditions IsSystemRequestor when there is no page to evaluate them against
Trying to save an invalid page: page is not valid



Steps to Reproduce



You have a timer which will wait some times.
After the time is up, the agent starts an activity and calls performFlowAction.
The Flow goes to perform an assignment with defined service level.


Root Cause



An attempt was made to call a a Business Calendar function from Agent processing.
By design, agents do not run with calendars.
As a result, no business calendar is available and an attempt to reference a calendar page is invalid.


Resolution



A different technique to calculate the desired time/date frames will be devised.

Published January 31, 2016 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us