ERROR #9406: Unexpected format for value of field, alternateId, using class base mapping
Getting the error "ERROR #9406: Unexpected format for value of field, alternateId, using class base mapping" in the trace. I have it defined as:
{ Property alternateId As %String;
Property benefitPlanId As %String;
and the reply is sending:
[
{
"alternateId": "",
"benefitPlanId": "FLSN4444",
Is there a way to handle the empty fields in the reply that is sent back?
Product version: IRIS 2020.1
Property alternateId As %String(%JSONNULL = 1);
{
"alternateId": null ,
"benefitPlanId": "FLSN4444",
Found the issue. had to parse differently