This is very frustrating right now. I am trying to only copy over certain GT1-2 fields in an xlate. Setting a counter variable and using an if statement to copy over what fields I want and using the counter for my outbound so there is no blank GT1-2 fields in the message.
GT1|1|baddata^SS~gooddata~moregooddata||||
to
GT1|1|gooddata~moregooddata||||
Others here have used this before and we haven’t had any issues. When I compiled it I am getting this error.
Command: hcixlttest FIN_CATH_ADT.xlt
[0:TEST] Unrecognized field name ‘Invalid interpolation variable %counter’
[0:TEST] Unable to compile OUT list ‘{$%counter}’
[0:TEST] Unable to compile statement ‘
{ OP COPY }
{ ERR 0 }
{ IN =0 }
{ OUT {{$%counter}} }
‘
[0:TEST] Unrecognized field name ‘Invalid interpolation variable %counter’
[0:TEST] Unable to compile OUT list ‘{$%counter}’
[0:TEST] Unrecognized field name ‘Invalid interpolation variable %counter’
[0:TEST] Unable to compile IN list ‘{$%counter} =1’
[0:TEST] Unable to compile statement ‘
{ OP ADD }
{ ERR 0 }
{ PRE {
echo “Counter In = $xlateInVals”
echo “Counter Out = $xlateOutVals”
}}
{ IN {{$%counter} =1} }
{ OUT {{$%counter}} }
{ FUNCTION ADD }
‘
[0:TEST] Unable to compile XLT ‘FIN_CATH_ADT.xlt’.
It seems like it doesn’t like my counter variables. Anyone have any idea?
[/img]