# Troubleshooting Tag Provider Errors

**URL:** <https://forum.inductiveautomation.com/t/troubleshooting-tag-provider-errors/17469>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [March 22, 2018, 11:00pm UTC](https://forum.inductiveautomation.com/t/troubleshooting-tag-provider-errors/17469 "2018-03-22T23:00:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bfuson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bfuson/32/4597_2.png) [@bfuson](https://forum.inductiveautomation.com/u/bfuson)\
**Post date:** [March 22, 2018, 11:00pm UTC](https://forum.inductiveautomation.com/t/troubleshooting-tag-provider-errors/17469/1 "2018-03-22T23:00:32Z")

</div>

I have a gateway tag provider that is consistently throwing write errors of the form:

```auto
[[default]Line Weld/SomeLine/_PLC Tags/STATUS] Error writing to OPC address 
[[kepware2]ns=2;s=SomeLine.SomeLine.STATUS]. Result code: [Bad_UserAccessDenied] User does not have permission 
to perform the requested operation.

```

I cannot locate where this attempted tag write is happening. Is there any way for me to track down the exact project/window/script that is throwing this error? Thanks!

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 23, 2018, 2:29am UTC](https://forum.inductiveautomation.com/t/troubleshooting-tag-provider-errors/17469/2 "2018-03-23T02:29:57Z")

</div>

Turn on the audit system.

---

<div class="post-metadata">

**Author:** ![bfuson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bfuson/32/4597_2.png) [@bfuson](https://forum.inductiveautomation.com/u/bfuson)\
**Post date:** [March 23, 2018, 3:13pm UTC](https://forum.inductiveautomation.com/t/troubleshooting-tag-provider-errors/17469/3 "2018-03-23T15:13:03Z")

</div>

Thanks, I just created a default auditor and configured one of the projects to use it!

However, I can’t seem to access the log. When I try navigating to the ‘view logs’ page I get an Internal Error.  
When I try querying the AUDIT\_EVENTS table, the DB just spins its wheels.

Have you ever encountered this?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 23, 2018, 4:16pm UTC](https://forum.inductiveautomation.com/t/troubleshooting-tag-provider-errors/17469/4 "2018-03-23T16:16:08Z")

</div>

> [@bfuson](#):
>
> I get an Internal Error

Ew. Can you post the exception details?

---

<div class="post-metadata">

**Author:** ![bfuson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bfuson/32/4597_2.png) [@bfuson](https://forum.inductiveautomation.com/u/bfuson)\
**Post date:** [March 23, 2018, 5:17pm UTC](https://forum.inductiveautomation.com/t/troubleshooting-tag-provider-errors/17469/5 "2018-03-23T17:17:47Z")

</div>

The exception occurs when I go to Auditing-\>more-\>view log in the Gateway. The page hangs for a bit and then I’m greeted by a white screen that simply reads “Internal Error”. However, now I can’t reproduce that exact error screen, the page just keeps hanging.

I can see that the event log query was executed against the database, however it never returns a result after 3+ minutes:

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/b/be06a1f1b80e4da5f9ef40a539bf7e08c8cf4586.png)

It seems something has locked the table and never released it…
