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.
- Forum
- Discussions
- QuickOPC-Classic in .NET
- Reading, Writing, Subscriptions, Property Access
- Write Not Completed error when writing with the OPC Web Client.
Write Not Completed error when writing with the OPC Web Client.
The fix was for a problem which would, however, manifest itself as permanent: Once you got "write not completed" for a server, you will always get it for any Write (except when switching to a new EasyDAClient object with Isolated = true setting).
If you are seeing these problems *and they are transient*, i.e. at some later point in time the things return to normal, most likely it is simply the server that takes too long to make the Write. If you would like to verify this, it should be possible to deploy an OPC Analyzer (which acts as middle piece between the client and the server), and capture the communication traces. Do you want to go this route?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
var client = new EasyDAClient();
client.InstanceParameters.Timeouts.ReadItem = 5*60*1000;
client.InstanceParameters.Timeouts.WriteItem = 5*60*1000;
The timeout values are in milliseconds; in the example above, they are thus equal to 5 minutes.
Best regards
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
If the retries do help, most likely the error (which is basically a timeout) simply reflects the fact that the server takes such a long time to perform the write. It could even be that the write succeeds the first time already (and the retries are thus not necessary), except that - because we have a preset timeout - you get the error before the write completes. If this is the case, increasing the timeout will resolve the error, and you would be able to remove the retries as well.
Best regards
Please Log in or Create an account to join the conversation.
2 My software is doing up to 10 retries - it works (not sure if it ever even do0es it twice in a row)
3 I will do my best to create a project to send you - just v busy. It's part of a web application so will be interesting to see if i8t still happens with a simple console app.
Please Log in or Create an account to join the conversation.
2. When it happens, do all "writes" from that moment on return the error, or does it - after some time - start working again?
3. How easily can you reproduce it?
Thank you
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Best regards
Please Log in or Create an account to join the conversation.
but will find out more ...
A read failure isn't so bad but a write failure where I can't be sure if it succeeeded or not is not good at all as I might do a download twice. I am currently giving it all a really good soak test so will discover more.
Because of my other issue (see my recent post below) I have set holdperiods for topicread, topicwrite and itemdetach to zero - to see if disabling your caching of topics makes a difference. Presumably the reads are then connecting each time.
Sorry to mix up two errors in the same post - the write error is much more concerning I can cope with reads occassionally failing.
Please Log in or Create an account to join the conversation.
- Forum
- Discussions
- QuickOPC-Classic in .NET
- Reading, Writing, Subscriptions, Property Access
- Write Not Completed error when writing with the OPC Web Client.