Select to view content in your preferred language

Survey123 Inbox Query Filter returning error code 400 - Cannot perform query: invalid query parameters

172
2
Jump to solution
10-16-2025 03:32 PM
FayGlunt
Regular Contributor

S123 Version: 3.24.21; iPadOS 18.7.1; iPad 9th gen;
This works for us:
survey_status = 'Assigned' OR survey_status = 'InProgress' OR survey_status = 'Paused'
But this throws an error:
( ( survey_status = 'Assigned' OR survey_status = 'InProgress' OR survey_status = 'Paused') AND ( assignee = '${username}' ) )
Also, this does:
assignee = '${username}'

Can anyone help me?  I have both values in my feature layer to check, and they match.

Thanks in advance for the help.  

0 Kudos
1 Solution

Accepted Solutions
Neal_t_k
Frequent Contributor

Is survey status in the form a select_one, if so have you verified that capitalization is correct? Also ${username} shouldn't have quotes.

Another way you could try is 

survey_status IN ('Assigned', 'InProgress', 'Paused') AND assignee = ${username}

View solution in original post

2 Replies
Neal_t_k
Frequent Contributor

Is survey status in the form a select_one, if so have you verified that capitalization is correct? Also ${username} shouldn't have quotes.

Another way you could try is 

survey_status IN ('Assigned', 'InProgress', 'Paused') AND assignee = ${username}

FayGlunt
Regular Contributor
Classification: Internal

Oh my goodness. This fixed it. Thank you so much. It was the single quotes. And, I liked the IN operator more than using the OR. Thanks again.
0 Kudos