Skip to Content

Workitem text Expression not picking values & CASE Step failing for Alphanumeric Values

Hi Experts,

I am facing 2 strange issues in workflow

1) A Workitem has few expressions in as workitem text like &Text& &text2& &text3& . I can see all values correctly populated in workflow log but still text is appearing to user as is i.e. Expressions are not picking values from container elements.

2) This one is related to CASE step that I have used in workflow. In this step I am checking a value which is being passed to workflow at runtime. When workflow reaches this step it works fine if the value is Numeric but fails whenever it encounters Alphanumeric value comparison. While the same is working fine in a different workflow with both Numeric and Alphanumeric values.

I thought it could be due to data type so I used the datatype of other workflow where CASE step is working fine but to no avail again got same error. I also tried with CHAR2 data type but nothing is working. I used switch as well to check if this is happening with CASE but that is also failing always getting below error ( FIND_NEXT_NODES_CASE).


If anyone is familiar with any of above error please let me know.

Thanks,

Vishesh

WF_Error.jpg (219.4 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Best Answer
    Posted on Dec 27, 2013 at 04:56 AM

    Hi,

    share screenshot of container value and CASE step

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 27, 2013 at 04:52 AM

    Hi Vishesh

    For the first issue, did you put the &Text&...etc. by hand....that is by not dragging from the expression list? This usually happens when we type in '&' instead of dragging and dropping from expression list. This one's just a guess and you can remove and rety inserting by dragging and dropping :-(

    For the second one, does the step, just before the CASE/SWITCH calls a Method having Result Parameter? If yes, check the following:

    In the BOR Mehod -> dbl click the method, Tab Result Type -> if it is set, then check in the General Tab if the "Result Parameter" is set.

    This usaually happens if you set a Result parameter in the "Result Type" tab and do not set the checkbox "Result Parameter" in the General tab.

    regards,

    Modak

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Vishesh

      I should have know that the issue would not be that simple when coming from you :-) !!!!

      Yes, you can try translation - are you logging in a different language to generate the WF instance?


      For the second one, are both the variable (on both sides of the comparison) of the same type ....though I am sure you must have checked that already!

      If you are comparing the container variable with a constant value (fixed value) - try including that constant value in a container variable of the same type.

      Also, please provide screen shot of Case, data type of the compared variable and the contents of the variable which give the error.

      Regards,

      Modak

  • author's profile photo Former Member
    Former Member
    Posted on Dec 27, 2013 at 05:04 AM

    Hi,


    for the secod issue, check the value of container element which you are using in CASE. Probably it has got some value in it for which there is no outcome defined in your CASE. And hence workflow is not able to make decision as to which path to follow in your multiple condition step type.

    for the first case, is the name of your container element which you have inserted on descripition, is very long ?

    if so then sometimes workflow doesnt display them.

    Regards,

    Ibrahim

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Ibrahim,

      Thanks for replying1

      Second Issue : I am aware of the situation you have mentioned for second issue 😊 . I am passing only those values which are maintained for CASE step. It works fine for Numeric value(10, 12, 13) but fails for Alphanumeric value like (4A , 4B) .

      First Issue : Yes few container elements do have long names but same thing is working in D, failing only in Q.

      Let me know if I should provide any other information to analyse it.


      Regards,

      Vishesh

  • Posted on Dec 30, 2013 at 11:41 AM

    Hi Vishesh

    The error reason is because of what Ibrahim has mentioned above....

    "Probably it has got some value in it for which there is no outcome defined in your CASE"

    Your Case might not be having any outcomes for "Other Value" - that is when the error happens.

    0E is not being considered as a value here and hence the system is not finding any branch for execution and giving the error.

    I was able to replicate the same error in my system using above.

    Now, even if you create an 'OTHERS' branch, it will still not solve your purpose.

    There are two options:

    1) Use the method as given by Anjan (above) - use '0E' (with quotes and not just 0E)in the CASE statement for comparison

    2) Create container variables with Initial value and compare with them instead of 0E, 0F

    I guess, I would go by Anjan's solution!!

    Regards,

    Modak

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 07, 2014 at 02:28 PM

    Hi All,

    Thanks for your responses and apologies for responding late! Though above responses helped me in resolving all issues still there are few points about which I am still unsure .


    Due to workload I get very little time to work on clarification of my doubts. I will update the thread with all solutions , also mark all responses that helped me as correct and helpful but need few more days so that this thread could prove to be beneficial for other users with more details.


    Thanks.

    Vishesh

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 24, 2014 at 01:53 PM

    Hi,

    Thanks everyone for providing valuable inputs!!

    Below are the solutions/explanations to the issues I faced :

    1) Workflow instance majorly depends upon the language of initiator, Workflow worked fine whenever we checked the workflow using initiator's language to log-in. Same workitem translation failed when we checked in other language. To see workflow work in all languages , I believe, some configurations are required which unfortunately I am not aware of right now. Will try to find and post them here if I anytime get to know about those.

    2) CASE step was failing as I was using Alphanumeric values without quotes. When I put quotes workflow worked fine without any issue. It is strange but I even tried using a data type for which CASE step was working without quotes but in this scenario that data type was failing, unfortunately reason is still unknown.

    If anyone ever face this situation they can try above solution and do update the thread with open questions if you know answer to them.

    Thanks again!

    Vishesh

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Vishesh

      It's great to see that you came back on this post with the solutions!

      For the translations, each Task's WI Text, description, etc will have to be maintained in different langugaes using translation functions......SE63 (pls check the documentation for the Tcode).

      Regards,

      Modak

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.