# Warning: CS0162 - line 347 (1953) - Unreachable code detected

**URL:** <https://www.epiusers.help/t/warning-cs0162-line-347-1953-unreachable-code-detected/81046>\
**Category:** Epicor ERP 10\
**Tags:** customization\
**Created:** [July 29, 2021, 12:33am UTC](https://www.epiusers.help/t/warning-cs0162-line-347-1953-unreachable-code-detected/81046 "2021-07-29T00:33:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gino](https://www.epiusers.help/user_avatar/www.epiusers.help/gino/32/37450_2.png) [@Gino](https://www.epiusers.help/u/Gino)\
**Post date:** [July 29, 2021, 12:33am UTC](https://www.epiusers.help/t/warning-cs0162-line-347-1953-unreachable-code-detected/81046/1 "2021-07-29T00:33:04Z")

</div>

I am confused that it has Warning: CS0162 - line 347 (1953) - Unreachable code detected. But there is nothing at line 347. Any idea???

 ![image](https://www.epiusers.help/uploads/default/original/3X/d/4/d47b049ee728a18518aa656e584d77688f0d37bc.png)

---

<div class="post-metadata">

**Author:** ![cfinley](https://www.epiusers.help/letter_avatar_proxy/v4/letter/c/3e96dc/32.png) [@cfinley](https://www.epiusers.help/u/cfinley)\
**Post date:** [July 29, 2021, 1:06am UTC](https://www.epiusers.help/t/warning-cs0162-line-347-1953-unreachable-code-detected/81046/2 "2021-07-29T01:06:39Z")

</div>

When code is unreachable its typically because something is returned above it prematurely. Can you provide a screenshot of the whole method?

---

<div class="post-metadata">

**Author:** ![Gino](https://www.epiusers.help/user_avatar/www.epiusers.help/gino/32/37450_2.png) [@Gino](https://www.epiusers.help/u/Gino)\
**Post date:** [July 29, 2021, 1:44am UTC](https://www.epiusers.help/t/warning-cs0162-line-347-1953-unreachable-code-detected/81046/3 "2021-07-29T01:44:36Z")

</div>

![image](https://www.epiusers.help/uploads/default/original/3X/6/e/6e91f19821031059cd9e8b51cce40ede7edb6789.png)

Thank you
