5

There is Pushtopic usage within managed package which doesn't work because of the following error (This error was identified from https://workbench.developerforce.com -> Queries -> Streaming Push Topics)

4. Subscription Failure: 403::Subscriber does not have access to the entity in this topic
{
  "channel": "/meta/subscribe", 
  "clientId": "3m44lkwlhtstiq1g4urti47dpqv", 
  "error": "403::Subscriber does not have access to the entity in this topic", 
  "successful": false, 
  "id": "4", 
  "subscription": "/topic/XXXXXXXXX"
}

The query is defined correctly - namespace is added to field and sobject names What can be the problem?

5

I had the same issue and by deleting the push topic, and creating it again worked. The query had managed fields and managed objects, and when uninstalling and installing again the managed package, some how invalidates the push topic referring to its data.

  • Lifesaver I tell ya! – Eric Jun 16 '17 at 20:03
  • Saved my day :p – Manjot Singh May 15 '18 at 11:08
  • Please mark this as the correct answer if it solved your problem. – Kai Tribble Sep 18 '18 at 17:25
3

Check that the user in the target org has permissions to read the object in question. It could be a profiles thing or it might be a licencing issue.

Check that the user has a licence for the package and has been assigned any pertinent permission sets included in the package. If the package doesn't use permission sets and was installed for the Admin user only then you either need to modify all profiles (which gets messy) or reinstall the package and choose the option that makes it available to all users (this is much easier).

  • Strangly but I can query referenced sobject like 'Select ns__field__c from ns__sobj'(=query*) but when I run query 'select Name, query* from PushTopic' it says 'Access Denied: You don't have access to the referenced entity in the query'. Mentioned field and sobj are enabled for profiles. – Natallia Jun 25 '14 at 7:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.