Close popover
Daniel Rigney (DanielR6574)
Stratosphere Technical Consulting
Senior Consultant
Stratosphere Technical Consulting
DanielR6574 Member since 2016 4 posts
Stratosphere Technical Consulting
Posted: December 21, 2018
Last activity: June 15, 2019

adoptJSONObject in java step does not use pxExternalName qualifier set on properties

I need to be able to convert JSON to Page but its not comming from a web service so no Connect-REST or Service-REST is involved.

I'm using adoptJSONObject in a java step in an activity to parse the JSON as follows:

I have a property "oid" with pzExternalName qualifier set to "$oid".

I'm getting:

The reference $oid is not valid.  Reason: invalid property name: '$oid' 

How do Iget around this problem?

Java Step


ClipboardPage pgTemp = null;

String pageContent = "{\"id\":{\"$oid\":\"12345678\"}}";

pgTemp = ThreadContainer.get().getPublicAPI().createPage("<my class>","PageTemp");


} catch(InvalidStreamError e){

oLog.error("Test:Invalid JSON Stream for data page params : "+e.getMessage());

} catch(Exception e){

oLog.error("Test:Expection : "+e.getMessage());


***Edited by Moderator: Pallavi to update platform capability tags***

Data Integration Java and Activities
Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.