function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
janirjanir 

test errors after spring 17 update

Hi,

I am receiving the following error after Spring 17 update in a test, prior to the update it was working fine

System.UnexpectedException: ; nested exception is: common.exception.ApiQueryException: FROM PermissionSet WHERE Label = ( 'YYYY', 'XXXX ) ^ ERROR at Row:1:Column:44 Bind variables only allowed in Apex code

Executed SOQL:

delete [SELECT Id, AssigneeId, PermissionSetId, PermissionSet.Label FROM PermissionSetAssignment WHERE AssigneeId IN :userSet AND PermissionSet.Label IN :userDeleteApp];

userDeleteApp is string set
Set<String> userDeleteApp = new Set<String>();

Any help would be appreciated,
Thanks,
-Jani