Professional OPC
Development Tools

logos

Online Forums

Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.

Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.

Do not use the Contact page for technical issues.

DUE TO ADMINISTRATIVE REASONS, WE MAY NOT BE ABLE TO RESPOND (OR TO RESPOND AS QUICKLY AS USUAL) BETWEEN December 30, 2024 - January 6, 2025. WE APOLOGIZE FOR INCONVENIENCE.

BadSessionIdInvalid

More
01 Aug 2017 16:21 #5401 by support
Replied by support on topic BadSessionIdInvalid
I think you should primarily complain about the issue to the server vendor and have them investigate.

If that fails to give an answer, we will need to troubleshoot the communication in detail. For that, please follow the instructions here: kb.opclabs.com/Collecting_information_for_troubleshooting .

Best regards

Please Log in or Create an account to join the conversation.

More
31 Jul 2017 09:38 - 01 Aug 2017 13:49 #5391 by Captain_Dash
Replied by Captain_Dash on topic BadSessionIdInvalid
1) The server is the built-in opc server from codesys

2) No we haven't tried this, yet.

3) We are also subscribing our variables, but in this case there are no updates in this time period.

The connection is reastablishing after trying to write values, but the values will be not written automatically after this. We have to write values again after the connection was reastablished.

What further actions can we take to resolve this issue? Providing different parameters to the session can not resolve this?
Last edit: 01 Aug 2017 13:49 by Captain_Dash. Reason: added question

Please Log in or Create an account to join the conversation.

More
31 Jul 2017 08:30 #5390 by support
Replied by support on topic BadSessionIdInvalid
I do not think this is anything wrong on your side.
It may be a problem in the OPC server; less likely, in QuickOPC. We will need to investigate.

1) Which OPC server are you connecting to?

2) Out of curiosity, have you tried approximately the same approach with some other server (incl. our public OPC UA servers), and if so, what were the results?

3) Are you also subscribing to something, or is it just reads/writes?

Regards

Please Log in or Create an account to join the conversation.

More
17 Jul 2017 15:06 #5367 by Captain_Dash
Hello,

After we successfully connected the client to the server and created a mapping which reads correct values and is also able to modify the values on the server we got the issue, that after 60 seconds without any interaction we receive a BadRequestTimeout/BadSessionIdInvalid message when we try to modify the values again.
Is there a way to prevent this? Some settings we may missed?

As long as we keep changing the values the connection stays stable. I guess we are running into a timeout, maybe from the server.

best regards

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.047 seconds