ReadHistory throws "HistoryReadRawModified has bad status BadInternalError" when variable is written from external Client #608
Replies: 8 comments 5 replies
-
I have no ideas what the issue is, but if you use wireshark or similar you can know what exactly uaexpert is writting and compare to our client and hopefully you will spot a difference. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick respose @oroulet . I'm able to find the rootcause for read history failure. |
Beta Was this translation helpful? Give feedback.
-
btw. are you using opcua-asyncio as server? if you get InternalError you shoudl have a stack trace there. What does it say? |
Beta Was this translation helpful? Give feedback.
-
Yes. I'm using opcua-asyncio server. Below is the stack trace,
I've found this working with opcua-asyncio client. However, with external client such as UAExpert, it itsn't getting updated. Note: I'm sorry for the broken link in the previous comment. I was referring to FreeOpcUa/python-opcua#727. |
Beta Was this translation helpful? Give feedback.
-
On fact I checked code and we do write Sourcetimestamp in client code! how did you manage not to write it? |
Beta Was this translation helpful? Give feedback.
-
Source Timestamp is coming when writing it from opcua asyncio client. It
didn't come when I write from uaexpert.
…On Fri, Jun 18, 2021, 4:19 PM oroulet ***@***.***> wrote:
On fact I checked code and we do write Sourcetimestamp in client code! how
did you manage not to write it?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#608 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQUSQPCMT5T24YIKP4L3QLDTTMQFDANCNFSM46ZOTMKA>
.
|
Beta Was this translation helpful? Give feedback.
-
OK so it is uaexpert not writing source timestamp. Not sure we should force source timestamp on server side... |
Beta Was this translation helpful? Give feedback.
-
I agree. The only doubt I have is either uaexpert isn't sending the timestamp or is timestamp getting lost when unpacking the struct from binary.
Cause source timestamp plays an important role in historical access and I feel it's too good to miss from ua expert's end.
|
Beta Was this translation helpful? Give feedback.
-
Hi All,
I've implemented opc ua server and enabled the variable with historizing using the below server code:
server.historize_node_data_change(var_object, period=Period, count=Count)
.I'm able to write the data to the same variable with opc ua client using the below client code:
var_object.write_value(VarValue, DataTypeDict[VarType])
I'm able to read the history from client using the below client code:
var_object.read_raw_history(start_time,end_time, count)
All those operations are successful. However, when I connect the server with uaexpert & write the data to historized variable, History read fails with the error "HistoryReadRawModified has bad status BadInternalError"
I'm not able to understand the difference between writing from asyncua client(which works) and uaexpert(which throws error).
I've gone through the existing code & opc ua specifications, found that variable
IsReadModified
in read_raw_history differentiates reading raw history and modified history. However, the same variable is assigned as False inread_raw_history
method present in node.py file. I'm not sure if it has any connection with the error I'm facing.Please let me know what I'm missing here.
Regards,
Charan
Beta Was this translation helpful? Give feedback.
All reactions