# Handling motion error 50050

**URL:** <https://tech-community.robotics.abb.com/t/handling-motion-error-50050/11814>\
**Category:** RAPID Programming\
**Tags:** motion-error-detection, error, motion, error-handling\
**Created:** [March 5, 2025, 8:05am UTC](https://tech-community.robotics.abb.com/t/handling-motion-error-50050/11814 "2025-03-05T08:05:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dragolollo](https://avatars.discourse-cdn.com/v4/letter/d/f9ae1b/32.png) [@dragolollo](https://tech-community.robotics.abb.com/u/dragolollo)\
**Post date:** [March 5, 2025, 8:05am UTC](https://tech-community.robotics.abb.com/t/handling-motion-error-50050/11814/1 "2025-03-05T08:05:25Z")

</div>

Hello,

I was wondering if it is possible to handle someway the error 50050 " Position outside reach" via Error handler or in some other way.

I would like that if this error happens, robot will continue the execution from the next instruction.

Thank you!

---

<div class="post-metadata">

**Author:** ![matti](https://avatars.discourse-cdn.com/v4/letter/m/e480ec/32.png) [@matti](https://tech-community.robotics.abb.com/u/matti)\
**Post date:** [March 13, 2025, 10:19am UTC](https://tech-community.robotics.abb.com/t/handling-motion-error-50050/11814/2 "2025-03-13T10:19:27Z")

</div>

Hallo, you may try to calculate a jointtarget from your intended robtarget. The function CalcJointT can generate an recoverable error, when the robotarget is out of reach. See description for the function.

---

<div class="post-metadata">

**Author:** ![dragolollo](https://avatars.discourse-cdn.com/v4/letter/d/f9ae1b/32.png) [@dragolollo](https://tech-community.robotics.abb.com/u/dragolollo)\
**Post date:** [March 31, 2025, 2:22pm UTC](https://tech-community.robotics.abb.com/t/handling-motion-error-50050/11814/3 "2025-03-31T14:22:03Z")

</div>

Thank you, I’ll try that!
