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