Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

Global Workflow Delete Causes Error



  • I am having an issue trying to delete a global workflow and getting an error (below). By the error I am guessing it is in use. Is it possible to have the Global workflow UI include the list applications that are using it similar to how the global deployment includes the app list?

    547160Workflows_DeleteWorkflow49`The DELETE statement conflicted with the REFERENCE constraint "FK__BuildSchedules__Workflows". The conflict occurred in database "BuildMaster", table "dbo.BuildSchedules", column 'Releasefilter_Workflow_Id'.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Data.SqlClient.SqlException: 547160Workflows_DeleteWorkflow49`The DELETE statement conflicted with the REFERENCE constraint "FK__BuildSchedules__Workflows". The conflict occurred in database "BuildMaster", table "dbo.BuildSchedules", column 'Releasefilter_Workflow_Id'.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [SqlException (0x80131904): 547160Workflows_DeleteWorkflow49The DELETE statement conflicted with the REFERENCE constraint "FK__BuildSchedules__Workflows". The conflict occurred in database "BuildMaster", table "dbo.BuildSchedules", column 'Releasefilter_Workflow_Id'.] System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction) +388
    System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +815
    System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) +4515
    System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +6553853
    System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds) +6556619
    System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource1 completion, Int32 timeout, Task& task, Boolean asyncWrite) +586 System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite) +742
    System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +287
    Inedo.Data.DatabaseFactory.Inedo.Data.IDatabaseExecuter.ExecuteNonQuery(String storedProcName, DbParameter[] parameters) +258
    Inedo.BuildMaster.Web.WebApplication.Pages.Workflows.DeleteWorkflowPage.<CreateChildControls>b__1(Object s, EventArgs e) +75
    Inedo.Web.Controls.ButtonLinks.PostBackButtonLink.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +206
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3804

    Product: BuildMaster
    Version: 4.4.4



  • We've fixed the delete issue for the next maintenance release (v4.4.5), and we'll look into adding something to show the applications that consume the workflow - not sure if that will make that version or not.



Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation