Why queryProcessAnalytics function is not working in rule event?

   

When i try to use this function inside rule event it will throw an below error,

"(ERROR:EVAL:@reason=index)"and process status is changed to "Paused By Exception"
How do i resolve this?

P.S. :- Value of pv!ppid_int is set to tp!id (also tried with ri! and pp!id)

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    Firstly, when you are indexing a particular field from queryProcessAnalytics().data, that field will contain an array of elements. So, your if condition will return a list of true and false. Means it will return a list of boolean elements.

    Store your queryProcessAnalytics().data in a local variable, say local!data. Then use the local variable inside your if condition as,
    if(
    index(local!data,"c31","") =1,
    true,
    false
    )

    put the entire code inside a load().

Reply
  • 0
    Certified Lead Developer

    Firstly, when you are indexing a particular field from queryProcessAnalytics().data, that field will contain an array of elements. So, your if condition will return a list of true and false. Means it will return a list of boolean elements.

    Store your queryProcessAnalytics().data in a local variable, say local!data. Then use the local variable inside your if condition as,
    if(
    index(local!data,"c31","") =1,
    true,
    false
    )

    put the entire code inside a load().

Children