Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Unable to read history from Loytec LINX-215 device
September 21, 2020
19:27, EEST
Avatar
bibhudatta.sahu@honeywell.com
Member
Members
Forum Posts: 19
Member Since:
May 15, 2020
sp_UserOfflineSmall Offline

Hi Team,
We are using Prosys SDK-v2.2. The client is using Loytec LINX-215 device where the server is installed. While reading the history from server by using below api

AccessController.doPrivileged((PrivilegedExceptionAction)() ->
{
UaClient.historyReadRaw(node_id, start_time, end_time, UnsignedInteger.valueOf(1000), true, null, TimestampsToReturn.Source);
});
catch (Exception e)
{
e.printStackTrace();
}

we are getting exception as below

Caused by: com.prosysopc.ua.StatusException: Bad_NotReadable (0x803A0000) “The access level does not allow reading or subscribing to the Node.” StatusCode=Bad_NotReadable (0x803A0000) “The access level does not allow reading or subscribing to the Node.”
at com.prosysopc.ua.client.UaClient.checkOperationResult(Unknown Source)
at com.prosysopc.ua.client.UaClient.a(Unknown Source)
at com.prosysopc.ua.client.UaClient.historyReadRaw(Unknown Source)

Could you please advice what is the cause, because of which we are getting exception.

The same code is working fine with other Prosys server.

Thanks,
Bibhu

September 22, 2020
13:36, EEST
Avatar
Matti Siponen
Moderator
Members

Moderators
Forum Posts: 349
Member Since:
February 11, 2020
sp_UserOfflineSmall Offline

Hello,

Please verify that the Node you’re trying to read history from has the HistoryRead bit set to 1 in AccessLevel and UserAccessLevel Attributes. Otherwise the historyReadRaw method may not work.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
24 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Heikki Tahvanainen: 402

hbrackel: 144

rocket science: 88

pramanj: 86

Francesco Zambon: 83

Ibrahim: 78

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

Member Stats:

Guest Posters: 0

Members: 727

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1529

Posts: 6471

Newest Members:

kourtneyquisenbe, ellis87832073466, zkxwilliemae, gabriellabachus, Deakin, KTP25Zof, Wojciech Kubala, efrennowell431, wilfredostuart, caitlynfajardo

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0

Administrators: admin: 1