Hi;
i have this exception
WCCILdata (0), 2019.01.15 10:05:49.934, PARAM,SEVERE, 54, Unexpected state, ValHistEngine, setValue, Falscher Variable-Typ
When i set dp values from custom C# manager
how can i avoid this issue
thanks in advance
Exception: Unexpected state, ValHistEngine, setValue, Falscher Var
- AliBou
- Posts:25
- Joined: Wed Mar 28, 2018 3:57 pm
Exception: Unexpected state, ValHistEngine, setValue, Falscher Var
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Exception: Unexpected state, ValHistEngine, setValue, Falscher Var
Which datatype does the dp element have you are writing using the C# manager?
Do you get the same error when the value is set with the UI, e.g. the PARA module?
Which WinCC OA version are you using?
Best Regards
Leopold Knipp
Senior Support Specialist
Do you get the same error when the value is set with the UI, e.g. the PARA module?
Which WinCC OA version are you using?
Best Regards
Leopold Knipp
Senior Support Specialist
- AliBou
- Posts:25
- Joined: Wed Mar 28, 2018 3:57 pm
Re: Exception: Unexpected state, ValHistEngine, setValue, Falscher Var
Hi
and thak you for your response:
1- the datatypes are various : bool, integer.....
2- No, we don't have this kind of exceptions when seting values from Para
3- WinccOA version 3.16 P002
thank you by advance
Best regards
and thak you for your response:
1- the datatypes are various : bool, integer.....
2- No, we don't have this kind of exceptions when seting values from Para
3- WinccOA version 3.16 P002
thank you by advance
Best regards
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Exception: Unexpected state, ValHistEngine, setValue, Falscher Var
Possibly you can do the following test to get more detailed information:
-- Start the project
-- Wait until the startup is finished
-- Set a dp element (config + attribute) using your API manager
-- Check if the log message occurs
-- Set the same dp element (config + attribute) using the PARA module
-- Check if the log message occurs
If the message was written when the value was written by the API manager
-- Activate the debug flag "-rcv 2" for the Data Manager
-- Set the same dp element (config + attribute) using your API manager
-- Check if the log message occurs
-- Set the same dp element (config + attribute) using the PARA module
-- Check if the log message occurs
-- Deactivate the debug flag "-rcv 0" for the Data Manager
In the log file for the Data Manager WCCILdata0.log you can see which messages have been received by the Data Manager.
Probably you can find a difference in the messages send by the API and the UI manager.
Best Regards
Leopold Knipp
Senior Support Specialist
-- Start the project
-- Wait until the startup is finished
-- Set a dp element (config + attribute) using your API manager
-- Check if the log message occurs
-- Set the same dp element (config + attribute) using the PARA module
-- Check if the log message occurs
If the message was written when the value was written by the API manager
-- Activate the debug flag "-rcv 2" for the Data Manager
-- Set the same dp element (config + attribute) using your API manager
-- Check if the log message occurs
-- Set the same dp element (config + attribute) using the PARA module
-- Check if the log message occurs
-- Deactivate the debug flag "-rcv 0" for the Data Manager
In the log file for the Data Manager WCCILdata0.log you can see which messages have been received by the Data Manager.
Probably you can find a difference in the messages send by the API and the UI manager.
Best Regards
Leopold Knipp
Senior Support Specialist
- AliBou
- Posts:25
- Joined: Wed Mar 28, 2018 3:57 pm
Re: Exception: Unexpected state, ValHistEngine, setValue, Falscher Var
Hi
i applied your suggestion with verbose log in Data manager
1- when setting the value from the para : no problem and no log
2- when stting this same value from c# Manager i have this warning and this exception
WCCOAs7plus (2), 2019.01.25 09:17:29.335, SYS, WARNING, 54, Unexpected state, IOTransCont, outputTrans, Outstanding transaction for: (Type: 241 Sys: 1 Dp: 977 El: 4 : _original.._value)
WCCOAs7plus (2), 2019.01.25 09:17:29.336, PARAM,SEVERE, 11, Datatype conversion incorrect - incompatible datatypes, DP: (Type: 241 Sys: 1 Dp: 977 El: 4 : _original.._value), MAN: (SYS: 1 Driver -num 2 CONN: 1), 1036_Exch_PLC_GA.KeepAlive.Inc.02_Rec_GA_PLC
3- in the WCCILdata0.Log i have the log
from C# manager
---------------------------------------------------------------
[2019.01.25;09:04:20:250 (0,003) V3100] DP_MSG_HOTLINK Src: (SYS: 1 Event -num 0 CONN: 1) Dst: (SYS: 1 Data -num 0 CONN: 1) Peer: (SYS: 1 Event -num 0 CONN: 1) originTime: 2019.01.25;09:04:20:249 realTime: 0 peerMsgId: 1428 msgId: 3734 origMsgId: 3734 wantAnswer: 0 answerId: 0
Group: 0
connectOn: 0 refresh: 0 OK
Src: (SYS: 1 Driver -num 2 CONN: 1) User: 0 Time: 2019.01.25;09:04:20:247
Item: 0 (System1:KA_PEI100.Inc.02_Rec_GA_PLC:_original.._value (Type: 241 Sys: 1 Dp: 977 El: 4 : _original.._value) Value: 954091)
Item: 1 (System1:KA_PEI100.Inc.02_Rec_GA_PLC:_original.._stime (Type: 241 Sys: 1 Dp: 977 El: 4 : _original.._stime) Value: 2019.01.25 09:04:20.247001000)
Item: 2 (System1:KA_PEI100.Inc.02_Rec_GA_PLC:_original.._status64 (Type: 241 Sys: 1 Dp: 977 El: 4 : _original.._status64) Value: 9439544818970919169)
WCCILdata(0) RECEIVED:
---------------------------------------------------------------
from Para
---------------------------------------------------------------
[2019.01.25;09:29:01:412 (0,043) V3100] DP_MSG_HOTLINK Src: (SYS: 1 Event -num 0 CONN: 1) Dst: (SYS: 1 Data -num 0 CONN: 1) Peer: (SYS: 1 Event -num 0 CONN: 1) originTime: 2019.01.25;09:29:01:412 realTime: 0 peerMsgId: 948 msgId: 2363 origMsgId: 2363 wantAnswer: 0 answerId: 0
Group: 0
connectOn: 0 refresh: 0 OK
Src: (SYS: 1 Driver -num 2 CONN: 1) User: 0 Time: 2019.01.25;09:29:01:412
Item: 0 (System1:KA_PEI100.Inc.02_Rec_GA_PLC:_original.._value (Type: 241 Sys: 1 Dp: 977 El: 4 : _original.._value) Value: 896)
Item: 1 (System1:KA_PEI100.Inc.02_Rec_GA_PLC:_original.._stime (Type: 241 Sys: 1 Dp: 977 El: 4 : _original.._stime) Value: 2019.01.25 09:29:01.412000000)
Item: 2 (System1:KA_PEI100.Inc.02_Rec_GA_PLC:_original.._status64 (Type: 241 Sys: 1 Dp: 977 El: 4 : _original.._status64) Value: 9439544818971706113)
WCCILdata(0) RECEIVED:
---------------------------------------------------------------
thank you by advance
best regards
i applied your suggestion with verbose log in Data manager
1- when setting the value from the para : no problem and no log
2- when stting this same value from c# Manager i have this warning and this exception
WCCOAs7plus (2), 2019.01.25 09:17:29.335, SYS, WARNING, 54, Unexpected state, IOTransCont, outputTrans, Outstanding transaction for: (Type: 241 Sys: 1 Dp: 977 El: 4 : _original.._value)
WCCOAs7plus (2), 2019.01.25 09:17:29.336, PARAM,SEVERE, 11, Datatype conversion incorrect - incompatible datatypes, DP: (Type: 241 Sys: 1 Dp: 977 El: 4 : _original.._value), MAN: (SYS: 1 Driver -num 2 CONN: 1), 1036_Exch_PLC_GA.KeepAlive.Inc.02_Rec_GA_PLC
3- in the WCCILdata0.Log i have the log
from C# manager
---------------------------------------------------------------
[2019.01.25;09:04:20:250 (0,003) V3100] DP_MSG_HOTLINK Src: (SYS: 1 Event -num 0 CONN: 1) Dst: (SYS: 1 Data -num 0 CONN: 1) Peer: (SYS: 1 Event -num 0 CONN: 1) originTime: 2019.01.25;09:04:20:249 realTime: 0 peerMsgId: 1428 msgId: 3734 origMsgId: 3734 wantAnswer: 0 answerId: 0
Group: 0
connectOn: 0 refresh: 0 OK
Src: (SYS: 1 Driver -num 2 CONN: 1) User: 0 Time: 2019.01.25;09:04:20:247
Item: 0 (System1:KA_PEI100.Inc.02_Rec_GA_PLC:_original.._value (Type: 241 Sys: 1 Dp: 977 El: 4 : _original.._value) Value: 954091)
Item: 1 (System1:KA_PEI100.Inc.02_Rec_GA_PLC:_original.._stime (Type: 241 Sys: 1 Dp: 977 El: 4 : _original.._stime) Value: 2019.01.25 09:04:20.247001000)
Item: 2 (System1:KA_PEI100.Inc.02_Rec_GA_PLC:_original.._status64 (Type: 241 Sys: 1 Dp: 977 El: 4 : _original.._status64) Value: 9439544818970919169)
WCCILdata(0) RECEIVED:
---------------------------------------------------------------
from Para
---------------------------------------------------------------
[2019.01.25;09:29:01:412 (0,043) V3100] DP_MSG_HOTLINK Src: (SYS: 1 Event -num 0 CONN: 1) Dst: (SYS: 1 Data -num 0 CONN: 1) Peer: (SYS: 1 Event -num 0 CONN: 1) originTime: 2019.01.25;09:29:01:412 realTime: 0 peerMsgId: 948 msgId: 2363 origMsgId: 2363 wantAnswer: 0 answerId: 0
Group: 0
connectOn: 0 refresh: 0 OK
Src: (SYS: 1 Driver -num 2 CONN: 1) User: 0 Time: 2019.01.25;09:29:01:412
Item: 0 (System1:KA_PEI100.Inc.02_Rec_GA_PLC:_original.._value (Type: 241 Sys: 1 Dp: 977 El: 4 : _original.._value) Value: 896)
Item: 1 (System1:KA_PEI100.Inc.02_Rec_GA_PLC:_original.._stime (Type: 241 Sys: 1 Dp: 977 El: 4 : _original.._stime) Value: 2019.01.25 09:29:01.412000000)
Item: 2 (System1:KA_PEI100.Inc.02_Rec_GA_PLC:_original.._status64 (Type: 241 Sys: 1 Dp: 977 El: 4 : _original.._status64) Value: 9439544818971706113)
WCCILdata(0) RECEIVED:
---------------------------------------------------------------
thank you by advance
best regards