Page 1 of 1

code=-4

Posted: Tue Jan 23, 2007 10:01 am
by Christina
Hi,
i am using a routine in my sequence which will return date/count and i need to pass this as a parameter to the next activity. while testing the routine alone it is returning a correct value but while running through sequence i am getting the following error.

code=-4
[ParamValue/Limitvalue is not appropriate].

i am using a user variable activity to get value from this routine

Posted: Tue Jan 23, 2007 10:08 am
by chulett
It may look ok when testing, but it really isn't which is why you get the error. This is typically because of @FM characters in the returned value. Without knowing exactly what you are doing, a couple of suggestions:

1) Either take only the first element of the dynamic array by putting '<1>' at the end of your varaible name, i.e. VariableName<1>

2) Strip @FM from the value using EReplace(VariableName, @FM,"")

One of the two should solve your problem.

Posted: Tue Jan 23, 2007 10:10 am
by ArndW
Craig - doesn't this also occur when you try to set an integer parameter to the value "Hello World"?

Posted: Tue Jan 23, 2007 10:11 am
by chulett
Sure. I made the assumption that the types are matching and it's not something really basic like that.