Skip to Content

calcutated parameter in a process

Hi Experts,

Is it possible to create and use calculated parameters in a process?

During the creation of the process instance, I see that there is the possibility to use formulas in defining parameters.

I would like to evaluate the parameter with a value derived from a previous parameter. For example, IP_YEAR is inserted with the value '2020' during the simulation and calculate I_YEAR1 with the formula IP_YEAR-1.

The formula is accepted in the parameter definition but when I run the simulation the function doesn’t work and return me this error “string is too long: "NXI"."Y100VCE000120087": line 70 col 23 (at pos 6209): Assigned value for parameter or variable "IP_YEAR1" exceeds the maximum length of 4 by 5”.

The same error is returned if I calculate IP_YEAR1 with the formula 2020-1.

Which is the correct syntax in the formula definition?

Thank you.



Add a comment
10|10000 characters needed characters exceeded

  • Hi Dear Stefano,

    to shortly answer your question you have to put in fixed parameter value and not formula when on simulation. in case you are using these parameters in your logic.. you can put it in your function formula logic.

    Disclaimer i dont know what you need but i am just making the scenario simple, and put the result in a field.

    FIELD1 = IP_YEAR ; where IP_YEAR is 2020

    both formula below will give you the desired output 2020 - 1

    FIELD2 = IP_YEAR - IP_MINUS ; where IP_YEAR is 2020 and IP_MINUS = 1


    FIELD2 = IP_YEAR - 1 (if you want 1 to be fixed) ; where IP_YEAR is 2020

    i hope this helped.



Related questions

0 Answers

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.