KB Article #180657

"Cannot set ESPK for non-reference type field" error when upgrading configuration to 7.7 for JSON Schema object attached to data map

Problem

When upgrading a configuration to 7.7 via Policy Studio, upgradeconfig or sysupgrade, you see an error message similar to the following regarding a JSON schema object attached to a data map:


ERROR 01/Jan/2019:00:00:00.000 [0000:000000000000000000000000] Problem validating entity:TFXSLTMapping key:8000000000000000000 field:sourceJsonSchemaRef vals:[<key type='JSONSchemaGroup'><id field='name' value='JSON Schemas'/><key type='JSONSchema'><id field='URL' value='example.json'/></key></key>]
ERROR 01/Jan/2019:00:00:00.000 [0000:000000000000000000000000] Problem decoding Entity:
java.lang.IllegalArgumentException: Cannot set ESPK for non-reference type field


Resolution


This is a harmless error that can be ignored. The error is caused by an unnecessary step being performed in the upgrade process. That step will be removed in a future release to get rid of the erroneous error message. You can ensure that the JSON schema is working by looking at the upgraded configuration in Policy Studio, clicking edit on the data map, then examining the JSON schema displayed there and by running the data map