You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Filter Operator.In - Cannot find groups/projects with spaces in their name #846
@jesusenlanet In your example, you use RequestOptions.Operator.Equals did you mean to use RequestOptions.Operator.In? Using In with groups works as expected for me.
Do these groups also appear in the groups section of the site? Are you a site/server admin?
Yes, I am an admin and those groups appear on the project permission list.
I tried to retrieve groups for another projects and I'm unable to obtain some of the groups using the Publish template. I can't identify a pattern at this moment.
In theory this was fixed a long while ago, but it's not working now. Same problem with searching In for projects. I suspect fixes we made for other encoding issues broke this one again.
changed the title [-]Groups filter - Operator.In - Unable to make it work as expected[/-][+]Filter Operator.In - Cannot find groups/projects with spaces in their name[/+]on Feb 16, 2023
I have the exact same issue when querying for data sources. I have one that has a space in the name and it just removes the space and does not url encode it at all. So I don't get a match.
The example datasource is "EoA Datasource - Pol"
and when I debug the urllib3 output for the rest call is the following
This really should be parsed into URL encoding instead of just removing spaces and single quotes urllib.parse.quote (value_string) should do the trick here.
Or, simpler, value_string.replace (" ", "%20").replace("'", "")
The last change to this line did not change this behavior.
I do not see how enabling search terms with spaces requires a server side enhancement. When searching from the UI both Tableau Server and Cloud encode the space in the search term with %20 and return the correct result.
Activity
ovinis commentedon Jun 14, 2021
Thank you! We are tracking this internally. Will get back to you as soon as we have an update.
ID: 1278983
jorwoods commentedon Aug 31, 2021
@jesusenlanet In your example, you use
RequestOptions.Operator.Equalsdid you mean to useRequestOptions.Operator.In? Using In with groups works as expected for me.jesusenlanet commentedon Sep 1, 2021
Hey @jorwoods
Oh, sorry for the
Equals, I meanIn, I think I make some error writing the comment, here the script I'm using:What I'm obtaining is confusing, it looks that if a group is using a

Viewtemplate on the privileges, it doesn't appear on the list.Groups like that are not appearing on the results.
jorwoods commentedon Sep 1, 2021
Do these groups also appear in the groups section of the site? Are you a site/server admin?
jesusenlanet commentedon Sep 1, 2021
Yes, I am an admin and those groups appear on the project permission list.
I tried to retrieve groups for another projects and I'm unable to obtain some of the groups using the
Publishtemplate. I can't identify a pattern at this moment.jorwoods commentedon Sep 1, 2021
Not within the permissions list, but within the actual "Groups" section of the overall site.
jesusenlanet commentedon Sep 1, 2021
Yes, they appear in the main groups list, some of them appear on the response, some other no.
Also all of them have the same
localdomain.jacalata commentedon Feb 16, 2023
In theory this was fixed a long while ago, but it's not working now. Same problem with searching In for projects. I suspect fixes we made for other encoding issues broke this one again.
[-]Groups filter - Operator.In - Unable to make it work as expected[/-][+]Filter Operator.In - Cannot find groups/projects with spaces in their name[/+]bryceglarsen commentedon Mar 25, 2023
I think the same issue affects workbooks. Working on a sample with Superstore and World Indicators and not returning anything with In. 😢
bab014 commentedon Apr 24, 2023
I have the exact same issue when querying for data sources. I have one that has a space in the name and it just removes the space and does not url encode it at all. So I don't get a match.
The example datasource is "EoA Datasource - Pol"
and when I debug the
urllib3output for the rest call is the followingLarsBreddemann commentedon Jul 10, 2023
I face the same issue: when searching for projects, spaces in the search term are removed by this line 14
in
tableauserverclient/server/filter.pyThis really should be parsed into URL encoding instead of just removing spaces and single quotes
urllib.parse.quote (value_string)should do the trick here.Or, simpler,
value_string.replace (" ", "%20").replace("'", "")The last change to this line did not change this behavior.
I do not see how enabling search terms with spaces requires a server side enhancement. When searching from the UI both Tableau Server and Cloud encode the space in the search term with
%20and return the correct result.LarsBreddemann commentedon Jul 25, 2023
I've committed PR #1259 to fix this issue.