Greg Lindstrom
05/14/2026, 7:06 PMkapa.ai
05/14/2026, 7:06 PMSite (or however it's referenced in your filter) does not exist in the target workspace. Here are the most likely causes and fixes: 1. Wrong Label ID in the MAQL Expression When you copied the previous request and changed the workspace, the label ID used in the maql field may not exist in the new workspace, or the ID itself is incorrect. Label IDs are case-sensitive. [Community Slack] Double-check the exact label ID in the new workspace. For example, if your MAQL looks like: {label/Site} = "some_value" Make sure Site matches the exact label ID (including capitalization) as it exists in the target workspace's logical data model. 2. Correct JSON Structure for a User Group Filter Also verify your JSON body uses userGroup (not user) for both the relationship key and the type value. A common mistake is setting the type correctly but using the wrong relationship key. [Community Slack] The correct structure for a user group filter via the Entity API is: {
"data": {
"type": "userDataFilter",
"id": "<data-filter-id>",
"attributes": {
"maql": "{label/your_label_id} = \"your_value\"",
"title": "<data-filter-name>"
},
"relationships": {
"userGroup": {
"data": {
"id": "<user-group-id>",
"type": "userGroup"
}
}
}
}
} Note that both the relationship key (userGroup) and the type value ("userGroup") must be set correctly. [Set Up User Data Filters] Steps to Resolve 1. Verify the label ID in your MAQL expression exists in the new workspace (check the LDM of that workspace). 2. Ensure the label ID is exactly correct, including case sensitivity. 3. Confirm the userGroup relationship key and type are both set to userGroup. 👍 0 button 👎 0 button ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups. 👀 Our Support team monitors all messages and will jump in if needed.Greg Lindstrom
05/14/2026, 7:11 PMMauricio Cabezas
05/14/2026, 7:19 PMGreg Lindstrom
05/14/2026, 7:21 PMMauricio Cabezas
05/14/2026, 7:57 PMsite (lowercase), not Site — and since the MAQL filter is case-sensitive, the API couldn't find it.
Please update your request to use {label/site} instead of {label/Site} and give it a try!Greg Lindstrom
05/15/2026, 2:48 PMMauricio Cabezas
05/15/2026, 3:02 PMMauricio Cabezas
05/15/2026, 3:23 PM172bc3*** that the filter is linked to? If they're not a member of that group, the filter won't apply to them. Those two things are the most likely explanation for what you're seeing.Greg Lindstrom
05/15/2026, 3:58 PMMauricio Cabezas
05/15/2026, 6:18 PMuserDataFilter is using {label/site}, which points to a different attribute in your data model — one that only contains a single value and doesn't include the value you are filtering.
The correct attribute to use is v_site.site, which belongs to the another dataset and does contain the expected site values.
To fix this, please update the MAQL in your UDF definition: change this {label/site} to {label/v_site.site}, keeping the rest of the filter as-is.
Give it a try and let us know if the data filter is applied correctly for the test user.Greg Lindstrom
05/16/2026, 1:08 PMMauricio Cabezas
05/18/2026, 7:36 AMudf_****_148). POST is for creating new entities — since a filter with that ID was already in the database, the API rejected it. That's expected behavior.
You have two options to fix this — both work, pick whichever feels easier:
Option 1 — <http:///api/v1/entities/workspaces/{workspaceId}/userDataFilters/{objectId}|PATCH> (recommended, one call):
Update the existing filter in place. No need to delete anything, the userGroup relationship stays intact.
PATCH /api/v1/entities/workspaces/{workspace_id}/userDataFilters/{userDataFilter_id}
Content-Type: application/vnd.gooddata.api+json
{
"data": {
"type": "userDataFilter",
"id": "{userDataFilter_id}",
"attributes": {
"maql": "{label/v_site.site} = {your_filer_value}
}
}
}
Option 2 — <http:///api/v1/entities/workspaces/{workspaceId}/userDataFilters/{objectId}|DELETE> + <http:///api/v1/entities/workspaces/{workspaceId}/userDataFilters/{objectId}|POST> (two calls):
Delete the existing filter first, then recreate it with the correct MAQL. If you go this route, make sure to include the userGroup relationship in the POST body, otherwise the filter won't be linked to the group.
DELETE /api/v1/entities/workspaces/{workspace_id}/userDataFilters/{userDataFilter_id}
Let us know if you run into any issues!Greg Lindstrom
05/18/2026, 5:18 PM