Getting compiling error in business rules from a method that generates NACK
Hi
Getting error message, when calling NACK function that I created. Its working fine on Iris For HeathShare but on HealShare its giving below error msg. Any help.
Error message
Compiling class Hospital.RoutingRules ERROR <Ens>ErrParsingExpression: Error parsing expression 'GenerateNACK("For NewBorn Msg, PID21 Mother Idendentifier should have MRN number",%ErrorStatus)': ERROR <Ens>ErrInvalidName: Invalid name at offset 83 > ERROR #5490: Error running generator for method 'evaluateRuleDefinition:Hospital.RoutingRules' ERROR: Ens.Rule.Definition.cls(evaluateRuleDefinition) of generated code compiling subclass 'Hospital.RoutingRules' > ERROR #5030: An error occurred while compiling class 'Hospital.RoutingRules' Detected 1 errors during compilation in 1.106s.
This method giving above error.
{
$$$ERROR($$$GeneralError,$zstrip($piece($System.Status.GetErrorText(status),"#5001:",2),"*C")_"~"_text)
}
just reading it:
ERROR <Ens>ErrParsingExpression: Error parsing expression
'GenerateNACK("For NewBorn Msg, PID21 Mother Idendentifier should have MRN number",%ErrorStatus)':
0--------10--------20--------30--------40--------50--------60--------70--------80--^ 83 !!!
ERROR <Ens>ErrInvalidName: Invalid name at offset 83 >
either variable %ErrorStatus is missing or not an object of type %Status
Thanks tor helping how to read the message, I checked the documentation %ErrorStatus has below definitions and its type is %Status
property %ErrorStatus as %Status [ InitialExpression = $$$OK,Transient ];