Page 1 of 1

Returning service fault when overriding HistoryReadRaw

Posted: 15 Nov 2022, 11:33
by stephenTissot
Hi
To allow historical access on our server, we are overriding HistoryReadRaw.
In some cases (example when 2 of 3 required parameters are not specified - StartTime, EndTime and NumValuesPerNode) the server must raise a service fault (BadHistoryOperationInvalid in this example).

When in HistoryReadRaw we do this :
return new HistoryReadResult() { StatusCode = StatusCodes.BadHistoryOperationInvalid }
The status is returned but at an operational level.
So question is : how can we set the service fault using code in HistoryReadRaw methog ?

Thanks

Re: Returning service fault when overriding HistoryReadRaw

Posted: 16 Jan 2023, 10:41
by Support Team
Hi Stephen,

you are not able to trigger a service fault from the application side. These can only be raised by the sdk.
But good news, we have addressed the history details check in the upcoming V3.2.2 release.

Stay tuned.