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

AVEVA™ Batch Management

HistHookUpdateErrorQRecord

  • Last UpdatedJun 06, 2017
  • 1 minute read

Description:

The HistHookUpdateErrorQRecord function is called by the HistQReader with appropriate data. When the function is called, it either returns an Update ErrorQ SQL query or NULL. Based on the return value, the HistQReader either updates a record in the ErrorQ table or executes its default implementation.

Syntax

char* HistHookUpdateErrorQRecord(int nRetryCount,char* szErrorMsg,int nErrorId)

Parameters:

  • nRetryCount

    • Type: Integer

    • Description: Contains the value that is updated in the RetryCount field of the ErrorQ table

  • szErrorMsg

    • Type: char*

    • Description: Contains the unique identification string that is filled in the Error Description field of the ErrorQ table

  • nErrorId

    • Type: Integer

    • Description: Contains the unique identification number (ErrorID) based on which the record is updated

Return Type: char*

This function returns an update query for the ErrorQ table of the BatchHistory database. The returned string must remain allocated (that is, it must return a static buffer).

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