Received error
"Entity is not api accessible (Line: 1, Column: 8)"
Could not find what is actually causing error, or what it means.
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this communityReceived error
"Entity is not api accessible (Line: 1, Column: 8)"
Could not find what is actually causing error, or what it means.
I had a line like following
Project p = projectsMap.get( projId );
When I changes this line to
Project__c p = projectsMap.get( projId );
everything has been saved ok. Actually I meant Project__c (custom object), not sure what Project could be.
Ran into this error recently when trying to use the AggregateResult class. Turns out the API version on the class in the org I was in was at 16. Moved it up to a higher API version (arbitrarily used 20.0 but could have gone to the latest, I suppose) and stopped getting the error.
There must be some object which is used illegally. Try to rectify such errors. Ex. Account acc = new Account(); acc.Type__c = 'Prospect'; Direct_number__C = '';
Here the 3rd line should be acc.Direct_number__C = ''; See if you have made any such mistake.
I wrote Owner.Id instead of acc.OwnerId and got this error
Issue in my code was
userToRecords.put(Owner.Id,accIdAsList);
While it should have been
userToRecords.put(acc.OwnerId,accIdAsList);
I encountered this error, when I was trying to declare an instance of a Price Book standard Object.
My wrong declaration was:
PriceBook pb = new PriceBook();
Actually it should have been(after I checked with the standard dettails in Workbench):
PriceBook2 pb = new PriceBook2();
Things to keep in mind here:
A best practice for this, is to consult with the info of the Workbench interface, that provides more dettailed info for every entity in salesforce.