Back

Topic

[KB437]“Copyfield was x max y” in the event viewer

Tags: Event viewer

14 years ago
By ACHT
Options
Print
Applies to: 

PcVue all versions


Summary: 

Error message “Copyfield was X max Y” in the event viewer


Details: 

This message may appear in the following cases :

  • When you try to affect a text variable with SCADA Basic with a text string longer than the max size for the variable.
    Copyfield was X max Y vvvv
    X : Number of characters of the affected text string
    Y : The max size for the variable
    vvvv : Name of the var
    For example, the  following message appears for a text variable “TXT”, limited to 12 caracters, when it’s affected with a text string of 20 characters.
    Copyfield was 20 max 12 TXT
  • Whenever an event action is triggered on a text variable change with an expression.
    Copyfield was X max Y vvvv
    X : Number of characters of the expression for the event action +1
    Y : Number of characters of the expression for the event action
    vvvv : Expression of the event action
    For example an event action on the var « TXT » with the expression : =”TEST”, the folllowing message is generated.
    Copyfield was 5 max 4 TEST
  • When you try to affect (using SCADA basic) a text attribute of a variable with a text string longer than the max size of the attribute. Extended text attribute max size was 40 characters until version 9 and is 100 characters in version 10.0 and 11).
    Copyfield was X max Y vvvv
    X: number of characters of the text attribute
    Y : The max size for the attribute
    vvvv : Truncated text string the Scada Basic instruction is trying to affect .
    For example the following message appears if you try to execute this instruction.
    VARIABLE(“SETTATT”, ?Nom_var, TattNo, “My string with a size bigger than 40 characters”); ‘actually 47 characters
    CopyField was 47 max 40 My string with a size bigger than 40 char

Created on: 27 May 2011 Last update: 13 May 2024