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

Getting "Failed to compile generated Java" in Agent Activity

SA-33138

Summary



Activity is saving properly in designer studio but throwing compile exceptions when it is being executed through an agent.


Error Messages



com.pega.pegarules.pub.generator.FirstUseAssemblerException: Failed to compile generated Java com.pegarules.generated.activity.ra_action_createcisfromappointments_7a6f694573540efc67c81b9883ed1ba9: ----------
1. ERROR in \com\pegarules\generated\activity\ra_action_createcisfromappointments_7a6f694573540efc67c81b9883ed1ba9.java (at line 1336)
ClipboardProperty pz_32 = pega.getStringValueViaPropRef(".GetItemResult.ResponseMessages.GetItemResponseMessage(" + forEachCounter + ").Items.CalendarItem(1)", new String[] {"", "", "GetItemResult", "", "ResponseMessages", "", "GetItemResponseMessage", String.valueOf(forEachCounter), "Items", "", "CalendarItem", "1"}, pega.findPageWithException("GetItemDataSource", "PegaFW-Int-EWS-XchgServ-"), false, true, false);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Type mismatch: cannot convert from String to ClipboardProperty
----------
2. ERROR in \com\pegarules\generated\activity\ra_action_createcisfromappointments_7a6f694573540efc67c81b9883ed1ba9.java (at line 1743)
ClipboardProperty pz_45 = pega.getStringValueViaPropRef(".GetItemResult.ResponseMessages.GetItemResponseMessage(" + forEachCounter + ").Items.CalendarItem(1)", new String[] {"", "", "GetItemResult", "", "ResponseMessages", "", "GetItemResponseMessage", String.valueOf(forEachCounter), "Items", "", "CalendarItem", "1"}, pega.findPageWithException("GetItemDataSource", "PegaFW-Int-EWS-XchgServ-"), false, false, false);


Steps to Reproduce



Not Applicable


Root Cause



Agent does not configure with right access group. Agent activity is calling another activity. Agent Accessgroup doesn't have access to activity called

Resolution



Configured the proper access group for Agent

Suggest Edit

Published February 4, 2017 - Updated October 8, 2020

Did you find this content helpful? Yes No

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.

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