Rerunning a failed Transaction
Litmus Production Record Database is processing incoming data for Tags, Production Events and Digital Twin through asynchronous processing. If such a process fails, this transaction is stored in the table PROREC_AT_ServiceBroker_Failed_Transaction. They will be kept there for the same amount of time as log data (by default = 24hours).
In the case a Transaction failed, users can investigate the transaction using log tables like the tables PROREC_ERROR_Log, PROREC_Misc_Log, PROREC_ProRec_Log and PROREC_Tag_Log. Once the root cause has been identified, users can fix the issue and rerun the transaction.
Method
Execute Stored Procedure PROREC_Misc_Rerun_AT_Transactions
Variable name | Datatype | Description | Example |
---|---|---|---|
@Action | INTEGER | A numeric representation of a specific action which can be performed. Possible Values:
Mandatory! Can not be NULL or Empty | 1 |
@ID | BIGINT | The Entry ID of a row in table PROREC_AT_ServiceBroker_Failed_Transaction. Can not be null for the actions 2,3,4 or 5 | NULL |
@recorduuid | CHAR(36) | The record_uuid of a specific entry of the XML object. Can not be null for action 4. | NULL |
@columntochange | VARCHAR(50) | The XML key to change. Allowed are:
Can not be null for action 4. | NULL |
@newvalue | VARCHAR(max) | The new value for the XML key defined by columntochange Can not be null for action 4. | NULL |
To Investigate, Fix and/or rerun a failed transaction logged in the table PROREC_AT_ServiceBroker_Failed_Transaction, call the stored procedure PROREC_Misc_Rerun_AT_Transactions using the T-SQL EXEC or EXECUTE keyword and provide the Input variables. Below is an example using T-SQL in SQL Server Management Studio:
Read out all entries from the table PROREC_AT_ServiceBroker_Failed_Transaction.
Result
View a specific entry from the table PROREC_AT_ServiceBroker_Failed_Transaction.
Result
View a break down of the XML object for the entry.
Result
Modify a value for an item in the XML object.
Result
Rerun a specific entry.
Result