Forum Discussion

JonFroderberg's avatar
JonFroderberg
Qrew Cadet
3 years ago

Formula Query Error - The way this formula is built will take too long to process.

Is URLEncode() not functional inside of a Formula Query? When I attempt to use it, I receive this error message.

Here is my formula:
Size(GetRecords("{52.EX." & URLEncode([Job]) & "}AND{276.XEX.2}AND{276.XEX.3}AND{276.XEX.5}AND{55.EX.''}", [_DBID_FABRICATIONS]))

// fid: 52 [Job]
// Issued For Fabrication Status
// fid: 276 [Related IFF Status] is not equal to:
// 2 - On Hold
// 3 - Cancelled
// 5 - Prerelease
// fid: 55 [Scope Item Name] is equal to null

Trying to avoid creating a table to table relationship to get this value. I'm getting this same error on another formula query to a different table where I am also using URLEncode().


------------------------------
Jon Froderberg
PRIME Developer
Harder Mechanical Contractors
https://www.harder.com
Portland, OR
801.946.0576
------------------------------
  • It appears I will not be able to use formula query for my need as the table being queried has too many records and/or fields.  I will switch tactics and implement a table relationship to get the value I need.  Some guidance in the Formula Query documentation would be helpful as to what record count or table complexity may be too much for the function(s) to handle.

    ------------------------------
    Jon Froderberg
    PRIME Developer
    Harder Mechanical Contractors
    https://www.harder.com
    Portland, OR
    801.946.0576
    ------------------------------
    • JonFroderberg's avatar
      JonFroderberg
      Qrew Cadet
      Thank you Mark! I will read through this article.

      ------------------------------
      Jon Froderberg
      PRIME Developer
      Harder Mechanical Contractors
      https://www.harder.com
      Portland, OR
      801.946.0576
      ------------------------------
  • I get that error a lot when I'm trying to find duplicate values in a large table (30,000+ records).

    Are you querying a large table?

    ------------------------------
    Mike Tamoush
    ------------------------------
    • JonFroderberg's avatar
      JonFroderberg
      Qrew Cadet
      Hi Mike-
      Yes, this is a fairly busy table.  80K+ records and 244 fields.

      ------------------------------
      Jon Froderberg
      PRIME Developer
      Harder Mechanical Contractors
      https://www.harder.com
      Portland, OR
      801.946.0576
      ------------------------------
      • MikeTamoush's avatar
        MikeTamoush
        Qrew Commander
        I'd be willing to be it is the size of the table. I have not found a work around or a way to get it to query my tables that big. Please post back if you come up with a solution!


        ------------------------------
        Mike Tamoush
        ------------------------------