# Problem with robotstudio and alias variables

**URL:** <https://tech-community.robotics.abb.com/t/problem-with-robotstudio-and-alias-variables/9200>\
**Category:** UpFeed\
**Created:** [November 13, 2019, 1:05pm UTC](https://tech-community.robotics.abb.com/t/problem-with-robotstudio-and-alias-variables/9200 "2019-11-13T13:05:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AWAS](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@AWAS](https://tech-community.robotics.abb.com/u/AWAS)\
**Post date:** [November 13, 2019, 1:05pm UTC](https://tech-community.robotics.abb.com/t/problem-with-robotstudio-and-alias-variables/9200/1 "2019-11-13T13:05:47Z")

</div>

I always get an error when trying to sync a routine from rapid into the station if the routine is using a alias variable.

using german Version of Studio btw.

```auto
RobotStudio .NET exception: Another RAPID symbol with the name 'P1' already exists
============================================
Base exception: ArgumentException
Another RAPID symbol with the name 'P1' already exists
   bei RobotStudio.API.Internal.TaskHelper.CheckRapidNameInScope(RsTask task, String moduleName, Boolean local, String declarationName)
   bei ABB.Robotics.RobotStudio.Stations.RsDataDeclarationCollection.Add(RsDataDeclaration dataDeclaration)
   bei RobotStudio.Services.RapidSync.SerializerRS.RasRsDataSeries.InsertSentenceAsync(RasSentence newSentence)
   bei RobotStudio.Services.RapidSync.RasEngine.<InsertDataSentencesAsync>d__13.MoveNext()
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
   bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   bei RobotStudio.Services.RapidSync.RasEngine.<SyncDataAsync>d__10.MoveNext()
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
   bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   bei RobotStudio.Services.RapidSync.RasEngine.<SyncRoutineAsync>d__6.MoveNext()
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
   bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   bei RobotStudio.Services.RapidSync.RapidSyncOperation.<SyncPathProcedureAsync>d__8.MoveNext()
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
   bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   bei ABBInternal.Controller.SynchHelper.<DoSynch>d__21.MoveNext()
ParamName:

```

This error seems to occur in 2 cases

1. If I change the variable from a “normal” one into a alias variable and then try to sync
2. If I make some changes to the routine which uses the alias variable  
The only current fix i found is completly deleting the robot and replacing it with a new one.

Is there a better way to fix it?

It might be great if you could reset the station robot in future releases (this might make it easier to fix this and similar bugs)
