Code Fix: Using an empty string or empty field to filter an Active Directory SmartObject results in an error at runtime
Issue Description
When you use an empty string or empty field to filter an Active Directory SmartObject, an error is presented at runtime. The same error is presented when you use the IsEmpty filter to filter an Active Directory SmartObject.
Error Message
The following error occurs at runtime: “Message: The(&(objectClass=user)(objectCategory=person)(objectSid=*)(!samAccountType:1.2.840.113556.1.4.804:=3)(!userAccountControl:1.2.840.113556.1.4.804:=2)(mail=)) search filter is invalid.; ServiceName: ADService2; ServiceGuid: 83ac8763-ab63-4f86-8bc8-9bde8729b735; InnerExceptionMessage: ; “
Resolution
- Ensure you have K2 Five (5.0) installed.
- Download and Install the K2 Five (5.0) September 2018 Cumulative Update from K2 Partner and Customer Portal.
- Download the K2 Five (5.0) September 2018 Cumulative Update FP05 from K2 Partner and Customer Portal.
- Install the K2 Five (5.0) September 2018 Cumulative Update FP05 to apply the fix.