Follow

An error occurred: "maximum recursion depth of 1000 has been reached"

You may receive the error message:

An error occurred: "maximum recursion depth of 1000 has been reached"

in a case where you try to compile a CSDL definition that contains more than 1000 OR operators.

We typically see users run into this problem when trying to compile non-optimal CSDL like the following:

interaction.content contains "google" OR
interaction.content contains "facebook" OR
interaction.content contains "twitter" OR
interaction.content contains "amazon" OR
...

or worse:

( interaction.type in "twitter" AND
interaction.content contains "google" )
OR
( interaction.type in "twitter" AND
interaction.content contains "facebook" )
OR
( interaction.type in "twitter" AND
interaction.content contains "twitter" )
OR
( interaction.type in "twitter" AND
interaction.content contains "amazon" )
OR ...

The problem here is that we are using the OR operator unnecessarily. We can join all these keywords searches together into a single filter statement like so:

interaction.type in "twitter" AND
interaction.content contains_any "google, facebook, twitter, amazon, ..."
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk