Commit Transaction
- 06 Nov 2023
- 1 Minute to read
- Print
- DarkLight
Commit Transaction
- Updated on 06 Nov 2023
- 1 Minute to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
Step Details | |
Introduced in Version | 4.0.0 |
Last Modified in Version | 8.16.0 |
Modification Details | Fixed the issue where the Transaction Steps were breaking on migration. |
Location | Database > Transaction |
The Commit Transaction step is used in conjunction with the Start Transaction step to complete or commit a transaction to a database.
Transaction Steps might not work after migrating the project between v8.15 and lower.
When migrating a project that includes Transaction Steps to an environment with a version of 8.15 or lower, you may encounter errors. However, this issue has been addressed and resolved in version 8.16 and higher. To ensure a successful migration, specific conditions and steps must be followed. For more information, refer to Using Transaction Steps.
Note:
It is important to note that the Start, Commit, and Rollback Steps cannot be utilized independently of each other in a Flow. These three steps must all be used within the same Flow to operate the Transaction or roll back it successfully.
Common Errors
Missing Start Transaction step
The Commit Transaction step requires the Start Transaction step. If a Start Transaction step is not found along the same path and before the Commit Transaction step, then the step will throw the following error:
Exception Message:
Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Commit Transaction 1[CommitTransaction] in flow [Testing]: Exception invoking method CommitTransaction on class ORMSteps ---> DecisionsFramework.LoggedException: Exception invoking method CommitTransaction on class ORMSteps ---> DecisionsFramework.LoggedException: cannot commit transaction because we are not in one currently
at DecisionsFramework.Data.ORMapper.DynamicORM.Commit(String name)
at DecisionsFramework.Data.ORMapper.ORMSteps.CommitTransaction()
--- End of inner exception stack trace ---
at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.Run(StepStartData data)
at DecisionsFramework.Design.Flow.FlowStep.RunStepInternal(String flowTrackingID, String stepTrackingID, KeyValuePairDataStructure[] stepRunDataValues, AbstractFlowTrackingData trackingData)
at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData)
--- End of inner exception stack trace ---
Related Information
Feature Changes
Description | Version | Developer Task |
---|---|---|
Fixed the issue where the Transaction Steps were breaking on migration | 8.16 | [DT-039127] |
Was this article helpful?