# FILE System Object Error

**URL:** <https://www.dynamicsuser.net/t/file-system-object-error/56024>\
**Category:** Technical Forum\
**Created:** [November 26, 2014, 8:57am UTC](https://www.dynamicsuser.net/t/file-system-object-error/56024 "2014-11-26T08:57:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sure507](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@sure507](https://www.dynamicsuser.net/u/sure507)\
**Post date:** [November 26, 2014, 8:57am UTC](https://www.dynamicsuser.net/t/file-system-object-error/56024/1 "2014-11-26T08:57:12Z")

</div>

Hi,

I am trying to delete the folder from my drive which is containing the PDF file and the PDF file is opened .

Now i want to show the message That A file is opened . But i should not get error message .

Can any one help me regarding this …

Thanks in advance…

---

<div class="post-metadata">

**Author:** ![mohana\_cse06](https://avatars.discourse-cdn.com/v4/letter/m/e480ec/32.png) [@mohana\_cse06](https://www.dynamicsuser.net/u/mohana_cse06)\
**Post date:** [November 26, 2014, 9:04am UTC](https://www.dynamicsuser.net/t/file-system-object-error/56024/2 "2014-11-26T09:04:30Z")

</div>

Try this method

[http://gaspodethewonderdog.blogspot.nl/2008/04/try-catch-in-dynamics-nav.html](http://gaspodethewonderdog.blogspot.nl/2008/04/try-catch-in-dynamics-nav.html)

---

<div class="post-metadata">

**Author:** ![sure507](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@sure507](https://www.dynamicsuser.net/u/sure507)\
**Post date:** [November 26, 2014, 9:26am UTC](https://www.dynamicsuser.net/t/file-system-object-error/56024/3 "2014-11-26T09:26:03Z")

</div>

Thanks Mohana …

This is really helpful to me…
