New Project Wizard Fixes

Create new project in Architect ends error when click on Yes in Question “Deployment Scripts Pending” during create new project process.

Error:

image

========================================
New Project Failed
Update failed.
========================================
Update failed.
------------------------------------------
Invalid object name 'AsapApplicationRole'.
------------------------------------------
========================================
 Stack trace
========================================
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
   at System.Data.SqlClient.SqlDataReader.get_MetaData()
   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
   at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
   at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)
   at Origam.DA.Service.AbstractSqlDataService.ExecuteUpdate(String command, String transactionId) in K:\gitave\origam.origam\backend\Origam.DA.Service\AbstractSqlDataService.cs:line 1461
   at Origam.Workflow.DataServiceAgent.ExecuteUpdate(String command, String transactionId) in K:\gitave\origam.origam\backend\Origam.Workflow\Service Agents\DataServiceAgent.cs:line 465
   at Origam.Workbench.Services.DeploymentService.ExecuteActivity(ServiceCommandUpdateScriptActivity activity) in K:\gitave\origam.origam\backend\Origam.Workbench.Services\DeploymentService.cs:line 260
   at Origam.Workbench.Services.DeploymentService.ExecuteActivity(AbstractUpdateScriptActivity activity) in K:\gitave\origam.origam\backend\Origam.Workbench.Services\DeploymentService.cs:line 235
   at Origam.Workbench.Services.DeploymentService.<ForceUpdateCurrentPackageOnly>b__26_0(DeploymentVersion deplVersion) in K:\gitave\origam.origam\backend\Origam.Workbench.Services\DeploymentService.cs:line 363
   at MoreLinq.MoreEnumerable.ForEach[T](IEnumerable`1 source, Action`1 action) in /_/MoreLinq/ForEach.cs:line 37
   at Origam.Workbench.Services.DeploymentService.ForceUpdateCurrentPackageOnly() in K:\gitave\origam.origam\backend\Origam.Workbench.Services\DeploymentService.cs:line 356
   at Origam.Workbench.Services.DeploymentService.RunWithErrorHandling(Action action) in K:\gitave\origam.origam\backend\Origam.Workbench.Services\DeploymentService.cs:line 106   at Origam.Workbench.Services.DeploymentService.RunWithErrorHandling(Action action) in K:\gitave\origam.origam\backend\Origam.Workbench.Services\DeploymentService.cs:line 112
   at Origam.Workbench.Services.DeploymentService.ForceDeployCurrentPackage() in K:\gitave\origam.origam\backend\Origam.Workbench.Services\DeploymentService.cs:line 95
   at OrigamArchitect.frmMain.RunDeploymentScripts(IDeploymentService deployment) in K:\gitave\origam.origam\backend\OrigamArchitect\ArchitectWorkbench.cs:line 2204
   at OrigamArchitect.frmMain._schema_SchemaLoaded(Object sender, EventArgs e) in K:\gitave\origam.origam\backend\OrigamArchitect\ArchitectWorkbench.cs:line 2141
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at Origam.Workbench.Services.SchemaService.OnSchemaLoaded(EventArgs e) in K:\gitave\origam.origam\backend\Origam.Workbench.Services\SchemaService.cs:line 434
   at Origam.Workbench.Services.SchemaService.LoadSchema(Guid schemaExtensionId, Guid extraExtensionId, Boolean loadDocumentation, Boolean loadDeploymentScripts) in K:\gitave\origam.origam\backend\Origam.Workbench.Services\SchemaService.cs:line 254
   at Origam.Workbench.Services.SchemaService.LoadSchema(Guid schemaExtensionId, Boolean loadDocumentation, Boolean loadDeploymentScripts) in K:\gitave\origam.origam\backend\Origam.Workbench.Services\SchemaService.cs:line 239
   at Origam.ProjectAutomation.FileModelInitBuilder.LoadBaseSchema(Project project) in K:\gitave\origam.origam\backend\Origam.ProjectAutomation\Builders\FileModelInitBuilder.cs:line 57
   at Origam.ProjectAutomation.FileModelInitBuilder.Execute(Project project) in K:\gitave\origam.origam\backend\Origam.ProjectAutomation\Builders\FileModelInitBuilder.cs:line 34
   at Origam.ProjectAutomation.ProjectBuilder.Create(Project project) in K:\gitave\origam.origam\backend\Origam.ProjectAutomation\ProjectBuilder.cs:line 89
   at OrigamArchitect.NewProjectWizard.PageReview_Commit(Object sender, WizardPageConfirmEventArgs e) in K:\gitave\origam.origam\backend\OrigamArchitect\NewProjectWizard.cs:line 130

A deployment report is working correctly if the deplyment detects circular dependencies.

The issue with “Deployment Scripts Pending” occurs also when you click on No. When you create a new project manually and open the Root menu package to run the scripts, clicking on No in the dialog results in no scripts being run, not even when you open other packages, or disconnect and connect again or restart the architect.

@jsusen I would expect that clicking on “No” would result in running the scripts for all packages instead of not running it at all and blocking the dialog offering the execution of any scripts.

Another problem with the New Project Wizard:

  • Open Architect
  • Create a new project using the wizard.
  • Disconnect from the project
  • Delete the project model from the disk

This results in multiple exceptions on the FileEventQueue timer. It looks like the FileEventQueue is not disposed after closing the project and the delete events are registered and processed. The processing fails because the services need for the processing have been unloaded.

A redundant pop up question is shown after clicking Run.

It should be removed and the scripts should just run every time.

I cannot reproduce the issue in master. I will need more details.

The problem was that @zcapkova used the wrong model for testing.

@washi can we somehow delete or disable this repository?
GitHub - origam/origam-demo

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.