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
DSLDSL 

No such column 'Id' on entity

We have a customer using our packaged app and we keep getting the exception message:

 



Visualforce Page: /apex/tw__ApexPage


System.Exception: No such column 'Id' on entity 'ns__CustomObject__c'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.


Class.ns.MyController.refreshList: line 1473, column 24

Class.ns.MyController.ControllerStart: line 212, column 9

Class.ns.MyController.<init>: line 171, column 13

Class.ns.MyExtension.<init>: line 16, column 9

External entry point

 

This is a VF page that gets added to the Contact page layout. It calls a method refreshList in the constructor that has a simple soql query.

 

So I can get rid of the error by not calling that soql query in the constructor. By why in the world would it say No such column Id?? Doesn't everything have an Id column?

 

It's only one customer (and one user) that hit this so I'm curious what they did. Any thoughts?

 

Thanks,

DSL

 

Best Answer chosen by Admin (Salesforce Developers) 
ForcecodeForcecode

I have seen this error before from one of our customers.

 

You should ask your customer if he deployed the package. 

 

This was the solution in our case.

All Answers

ForcecodeForcecode

I have seen this error before from one of our customers.

 

You should ask your customer if he deployed the package. 

 

This was the solution in our case.

This was selected as the best answer
PSS_BSBPSS_BSB

I get similiar: 

 

14766 [databaseUpdateVOD] FATAL com.salesforce.lexiloader.dao.database.DatabaseC
ontext  - Error getting value for SQL parameter: Id.  Please make sure that the
value exists in the configuration file or is passed in.  Database configuration:
 databaseUpdateVOD.