Issue with JSON Importer on REST service call - Error parsing JSON. Invalid UTF-8 middle byte

0
Anybody have any ideas on how to resolve an issue with deserializing a JSON response document with a JSON Import Mapping resource?  This is in the context of a REST call within a Microflow. The 3rd party REST API is returning a record with a name attribute that includes an accent mark (e.g. Gálvez).     9:12:00 AMAPPINFOAdvanced stacktrace: 9:12:00 AMAPPINFOat com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:154) 9:12:00 AMAPPINFOCaused by: com.mendix.integration.importer.ImportParseException: Error parsing JSON. Invalid UTF-8 middle byte 0x61 9:12:00 AMAPPINFOat [Source: (org.apache.http.conn.EofSensorInputStream); line: 1, column: 78] 9:12:00 AMAPPINFOat com.mendix.integration.importer.json.JsonImporter.$anonfun$parseJson$2(JsonImporter.scala:58)
asked
1 answers
0

you could have the REST call store the response in a string variable, use Str.Replace to replace the accent character and then use an Import with Mapping action in your microflow to deserialize the string variable.

answered