Skip to main content
10-Marble
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

10 replies

22-Sapphire I
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?

Translate
10-Marble
Jul 19, 2023 7:04 AM UTC

Hi, Where can i find ForwardEvent service?

Translate
15-Moonstone
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.

Translate
Support
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

Translate
Ascherer17
16-Pearl
Aug 20, 2026 5:08 PM UTC

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.

Translate
16-Pearl
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. 

Translate
10-Marble
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

Translate