Skip to main content
Jul 18, 2023 12:33 PM UTC
Question

Unable to Invoke Service AddDynamicRemoteSubscription > CS386233

Hi All,

 

I have a lot off error messages in application_log like : Unable to dispatch [ uri = /Things/PersistentSession124f3131-c19f-461d-b5ac-0bf932cadad1/Services/AddDynamicRemoteSubscription/]: Unable to Invoke Service AddDynamicRemoteSubscription on PersistentSession124f3131-c19f-461d-b5ac-0bf932cadad1 : Not authorized for ServiceInvoke on ForwardEvent in PersistentSession124f3131-c19f-461d-b5ac-0bf932cadad1

 

And this:  error executing APIRequest Message: Not authorized for ServiceInvoke on ForwardEvent in PersistentSession124f3131-c19f-461d-b5ac-0bf932cadad1, sending ERROR ResponseMessage to caller!

 

I did find the CS386233 and tried the solution , i did change the permission on User level and UserGroup level only the error messages still come in the application_log.

 

anyone got an idea how to fix this.

We use TW version 9.3.8.

 

Best regards,

Emiel

9 replies

Jul 18, 2023 7:29 PM UTC

It seems to be saying that the user doesn't have permissions on: ForwardEvent not AddDynamicRemoteSubscription.

Did you set permissions on that Service/Event?

Jul 19, 2023 7:04 AM UTC

Hi, Where can i find ForwardEvent service?

Jul 21, 2023 2:51 PM UTC

I, too, would like to know where the ForwardEvent service is. All I've been able to find is someone saying to add collection permissions to get this to work. Personally, I think that's lazy and doesn't really solve the problem since there are unwanted security issues with that approach.

Jul 20, 2023 4:32 AM UTC

Hi @EM_10066743 ,

Typically, the following permissions are required for adding the dynamic subscription:

  1. The user needs to have access to invoke the ForwardEvent service on the RemoteThing instance (BrowserGateway)

  2. Property Read permission on the property being subscribed to or all properties of the thing if a property name is not supplied.

  3. Visibility permission on the publisher thing.

And this article may also be helpful:

https://www.ptc.com/en/support/article/cs346816

Aug 1, 2023 2:44 AM UTC

Can you confirm what operations will lead to those errors?

There are some permision management improvements since TW 8.5.

In order to find the root cause, we need to know the exact instance version and related operations first. 

Aug 9, 2023 6:46 AM UTC

For now the solutions provided do not fix the error messages , after the summer holiday i will get back to it