Skip to Content

useOneAsMany Error Root Cause

Hello Experts,

Good Day!! I am getting the following error in useOneAsMany node function.

Too many values in the second queue in function useOneAsMany. The number of values for all contexts must be the same as the number of values for the third queue

If ,I need to verbalise the root cause in one line what can I say?

Can I say its due to number of values in contexts and number of values in queues?

Thanks in advance,

Vikas

Add comment
10|10000 characters needed characters exceeded

  • Former Member

    Can you close the question so that it will be helpful for whoever come across this in future, they can quickly find the answer without reading all the answers and guess which one could be the correct answer.

  • Get RSS Feed

9 Answers

  • avatar image
    Former Member
    Oct 21, 2016 at 11:03 AM

    Hi Vikas,

    You can solve this issue by using below mapping. Pass second field to both second and third arguments of useOneAsMany and after the function you can use spltByValue(Each Value) like below.

    Regards,

    Praveen.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 21, 2016 at 09:37 AM

    Hello Vikas,

    Its because the first and second input queue of UseOneAsMany function does not have the same number of context changes.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 21, 2016 at 10:45 AM

    Thanks Raghu.

    But the error is saying about second and third queue

    Too many values in the second queue in function useOneAsMany. The number of values for all contexts must be the same as the number of values for the third queue

    Is it applicable for the above error as well?

    Thanks in advance

    Vikas

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 21, 2016 at 10:56 AM

    Hello Vikas,

    Sorry for that !! I misunderstood the question.Below is the criteria for Use one as many.Its failing because of values mismatch.

    The first two parameters must contain the same number of contexts while the last two parameters must contain the same number of values.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 21, 2016 at 11:05 AM

    Thanks once again Raghu.

    So can I say the root cause as the values mismatch or need to verbalise it bit more? If so what will those words be?

    Thanks in advance

    Vikas

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 21, 2016 at 11:14 AM

    Thanks Raghu and Praveen,

    Can you please let me know how to verbalise the root cause?

    can I say the root cause as the values mismatch or need to verbalise it bit more? If so what will those words be?

    Thanks in advance,

    Vikas

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 21, 2016 at 11:14 AM

    Thanks Raghu and Praveen,

    Can you please let me know how to verbalise the root cause?

    can I say the root cause as the values mismatch or need to verbalise it bit more? If so what will those words be?

    Thanks in advance,

    Vikas

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 21, 2016 at 11:36 AM

    Hi Vikas,

    To useOneAsMany first and second queues number of context changes should be same (fiirst queue should be single values in the context, second queue multiple values in the each context), second and third queues the number of values should be same without taking considerations of number of contexts (third queue each context should be only one value)

    I hope it clarifies your question.

    Regards,

    Praveen.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 21, 2016 at 11:40 AM

    Thanks Praveen for a very nice explanation.

    So I can say that its failing because of values mismatch, right?

    Thanks in advance,

    Vikas

    Add comment
    10|10000 characters needed characters exceeded