Support Article
REST service fails with error after application upgrade
Summary
REST service fails with error after application upgrade.
Error Messages
MSG][REST service[gettenantsformsp814c00b4182cd6c8a352f23143bba28c] failed:Outbound data mapping failed:com.pega.pegarules.pub.services.ServiceException: Outbound data mapping failed<CR> at com.pega.pegarules.integration.engine.internal.services.ServiceAPI.configureResponse(ServiceAPI.java:3119)<CR> at com.pega.pegarules.integration.engine.internal.services.ServiceAPI.mapOutputData(ServiceAPI.java:2017)<CR> at com.pega.pegarules.integration.engine.internal.services.ServiceAPI.processSimulation(ServiceAPI.java:2454)<CR> at com.pega.pegarules.integration.engine.internal.services.ServiceSimulator.processServiceSimulation(ServiceSimulator.java:690)<CR> at com.pega.pegarules.integration.engine.internal.services.ServiceSimulator.invokeServiceHTTP(ServiceSimulator.java:368)<CR> at
com.pega.pegarules.integration.engine.internal.services.ServiceAPI.configureResponse(ServiceAPI.java:3051)<CR> ... 64 more<CR>
................
Caused by: com.pega.pegarules.pub.clipboard.WrongModeException: Property theTenantWrapper.PACshortcutPageGroup must be of a page or list mode for JSON mapping<CR> at com.pega.pegarules.integration.engine.internal.JSONMappingUtils.getOutboundJSONValue(JSONMappingUtils.java:261)<CR> ... 67 more<CR>]
Steps to Reproduce
- Create a REST service and include a page group property
- Map the response to the page group property
- Select the 'Use Fast Processing' feature
- Run the flow
Root Cause
In Pega 7.4, Fast Processing does not support page groups, value groups, and Java objects.
Resolution
- Ensure to match the JSON property names and the clipboard property names
- Ensure to create the JSON tree structure such that it is similar to the clipboard tree structure
- Map the scalar arrays in JSON to the clipboard as page lists
- Map the multi-dimensional arrays into page lists with the same embedded property names
For more information, refer to the below article:
https://community.pega.com/knowledgebase/products/platform/release-notes
Published July 30, 2020 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.