
When we are extracting the CDATA is an attribute value from Adaptive Insights using REST connector in IICS, Sometimes we may end up with below error or with no data in the target system.
<response success=” false”
<messages>
<message key=”invalid-credentials”>M(DISPLAY TRUNCATED)”
When we use an Informatica swagger generator to generate the swagger file to build the rest connector. The connector may not work properly as it handles the request and response in a different manner compared to the Adaptive acceptable format so resulting in the above error.

“responses”: {
“200”: {
“description”: “successful operation”,
“schema”: {
“$ref”: “#/definitions/Id”
}
}
}
“responses”: {
“200”: {
“description”: “successful operation”,
“schema”: {
“$ref”: “#/definitions/Id##response”
}
}
}
“Id_Request##body##call##credentials” : {
“properties” : {
“login” : {
“type” : “string”
},
“password” : {
“type” : “string”
},
“instanceCode” : {
“type” : “string”
}
}
}
“Id_Request##body##call##credentials”: {
“properties”: {
“login”: {
“type”: “string”,
“xml”: {
“attribute”: true
}
},
“password”: {
“type”: “string”,
“xml”: {
“attribute”: true
}
},
“instanceCode”: {
“type”: “string”,
“xml”: {
“attribute”: true
}
}
}
}
Once you made changes to the swagger file crated a brand new REST connection with the updated swagger file.
CDATA as an element in both request and response in Informatica Cloud is not supported currently. In our case, CDATA is an attribute value, so it is supported which was verified and confirmed by the B2B team. Hence using the above workaround, we can extract the CDATA as an attribute value from adaptive insights using REST connector.