Exists bes site does not work for site name containing round braces

I have an external site by the name “Test Site (English)”. Now when i run the following query in relevance debugger

exists bes site whose (name of it = "Test Site (English)")

It returns false even though the site exists. And when i create a site “Test Site English” and run query as

exists bes site whose (name of it = "Test Site (English)")

it works and returns true. Is there any restrictions on the site names? if not there why this doesnt work as expected?

Hi Rohit,

I would check 2 things:

  1. Are you sure this is an External site, and not a Custom one? If custom, you’d want to leverage the ‘bes custom site’ inspector.
  2. The name of the site may be distinct from the display name of the site. You might try filtering based on the display name instead.
2 Likes

Ahh Thanks a ton. Indeed the 2nd point was the issue. It works fine when i use display name of it :smile:
So this site name (not the display name) cannot be viewed from the console? I could find it out using session relevance but I was curious where it is set.

1 Like

This is the first thing I would try:

names of bes sites

Then see how it shows up in that list, then go from there.

names of bes sites whose( name of it contains "Test Site" )

Only after you get things working this way should you then check for existence:

exists bes sites whose( name of it contains "Test Site" )