Hi,
I'm retrieving a list of table keys with GetTablePrimaryKeys, and then a column with GetParameterByPrimaryKey in a foreach, which works fine.
I then add a new row to the table in the script and loop back through the same section of code, but GetTablePrimaryKeys and GetParameterByPrimaryKey don't get the new row in the information from the element unless I end the script and restart it. Is there something I'm missing, or is this the way it behaves?
Hi Philip,
By default, within a C# code block, lists of primary key/display key mappings are cached for performance reasons. To prevent caching of table key mappings, add the following statement to your Automation script:
engine.SetFlag(RunTimeFlags.NoKeyCaching);
You can find more information on this on DataMiner Help