# Problem with robotstudio and alias variables

**URL:** <https://tech-community.robotics.abb.com/t/problem-with-robotstudio-and-alias-variables/8172>\
**Category:** UpFeed\
**Created:** [April 4, 2018, 1:52pm UTC](https://tech-community.robotics.abb.com/t/problem-with-robotstudio-and-alias-variables/8172 "2018-04-04T13:52:27Z")\
**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:** [April 4, 2018, 1:52pm UTC](https://tech-community.robotics.abb.com/t/problem-with-robotstudio-and-alias-variables/8172/1 "2018-04-04T13:52:27Z")

</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 pf Studio btw.

# 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.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.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.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.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.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)
