
08/08/2024

Hi,
I am trying to fetch history data for certain date(time) range. But I am getting Exception Bad_UnexpectedError (0x80010000) “An unexpected error occurred.”
HistoryReadDetails histReadDetails = new ReadRawModifiedDetails(Boolean.FALSE, startTime, endTime, UnsignedInteger.MAX_VALUE, Boolean.TRUE);())
@SuppressWarnings(“deprecation”)
ExtensionObject ebHist1 = ExtensionObject.encode(histReadDetails, QualifiedName.DEFAULT_BINARY_ENCODING,StackUtils.getDefaultSerializer(),EncoderContext.getDefaultInstance());
HistoryReadRequest historyReadReq = new HistoryReadRequest();
historyReadReq.setHistoryReadDetails(ebHist1);
historyReadReq.setNodesToRead(historyReadValueIdAr);
historyReadReq.setRequestHeader(null);
historyReadReq.setReleaseContinuationPoints(Boolean.TRUE);
historyReadReq.setTimestampsToReturn(TimestampsToReturn.Both);
HistoryReadResponse histResponse = serverSessionChannel.HistoryRead(historyReadReq);
Could you please suggest the cause of exception
1 Guest(s)