# OS reports: Access Denied

**URL:** <https://forum.kx.com/t/os-reports-access-denied/11656>\
**Category:** Community Support\
**Tags:** kdb-and-q\
**Created:** [December 13, 2017, 8:47am UTC](https://forum.kx.com/t/os-reports-access-denied/11656 "2017-12-13T08:47:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![skuvvv1](https://avatars.discourse-cdn.com/v4/letter/s/7ba0ec/32.png) [@skuvvv1](https://forum.kx.com/u/skuvvv1)\
**Post date:** [December 13, 2017, 8:47am UTC](https://forum.kx.com/t/os-reports-access-denied/11656/1 "2017-12-13T08:47:00Z")

</div>

Hello.  
I have scripts which sorting tables and make necessary preparations(checks/unzip/zip/copy to tmp folder) and it works fine.

Unfortunately when script process the folder(eg specific day of table) with empty data I get error: “OS reports: Access Denied”

Error occurs randomly in different lines of code(when it works with files).

Perhaps that is because q is too fast for working with very small files and I should add the small pause between operations…

---

<div class="post-metadata">

**Author:** ![skuvvv1](https://avatars.discourse-cdn.com/v4/letter/s/7ba0ec/32.png) [@skuvvv1](https://forum.kx.com/u/skuvvv1)\
**Post date:** [December 14, 2017, 12:38pm UTC](https://forum.kx.com/t/os-reports-access-denied/11656/2 "2017-12-14T12:38:00Z")

</div>

Finally I decided to add a small delays using simple function with while.

Delay duration is approximately 10ms.

Problem disappeared.
