Expression evaluation error at function a!queryEntity [line 5]: Cannot apply operator [EQUALS] to field [vendorId] when comparing to value [TypedValue[it=101,v={1}]].

I have gone through several times, however I'm unable to understand why this error is getting.

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    The issue is, that you true to compare a list of integers to a single field in DB. This is what the error message tries to tell you.

    [TypedValue[it=101,v={1}]]

    The curly brackets indicate a list.

    So, you can either use the "in" operator to compare, or make sure that this getVendorId expression returns only a single. The index() function might help you in doing that.

Reply
  • 0
    Certified Lead Developer

    The issue is, that you true to compare a list of integers to a single field in DB. This is what the error message tries to tell you.

    [TypedValue[it=101,v={1}]]

    The curly brackets indicate a list.

    So, you can either use the "in" operator to compare, or make sure that this getVendorId expression returns only a single. The index() function might help you in doing that.

Children
No Data