If all data are correct and the update has been done successfully, a blank (‘ ‘) will be returned in parameter result.
Otherwise, result contains all errors that were found for the given data. In most cases, a numeric error message is completed by the name of the faulty column.
Example:
If m_api_pll_dns.upd_dn has been called, a value that looks like this can be returned:
Result = 201,104 – UNIT_WT_ID,102 – PLL_COMMENT,101 –
UNIT_DT_ID,106 – UNIT_WT_ID,HEADER
This means in detail:
-
The given DN does not exist (201).
-
The value for UNIT_WT_ID is not a numeric one (104).
-
The value for PLL_COMMENT is too large (102).
-
UNIT_DT_ID cannot be set to NULL (101).
-
The value for UNIT_WT_ID is not valid, perhaps a unit not belonging to Smart Materials units (106).
-
A column named HEADER is not supported by this package.
In the More Information section, you can find a complete list of all error codes.