infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Cloverleaf
substring failing
System
Originally posted by Rich
Team,
See attached image. This substring function is causing the xlate to fail. I don't understand why.
Thank you in advance for your help!
substring.jpg
Find more posts tagged with
Clovertech
Comments
Jared_Parish
What version of Cloverleaf? What error are you receiving?
System
Originally posted by Rich
I'm using 6.0, and I'm not receiving an error, it just doesn't pass messages unless I deactivate the substring.
System
Originally posted by Rich
To clarify, The substring is toward the end of my xlate, and it just stops processing the xlate, and no message is sent.
Jared_Parish
Could this be your issue? Archive KB 1550447
<td class="KBDefaultLabel_Bold">Description:
<td class="KBDefaultLabel">Hello,
Using the STRING function, xlateStrLength to determine the length of a string in his xlate. Your encountering the following error:Tcl callout errorxlateStrLength:errorCode: NONEerrorInfo:bad type "st": must be c, d, v, or xwhile executing"xpmstore $xlateId $outAdd $outType [string length $inValue] "(procedure "xlateStrLength" line 7)invoked from within"xlateStrLength"
<td class="KBDefaultLabel_Bold">Work Around:
<td class="KBDefaultLabel">Workaround is to set outType to c
<td class="KBDefaultLabel_Bold">Resolution:
<td class="KBDefaultLabel">Reported as a bug and will be addressed in a later version or patch.
Jim Kosloskey
Have you tried replacing end-4 with a fixed number just to see if that gets past the issue?
Is this happening in the testing tool?
System
Originally posted by Rich
Since I'm not using string length, I don't think so, but you did make me think of something. The value I'm trying to get in PID.13.6 is phone number in the format of 1234567. Could that be the issue, and if so, What do I use to parse just the first three digits?
Thanks,
-> Rich
Jim Kosloskey
You could just use 0 and 2 (I think that function is zero based if not then 1 and 3).
System
Originally posted by Rich
Jim,
I'm using this xlate to reformat the phone number as (999)999-9999. In the testing tool, it just leave the field that should be populated by my concatenate as a blank. I've tried putting constants in the variables in my concatenate, and see that that part is working fine.
System
Originally posted by Rich
Jim,
I've tried 0 2 and 1 3
Both fail in the exact same way. The odd thing is that I've got other xlates using the same function in the same way that do not fail. I've also tried removing the line, and recreating it. I'm befuddled! The only difference is that I'm dealing with numeric values instead of alpha characters.
System
Originally posted by Former Clovertech member
Add this to the PreProc and let us know the output:
echo "inVals: $xlateInVals"
echo "inTypes: $xlateInTypes"
Charlie Bursell
Simplify to one xlate action:
copy In: PID.13.5 and PID.13.6 Out: PID.13
lassign $xlateInVals pre post
set pre ($pre)
set post [string range $post 0 2]-[string range $post 3 end]
set xlateOutVals [list "$pre$post"]
Jim Kosloskey
Rich,
So did you ever get this resolved? Is this a bug with numerics?