Facing an issue regarding queryentity in expression rule

Certified Associate Developer

In a queryentity function, in an interface, I'm getting an error like "Unexpected error executing query (type: [CPVAccountsStatementTrackerDT8331], query:[queryentity expression], order by: [[Sort[FinancialInstitutionOther asc]]], filters:[(firmId = TypedValue[it=1,v=-1)])". How should I resolve this error. In one of filters, we are filtering based on -1 but this is working in some environment while failing at  some.

  Discussion posts and replies are publicly visible

Parents Reply Children
  • 0
    Certified Lead Developer
    in reply to swapnilk0010

    I agree with Stefan (as usual) - if you have enough rows in the View that it's causing Query Entity to time-out, a dropdown containing all of those values will be slow and nearly useless in terms of User Experience.

    How many rows are in the view?  Does the query work OK if you set the batchSize to (1, 10, 100, etc?) instead of -1 (at least to test whether that's the issue)?  It would be at least helpful if you confirm for us when/whether the query works when different conditions are present.