Question

3
Replies
5296
Views
Rob_Jago Member since 2015 41 posts
Rulesware
Posted: 3 years ago
Last activity: 3 years 2 months ago
Closed
Solved

REST Service fails with inbound mapping failure but REST Service simulator works properly

Hello,

using Pega 7.1.8

We have a system that calls a Pega REST Service passing in JSON constructs. The call fails with Inbound data mapping failed. Included in the stack trace is the following message: Attempting to map data to property .MyProperty with unsupported mode: Unknown. (Note: It is failing before getting to the activity that is to handle the request).

Using logging (HttpService), I have captured the JSON payload that is received. I take this same payload and using the REST Service simulator (Actions->Run), Pega is able to successfully parse the JSON. The only difference between the two is the Requestor Context of the REST Service simulator states "Use current requestor context". If there was an authentication/authorization failure, I would expect to see an authentication error and not a mapping error.

[edit update] In case it helps, the first stack lines after Attempting to map data to property .MyProperty with unsupported mode: Unknown.

are

.... ServiceHelper.SetInboundJsonValue(ServiceHelper.java:1809)

.... ServiceHelper.SetInboundDataValue(ServiceHelper.java:1594)

What are my options to further resolve this?

Low-Code App Development Data Integration
Moderation Team has archived post
Share this page LinkedIn