• Amrendra Kumar 5
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
Hello Team

I have create a platform event and added a custom field to it. When i do a subscribe call using the streaming API, i get the "403:denied_by_security_policy:create_denied" error.
For my user "System Administrator" profile is assigned and it has "read" and "create" both the permission assigned for my platform event. 

Please suggest the solution.

Thanks!
Hello Team

I have create a platform event and added a custom field to it. When i do a subscribe call using the streaming API, i get the "403:denied_by_security_policy:create_denied" error.
For my user "System Administrator" profile is assigned and it has "read" and "create" both the permission assigned for my platform event. 

Please suggest the solution.

Thanks!
Subscription for a single topic works successfully but when I try to subscribe to another topic, i get the the exception below :-
com.salesforce.emp.connector.CannotSubscribe: Unable to subscribe to [/topic/13q8_3zpqi_j7akbccq:-1] [https://ap4.salesforce.com/cometd/39.0] : 403:denied_by_security_policy:create_denied
	at com.salesforce.emp.connector.EmpConnector.lambda$subscribe$6(EmpConnector.java:378)
I am confused here why it is not allowing me to subscribe since I only have 11 topics in my developer salesforce account, subscribed to one of them and trying to subscribe to another. As per the documentation, maximum 20 subscriptions are allowed per topic.

Strangley I am not able to reprodcue this issue on a standalone Java application which I wrote for POC purpose. This exeption occurs only when I integrate it with a java based web application.