Generic REST AFX Connector fails with ValidationError in RSA Identity Governance & Lifecycle
2 years ago
Originally Published: 2020-08-13
Article Number
000043816
Applies To
RSA Product Set: RSA Identity Governance & Lifecycle
RSA Version/Condition:  7.0.x, 7.1.0, 7.1.1, 7.2.0
 
Issue
When passing a Command Input Parameter value that is encased in double quotes as part of a Generic REST AFX Connector capability, the transaction fails with:
 
Error code = 4
ValidationError
Cause:
{"code":"InvalidData",...

 
User-added image

Input parameters are defined under AFX > Connectors > {Connector name} > Edit > Capabilities tab > {Capability name}.
 
Cause
The Request Header Content-Type is missing the UTF-8 character set option. 
 
Resolution
Add the UTF-8 character set option to the Request Header Content-Type. Change the Request Header definition by going to AFX > Connectors > {Connector name} > Edit > Capabilities tab > {Capability name} > Request Headers and adding the UTF-8 character set to the existing Content-Type Request Header definition.

For example, if the Request Header Content-Type is set to:
application/json
Change the Request Header Content-Type to:
application/json;charset=UTF-8

EXAMPLE:
 
User-added image