Overview
This error displays when a user created an invalid filter for a list view and is trying to do a certain operation from the list a list view, i.e. Pay Batch or Post Time Card.
Error
core.apexpages.exceptions.ApexPagesHandledException: Object type not accessible. Please check permissions and make sure the object is not in development mode: ...invalid operator. Sample of the full error below:
core.apexpages.exceptions.ApexPagesHandledException: Object type not accessible. Please check permissions and make sure the object is not in development mode: and (CreatedDate < null)) AND (id IN ^ ERROR at Row:4:Column:6 invalid operator. Original queryString was: 'SELECT Id FROM AcctSeed__Account_Payable__c WHERE ( ((AcctSeed__Status__c = 'Posted') and (AcctSeed__Payment_Status__c != 'Paid') and (AcctSeed__Payee__c != 'Accrual Pub Expense') and (CreatedDate < null)) AND (id IN ('a120M000009VI0eQAG') ) ) ORDER BY Name ASC LIMIT 10000'
Cause
Typically, Salesforce Classic displays an error message if a filter for a List View is invalid (see image below).
However, in Salesforce Lightning you can still Save a List View with invalid filters (see image below). Therefore, it is easier to make mistakes with invalid filters in Salesforce Lightning.
We only find out that a filter is invalid when we click on a button in a List View (i.e. Pay Batch, Post Time Card) and receive an error like those below:
Resolution
Fix or remove the invalid filters (see image below).
Comments
1 comment
This fix of updating the list filter did not work in our org. Are there any other solutions?
Please sign in to leave a comment.