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

Published February 1, 2017 - Updated February 4, 2017


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.