Error during automated deployment: "Key not found"

mhmacleodmhmacleod Posts: 5 Bronze 1
edited April 23, 2024 5:44AM in SQL Change Automation
I'm getting this mysterious error when deploying an automated deployment from a Build Artifact, using version 4.*, with no real way to debug this except continually tweaking the few parameters i have and re-running the deployment with frustratingly similar results.

Tried googling but most of the results aren't helpful. Can anyone help me?

2024-04-23T05:35:48.6050161Z ##[warning]System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
   at System.ThrowHelper.ThrowKeyNotFoundException()
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
   at RedGate.Versioning.Automation.Compare.Commands.SocReleaseArtifactGenerator.GetNamesAndContent(ScriptsFolder scriptsFolder)
   at RedGate.Versioning.Automation.Compare.Commands.SocReleaseArtifactGenerator.GenerateStaticDataInfo(ScriptsFolder sourceScriptsFolder, ScriptsFolder targetScriptsFolder, IEnumerable`1 modifiedStaticDataTableNames)
   at RedGate.Versioning.Automation.Compare.Commands.SocReleaseArtifactGenerator.GenerateReleaseArtifact(IList`1 targetSchemaSources, ISchemaSource sourceSchemaSource, CompareOptionArguments compareOptionArguments, TransactionIsolationLevel transactionIsolationLevel, Boolean ignoreStaticData, Boolean includeIdenticalObjectsInReport, Boolean ignoreAdditional, Action checkForAbort, WarningSeverity abortOnWarningLevel, String codeAnalysisSettingsFullPath)
   at RedGate.Versioning.Automation.Compare.Commands.ReleaseArtifactGenerator.<Generate>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at RedGate.Versioning.Automation.PowerShell.Commands.NewDatabaseReleaseArtifactCommandImpl.Begin()
   at RedGate.Versioning.Automation.PowerShell.DlmAutomationCommandImpl`1.BeginProcessing()
   at RedGate.PowerShell.CommandBase`2.DelegateTo(Action doImplementation)
2024-04-23T05:35:48.7084901Z ##[error]The given key was not present in the dictionary.

Answers

Sign In or Register to comment.