The process listed below has two rules 1 & 2. UnitTable has a reference attribute 'CORD' indicating NSCPers as the type. When executed the process fails with a message "Internal Error". The log shows nothing unusual. Just a last entry "Process Failed". How does one go about determining what is causing the failure?
To start with there are no instances of UnitTable. The intent is to create a UnitTable instance populated with the reference data in the reference attribute "CORD" for each found NSCPers. The log shows that 295 instances of NSCPers where NSCPers.CO='Yes' were found, the Create Action was added and started. Then the "Process Failed" entry. That is all that is indicated.
The rule was created with the process editor and showed no syntax errors when created and saved.
Vins Nash
ProcessRule1
FIND NSCPers WHERE NSCPers.CO = 'Yes'
ProcessRule2
IF EXISTS UnitTable WHERE (UnitTable.UnitCode = NSCPers.UnitCode)THEN
FIND UnitTable WHERE UnitTable.UnitCode = NSCPers.UnitCode
UnitTable.CORD.Rank=NSCPers.Rank
UnitTable.CORD.FirstName=NSCPers.FirstName
UnitTable.CORD.LastName=NSCPers.LastName
UnitTable.CORD.Branch=NSCPers.Branch
UnitTable.CORD.Address=NSCPers.Address
UnitTable.CORD.City=NSCPers.City
UnitTable.CORD.State=NSCPers.State
UnitTable.CORD.ZIP=NSCPers.ZIP
UnitTable.CORD.HomePhone=NSCPers.HomePhone
UnitTable.CORD.WorkPhone=NSCPers.WorkPhone
ELSE
CREATE UnitTable WITH UnitTable.UnitCode = NSCPers.UnitCode,
UnitTable.CORD.Rank=NSCPers.Rank,
UnitTable.CORD.FirstName=NSCPers.FirstName,
UnitTable.CORD.LastName=NSCPers.LastName,
UnitTable.CORD.Branch=NSCPers.Branch,
UnitTable.CORD.Address=NSCPers.Address,
UnitTable.CORD.City=NSCPers.City,
UnitTable.CORD.State=NSCPers.State,
UnitTable.CORD.ZIP=NSCPers.ZIP,
UnitTable.CORD.HomePhone=NSCPers.HomePhone,
UnitTable.CORD.WorkPhone=NSCPers.WorkPhone