Article - CS404027
Can't modify an array inside a JSON Object, if the JSON Object comes as an input parameter in a ThingWorx Service
Modified: 11-Jun-2025
Applies To
- ThingWorx Platform 9.3 F000 to 9.7
Description
- It's not possible to modify a JSON Object array if it's an input parameter in a Service
- If a JSON Object is initialized and populated in a Service it can be modified, but not if it's imported
- Error Message "Error executing service <SERVICE NAME>. Message :: Java class "com.thingworx.dsl.engine.adapters.JSONArrayAdapter" has no public instance field or method named "<xyz>". - See Script Error Log for more details" appears when trying to run the following Javascript code in a ThingWorx Service:
-
-
let ServiceJSONMatrix = InputJSONMatrix;
-
This is a printer-friendly version of Article 404027 and may be out of date. For the latest version click CS404027