Ask A Question

View Question

Hello
when you create a map in application settings in bulk mode, and if there are syntax error, you have an error message.

To solve the problem, you have to remove the variable thru the Administation page, and create it correctly.

If the map is create as pipeline variable, there is no error until you start a step then you have an error.

Test case :

Bulk insert in Settings for an Application

{
  "TESTCASE": {
    "value": "%(Key1:Value1,Key2:`$ServerName,Key3`:OupsMistake)",
    "sensitive": true
  },

Results

System.FormatException: Invalid key name: Key3\` 
at Inedo.ExecutionEngine.Variables.TextProcessor.ReadMap() 
at Inedo.ExecutionEngine.Variables.TextProcessor.ReadVariableOrFunction(Boolean onlyScalar) 
at Inedo.ExecutionEngine.Variables.TextProcessor.ReadNext() 
at Inedo.ExecutionEngine.Variables.ProcessedString.Load(TextReader reader) 
at Inedo.BuildMaster.Variables.BuildMasterVariable.GetProcessedValue(String unprocessedValue, RuntimeValueType type) 
at Inedo.BuildMaster.Variables.BuildMasterVariable..ctor(Variables variable) 
at Inedo.BuildMaster.Variables.BuildMasterVariable.<GetVariablesAccessibleFromScope>d__16.MoveNext() 
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext() 
at Inedo.Web.Controls.Element.<GetControlsFromArgument>d__41.MoveNext() 
at Inedo.Web.Controls.Element..ctor(String elementType, Object[] content) 
at Inedo.BuildMaster.Web.WebApplication.Controls.VariableSummary..ctor(IGenericBuildMasterContext context) 
at Inedo.BuildMaster.Web.WebApplication.Pages.Applications.EditApplicationPage.CreateChildControls() 
at Inedo.BuildMaster.Web.WebApplication.Pages.BuildMasterSimplePage.<InitializeAsync>d__8.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 Inedo.Web.PageFree.SimplePageBase.<ProcessRequestAsync>d__46.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 System.Web.TaskAsyncHelper.EndTask(IAsyncResult ar) 
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 
at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) 
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Product: BuildMaster  
Version: 6.1.0
Answer Question