I am using Connect Rest - Post Method to get the data from an external system. The source system is sending Single Page structure response for Failure status and for Success response it is sending Page List structure response. I used PEGA Connect Rest wizard to create the rules and gave the both success and Failure response sample in the wizard while creating the rules. I am using the wizard generated connector DataPage to hit the external system.
For Success response it is working fine but for failure response I am seeing "Exception occurred while mapping incoming response to .response_POST"
Please suggest what changes need to be done to resolve this issue ?
***Edited by Moderator Marissa to update Platform Capability tags****
I tried mapping the response to a Param Value. Created similar page structure as response JSON for failure status and conditionalized the mapping to PAGE(Failure status) or PAGE LIST(Success) based on the API response status CODE. Used OOTB function "pxConvertStringToPage".