Skip to main content
10-Marble
July 18, 2023
Question

Unable to Invoke Service AddDynamicRemoteSubscription > CS386233

  • July 18, 2023
  • 10 replies
  • 3310 views

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

10 replies

22-Sapphire I
July 18, 2023

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

Did you set permissions on that Service/Event?

10-Marble
July 19, 2023

Hi, Where can i find ForwardEvent service?

15-Moonstone
July 21, 2023

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.

Support
July 20, 2023

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

Ascherer17
16-Pearl
August 20, 2026

I believe this is the correct solution!  I experienced the same issue in Thingworx 10.1; non-admin users were not getting live changes coming from “GetProperties” (marked automatically update) in a mashup.

I opened the “BrowserGateway” template permissions and added Run Time Instance - Service execute (allow) on the services AddDynamicRemoteSubscription, ForwardEvent, and RemoveDynamicRemoteSubscription.  I believe I still have Property Read permissions granted for relevant properties also, as other comments mentioned.

I do still get a couple of errors like this, but I’m not sure that it means much.
SynchronizeModelState service failed on edge thing PersistentSession<GUID> with error code STATUS_NOT_FOUND.

16-Pearl
August 1, 2023

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. 

10-Marble
August 9, 2023

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