Variable name already exists when syncing to agent

I got the following error when syncinc a build to a new agent (from the agent debug log):

[AgentBuildHelper] InitialiseWorkspaceOnAgent >> Exception: An error occurred while syncing files from the server to the agent. Details: Exception: ValidationException

Message: Variable name already exists.

Stack Trace: at Continua.Shared.Variables.VariableNamespace.Add(String name, String desc, String value, ElementType type, Boolean maskValue, Boolean availableAsEnv, Boolean constant, Boolean expandExpressions)
at Continua.Shared.Variables.VariableUtilities.CreateEnvironmentNamespace()
at Continua.Shared.Variables.VariableUtilities.SerialiseEnvironmentNamespace(String workspacePath)
at Continua.Modules.Builds.Agent.AgentBuildHelper.CreateVariableNamespaces()
at Continua.Modules.Builds.Agent.AgentBuildHelper.InitialiseWorkspaceOnAgent(IAgentCallbackProxy proxy, TransportContextDTO source, Guid callId, Boolean requeued)

Any idea what could be causing this?

Hi Anders,

It appears that you may have two environment variables on the agent which transpose to the same name after non-alphanumeric characters are replaced by an underscore. We will release a new version with a fix in the next day or two.

I found the variables and could start a build on the new agent. Thanks for pointing in the right direction!