# RS loses write access to VC (error 20051)

**URL:** <https://tech-community.robotics.abb.com/t/rs-loses-write-access-to-vc-error-20051/8613>\
**Category:** UpFeed\
**Tags:** vc\
**Created:** [December 18, 2018, 12:54pm UTC](https://tech-community.robotics.abb.com/t/rs-loses-write-access-to-vc-error-20051/8613 "2018-12-18T12:54:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Risto\_Virtanen](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@Risto\_Virtanen](https://tech-community.robotics.abb.com/u/Risto_Virtanen)\
**Post date:** [December 18, 2018, 12:54pm UTC](https://tech-community.robotics.abb.com/t/rs-loses-write-access-to-vc-error-20051/8613/1 "2018-12-18T12:54:03Z")

</div>

Hello,

I have a RS station which I have been using for a long time without any issues. The recent problem may have appeared after upgrading to RS 6.08. Right after opening the station the VC works normally. After running the session for some time the problem appears. It’s related to actions which require write access to VC. For example ‘Apply’, ‘Check Program’ and ‘Set PP to Routine’ fail and raise the error described below:

**20051** : Not allowed command

**Description**  
The command is only allowed when the client is in control of the resource (program/motion).

**Consequences**  
The system remains in the same status, and the requested action will not be performed.

**Actions**

1. Check if the client is in control, by checking “Write Access” in RobotStudio.

2. Check if the client who ought to be in control really is.

This is confusing since RS is supposed to manage write access automatically. Therefore Request and Release Write Access buttons are grayed out. Controller status is 1/1 (green). I have not found any way to recover from this other than closing the station and RS. Extremely annoying since the recent program changes are lost.

Any thoughts?

Best regards,

Risto

---

<div class="post-metadata">

**Author:** ![Risto\_Virtanen](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@Risto\_Virtanen](https://tech-community.robotics.abb.com/u/Risto_Virtanen)\
**Post date:** [December 18, 2018, 12:58pm UTC](https://tech-community.robotics.abb.com/t/rs-loses-write-access-to-vc-error-20051/8613/2 "2018-12-18T12:58:34Z")

</div>

VC is running RW 5.15.13

Risto

---

<div class="post-metadata">

**Author:** ![DenisFR](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@DenisFR](https://tech-community.robotics.abb.com/u/DenisFR)\
**Post date:** [December 18, 2018, 4:15pm UTC](https://tech-community.robotics.abb.com/t/rs-loses-write-access-to-vc-error-20051/8613/3 "2018-12-18T16:15:08Z")

</div>

Hello,  
Just got the same just after saving station.  
RW 5.61.8001.08

Have to restart RS completely.  
Restarting VC (only able by FlexPendant) doesn’t fix it.

---

<div class="post-metadata">

**Author:** ![Risto\_Virtanen](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@Risto\_Virtanen](https://tech-community.robotics.abb.com/u/Risto_Virtanen)\
**Post date:** [December 21, 2018, 11:04am UTC](https://tech-community.robotics.abb.com/t/rs-loses-write-access-to-vc-error-20051/8613/4 "2018-12-21T11:04:06Z")

</div>

It seems like this behaviour is connected to Virtual FP. I stopped using it and used Operator Window instead. No 20051 errors since then.

---

<div class="post-metadata">

**Author:** ![Alexandre](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@Alexandre](https://tech-community.robotics.abb.com/u/Alexandre)\
**Post date:** [November 9, 2022, 9:40am UTC](https://tech-community.robotics.abb.com/t/rs-loses-write-access-to-vc-error-20051/8613/5 "2022-11-09T09:40:04Z")

</div>

I got the same problem on 2022.2.1 version of RS. I couldn’t modify my value in the RAPID code.

I don’t know if it is the correct behavior (I am still new) when we are on auto mode but I unblocked it when I passed on manual mode.
