[ardoJSON] JSON2RecordList error to cast
Service icon
Forge component by João Barata
Application Type

Hello all,

I am using the 'JSON2RecordList' in my project and I got a problem when I tried to convert a JSON into an Outsystem Record.

I have the current error message from the Service Center:

Unable to cast object of type 'ssQuotationTool_BL.STClient3Structure' to type 'OutSystems.HubEdition.RuntimePlatform.Db.IOSList'.  

I'm currently using this structure here:

The structure isn't so complex, inside the Name and Address are just normal text fields.

Is there any clue that I can do to solve it?

Thanks in advance,

Hi Eduardo,

Could you please share JSON?




Hi Eduardo,

If the structure isn't that complex, why are you not using the built-in JSON Deserialize? You shouldn't use ArdoJSON unless you have a use case that's not covered by the built-in JSON actions.

Hi Eduardo ,

What type of data you are passing in RecordList parameter of JSON2RecordList action? it needs object of type  structure List and i think you are passing a 

STClient3Structure  record not the list of STClient3Structure  

Change the type from structure to list structure

Best Regards


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.