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
The expression above doesn't look correct to me - the thing that you're repeating is just a record field, but it should refer to some kind of record data type or constructor. Can you try to run that expression in an expression editor (outside of the process model) and see if you can get it to work?
Also I'm trying to access this: https://community.appian.com/w/the-appian-playbook/sizing_hardware_for_appian.html and forum.appian.com/.../Using_the_Sizing_Script_for_Engine_Capacity_Planning.html