I am getting the following error for my code snippet after converting from 3.8 to version 5.5. Most of the code snippets are generating the same error after our conversion. Please advise, as this is working the way it is in 3.8.
Error:
MESSAGE 1
Tcl callout error
erroCode: NONE
errorInfo:
invalid command name “xlt_fo_orc.tcl”
while executing
“xlt_fo_orc.tcl”
The code is:
######################################################################
# Name: fo_orc
# Purpose:
# UPoC type: xltp
# Args: none
# Notes: All data is presented through special variables. The initial
# upvar in this proc provides access to the required variables.
#
# This proc style only works when called from a code fragment
# within an XLT.
#
# Created By Femina Jaffer on Feb. 7, 07: This code fragment removes the “_”and # everything after in the ORC 2 field for # Fast Orders. For example: 12345_fast# output after this code is 12345.
proc xlt_fo_orc {} {
upvar xlateId xlateId
xlateInList xlateInList
xlateInTypes xlateInTypes
xlateInVals xlateInVals
xlateOutList xlateOutList
xlateOutTypes xlateOutTypes
xlateOutVals xlateOutVals
lassign $xlateInVals data
set xlateOutVals [string range $data 0 [string first “_” $data -1]]
}
Thank you.
Femina