Skip to main content
durgav0001
New Participant
Jan 9, 2023 8:03 AM UTC
Question

Keyword and non-keyword arguments must not be mixed. Used in: queryfilter.

Hello, 
Am getting this error for the below code that am using to build the task interface.

Need your inputs and suggestions.

query: a!query(
filter: a!queryFilter(
field: "c5",
operator: "=", loggedInUser(),
value: local!statusFilter,
applyWhen: not(isnull(local!statusFilter)))
)

Thanks.

4 replies

Participating Frequently
Jan 9, 2023 8:07 AM UTC

Hi Durga, Can you please remove the loggedInUser() function beside operator and test it. It will work fine

konduruc733182
Inspiring
Jan 9, 2023 9:41 AM UTC

Hello durgav0001,

You are passing a value into the operator. 

hence the error.

harshitb6843
Brainy
Jan 9, 2023 9:42 AM UTC

Updated code. 

a!query(
    filter: a!queryFilter(
        field: "c5",
        operator: "=",
        value: local!statusFilter,
        applyWhen: not(isnull(local!statusFilter)
        )
    )
)

durgav0001
New Participant
Jan 9, 2023 9:47 AM UTC

Resolved the error, and code is working now.

local!test:a!queryProcessAnalytics(
report: cons!EC_MANAGER_TASK_PROCESS_REPORT_POINTER,
query: a!query(
filter: a!queryFilter(
field: "c5",
operator: "=",
value: local!statusFilter,
applyWhen: not(isnull(local!statusFilter))
),
pagingInfo: a!pagingInfo(1,5000)
)
),