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?
Yes so the model does repeat based on the count of the input, and saves the to the foreign key field of the recordType. It looks like the parent process model wasn't configured. We are still trying to get the looping work on a "Save" action.
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
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