Variable type not suitable for archiving

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
4 posts • Page 1 of 1
fandersen
Posts:51
Joined: Tue Aug 26, 2014 12:39 pm

Variable type not suitable for archiving

Post by fandersen »

Hello,

in my log viwer I get a servere message that the variable type is not suitable for archiving. How can I diagnose the problem properly?
I know how to spot the affacted data points but not the element. Is there a way to get the elementName by elementId?

Code: Select all

12.09 10:22:47.459, 
IMPL,
SEVERE,     
54, 
Unexpected state, Variable type not suitable for archiving (ErrNum=14), 
ErrorDP: DpId = 444, elementId = 47, 
According the information in watch object, stored element has vartype 40000, but incoming value is of vartype 70000, 
[D:\\workspaces\\3.12\\workspace\\Exe\\DataNew\\ValueArchive\\Archive.cpp:2648]
Hopefully someone can help me with this. :side:

Gertjan van Schijndel
Posts:634
Joined: Mon Aug 02, 2010 10:37 am

Re: Variable type not suitable for archiving

Post by Gertjan van Schijndel »

You can get the dpe name by id in CTRL with the function 'dpGetName()' or with the tool 'WCCOAtoolNameToId' (in online help under Reference tables -> DP identification).

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Variable type not suitable for archiving

Post by leoknipp »

Hello,

in most of the cases you can get rid of this error with the following list of actions:
-- open a para-module
-- select the dp-element for the given DPE-ID
-- open the configuration panel for the _archive-config
-- select another archive
-- save the configuration
-- make a fileswitch for the archive which has written the log-message
-- open again the configuration panel for the _archive-config
-- select the archive which was used before
-- save the configuration

A loss of data will not occur when doing these changes.

Best Regards
Leopold Knipp
Senior Support Specialist

fandersen
Posts:51
Joined: Tue Aug 26, 2014 12:39 pm

Re: Variable type not suitable for archiving

Post by fandersen »

Hello Leopold,

thanks for the solution, that solved the problem.

I created a CTRL-Script which helped me finding out the affected dpElements.

Code: Select all

int dpId = 435;
dyn_int dpElements;
    
dynAppend(dpElements, 45);
dynAppend(dpElements, 46);
dynAppend(dpElements, 47);
dynAppend(dpElements, 48);
    
string elementName;
int i;
    
for (i=1; i

4 posts • Page 1 of 1