Commit Transaction
  • 06 Nov 2023
  • 1 Minute to read
  • Dark
    Light

Commit Transaction

  • Dark
    Light

Article Summary

Step Details

Introduced in Version4.0.0
Last Modified in Version8.16.0
Modification DetailsFixed the issue where the Transaction Steps were breaking on migration.
LocationDatabase > 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

Using Transaction steps


Feature Changes

DescriptionVersionDeveloper Task
Fixed the issue where the Transaction Steps were breaking on migration8.16[DT-039127]

Was this article helpful?

What's Next