Delete and Clear Entity
  • 28 Dec 2022
  • 1 Minute to read
  • Dark
    Light

Delete and Clear Entity

  • Dark
    Light

Article Summary

Step Details

Introduced in Version4.0.0
Last Modified in Version5.0.0
LocationDatabase

The Delete and Clear Entity step deletes the Entity and clears any associated tables using its data.


Properties

Inputs

PropertyDescriptionData Type
Entity IDThe Id of the entity to delete.String


Common Errors

entity Id cannot be null

If the entity Id is not correctly mapped, an error will occur.

To correct this, ensure that the mapping for the entity Id is configured.

Exception Message:

Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Delete And Clear Entity 1[DeleteAndClearEntity] in flow [Flow 1]: Exception invoking method DeleteAndClearEntity on class EntitySteps
 ---> DecisionsFramework.LoggedException: Exception invoking method DeleteAndClearEntity on class EntitySteps
 ---> DecisionsFramework.LoggedException: entity Id cannot be null
 at DecisionsFramework.ServiceLayer.Services.Folder.FolderService.GetEntityByID(AbstractUserContext userContext, String entityID
 at DecisionsFramework.Design.Flow.CoreSteps.DataBase.EntitySteps.GetEntityById(String entityId
 at DecisionsFramework.Design.Flow.CoreSteps.DataBase.EntitySteps.DeleteAndClearEntity(String entityId)
   --- 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 ---



Was this article helpful?