Error in Process Mode

I got an error message in a Process Model that is running a script task to update on a recordType.

Error writing to process variables (Invalid a1e14d1a-f90e-42c0-821e-33ec2665fafd: Cannot validate type, incorrect number of elements, Invalid c3c2a3f4-623c-4f0a-b2fc-d893215c2897: Cannot validate type... (Data Outputs)

The individual is a foreign key being passed to the following.

The first one: a1e14d1a-f90e-42c0-821e-33ec2665fafd is a phone number record.

The second one: c3c2a3f4-623c-4f0a-b2fc-d893215c2897 is an email  record.

if(rule!AF_RULE_General_isEmpty(pv!emails),
{},
repeat(count(pv!emails), pv!individual['recordType!{3d84f28c-0ab1-4452-aa14-6f0eaa2b6612}OLMS REC Individual.fields.{6942f6b1-21e5-418a-9944-1d58af72dba2}individualId'])
)

if(rule!AF_RULE_General_isEmpty(pv!phoneNumber),
{},
repeat(count(pv!phoneNumber), pv!individual['recordType!{3d84f28c-0ab1-4452-aa14-6f0eaa2b6612}OLMS REC Individual.fields.{6942f6b1-21e5-418a-9944-1d58af72dba2}individualId'])
)

What could be the issue causing the recordType to not be recognized.

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    If your record type PV is of type multiple then we will face error message when we are trying to store data into specific field of record type PV (looks like there is some issue with record type pv ) 

    to fix this issue you can either user a!update function to update field which you wanted to update or else other option would be you can perform null check for the Pv(record type ) ,if there is value in the pv(record type)  then try to map the value to the field if not skip the mapping 

Reply
  • 0
    Certified Senior Developer

    If your record type PV is of type multiple then we will face error message when we are trying to store data into specific field of record type PV (looks like there is some issue with record type pv ) 

    to fix this issue you can either user a!update function to update field which you wanted to update or else other option would be you can perform null check for the Pv(record type ) ,if there is value in the pv(record type)  then try to map the value to the field if not skip the mapping 

Children
No Data