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
Fabio Maturo 3Fabio Maturo 3 

Entity is not api accessible entity name: Question

Hi,

I'm trying to install in my sandbox the Salesforce CPQ and some other packages, but whatever I'm trying to install it gives me this error:

Entity is not api accessible entity name: Question or Entity is not org-accessible entity name: Question

I've added in the Global Publisher Layout "Question" action, but I still get this error, Does anyone has information about this kind of error?

Thanks in advance.
NagendraNagendra (Salesforce Developers) 
Hi Fabio,

Make sure you are using an API Version greater than or equal to 33.0. Any lower version will fail to compile if it references the AccountContactRelation object. Although the documentation claims this object was introduced in API Verison 37.0, it seems that the compiler will allow it a little further back. But you might as well use the most up to date version, which is currently 39.0.

Also, make sure you enable the feature. Go to Setup > Account Settings and make sure this option is checked: Allow users to relate a contact to multiple accounts.
Let Users Relate a Contact to Multiple Accounts(https://releasenotes.docs.salesforce.com/en-us/summer16/release-notes/rn_sales_shared_contacts_enable.htm)

From Setup, enter Account Settings in the Quick Find box, then select Account Settings.
Select Allow users to relate a contact to multiple accounts.

Add the Related Contacts related list to the account page layouts that your reps use.
Because the Related Contacts related list includes all direct contacts, you can remove the Contacts related list from your account page layouts.

Easily see who’s a direct contact for the account when you add the Direct field to the Related Contacts related list.

Add the Related Accounts related list to the contact page layouts your reps use.
Easily see which account is the contact’s primary account when you add the Direct field to the Related Accounts related list.

Decide whether you want to prevent activities from automatically rolling up to a contact’s primary account. If so, from Setup, go to the Activities Setting page and deselect Roll up activities to a contact's primary account.

If you want to look at the relationships between contacts and accounts, create custom report types.
Hope this helps.

Please mark this as solved if it's resolved so that it gets removed from the unanswered queue which results in helping others who are encountering a similar issue.

Thanks,
Nagendra

 
Fabio Maturo 3Fabio Maturo 3
Hi Nagendra,

My problem is not related to AccountContactRelation but it's related to Question Object, the trigger is:

chatter_answers_question_escalation_to_case_trigger

it's related to "Question".

Thanks,
Fabio