Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Historian

GetLastError

  • Last UpdatedNov 17, 2021
  • 1 minute read

The GetLastError method returns a message for any error that occurs when the report is run using the RunReport method.

Syntax

[Result=] ActiveFactoryWorkbook.GetLastError();

Return Value

Returns a message value containing the error for the RunReport method. If an empty string is returned, then an error has occurred. If the output file name is returned, a warning may have occurred.

Remarks

Possible errors are:

  • Only available when a server is present, click OK to add a server.

  • The input file specified does not exist.

  • The output format specified is invalid.

  • The DateMode argument must be 0, 1, 2, or 3.

  • The specified start date is invalid.

  • The specified end date is invalid.

  • The specified duration is invalid.

  • TagString is not empty and AFTagBinding does not exist.

  • Invalid TagString format.

  • Warning: The AFTagBinding range in the report contains no tags and no tags have been passed in.

  • The <filename> range must be defined.

  • An error occurred while attempting to save the file.

  • <filename> is unknown.

  • No values for <filename>.

  • Wizard Error.

TitleResults for “How to create a CRG?”Also Available in