A fix is available
APAR status
Closed as program error.
Error description
The error message "Invalid JSON Data" is presented when users enters a specific type JSON array on the "JSON" input field of the "JSON To Table" command, as: [ { "number":"Test", "subcategory":{ "name":"Test" }, "sla":{ "targetDate":"2021-10-12T15:20:00Z" } }, { "number":"Test", "subcategory":{ "name":"Test" }, "sla":{ "targetDate":"2021-10-12T15:20:00Z" } } ] After entering with this type of JSON array, the tool displays a message of "Invalid JSON Data" and users cannot complete the operation. But, since it is actually a valid JSON type, the command should recognize it as a valid input and users must be able to complete the operation.
Local fix
ssuming the user wants to insert a JSON array as: [ { "number":"Test", "subcategory":{ "name":"Test" }, "sla":{ "targetDate":"2021-10-12T15:20:00Z" } }, { "number":"Test", "subcategory":{ "name":"Test" }, "sla":{ "targetDate":"2021-10-12T15:20:00Z" } } ] Since it's not possible to insert this kind of JSON directly, a workaround to avoid the "Invalid JSON Data" error could be done by: 1- Save the JSON in a text variable, for example, ${json} 2- When filling up the JSON To Table command field: {"array":${json}} A new field before the array itself with the name "array" is entered and the command is now able to recognize the content. The content, now with the "array" field in the beginning and assuming the same JSON mentioned before, must look like: { "array":[ { "number":"Test", "subcategory":{ "name":"Test" }, "sla":{ "targetDate":"2021-10-12T15:20:00Z" } }, { "number":"Teste", "subcategory":{ "name":"Test" }, "sla":{ "targetDate":"2021-10-12T15:20:00Z" } } ] } 3- It' also necessary to fill the "JSON Path" field of the "JSON To Table" command to get what is inside the "array" field in the JSON, as: $.array
Problem summary
**************************************************************** * USERS AFFECTED: * * Users that use JSON to Table command * **************************************************************** * PROBLEM DESCRIPTION: * * JSON to table command wasn't handling arrays correctly. This * * behavior was fixed. * **************************************************************** * RECOMMENDATION: * * Upgrade to IBM RPA 21.0.2 * ****************************************************************
Problem conclusion
First fixed in 21.0.2
Temporary fix
Comments
APAR Information
APAR number
JR64305
Reported component name
RPA
Reported component ID
5737N5100
Reported release
K00
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2021-10-26
Closed date
2022-01-03
Last modified date
2022-01-03
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
RPA
Fixed component ID
5737N5100
Applicable component levels
RK00 PSY
UP
RL00 PSY
UP
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSC50T","label":"IBM Robotic Process Automation"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"K00","Line of Business":{"code":"LOB45","label":"Automation"}}]
Document Information
Modified date:
28 April 2022