# MQTT Engine - Ignition - Change history configuration

**URL:** https://forum.cirrus-link.com/t/mqtt-engine-ignition-change-history-configuration/724
**Category:** MQTT Modules
**Tags:** mqtt-transmission, mqtt-engine
**Created:** [March 25, 2025, 7:17am UTC](https://forum.cirrus-link.com/t/mqtt-engine-ignition-change-history-configuration/724 "2025-03-25T07:17:29Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![taguililla](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@taguililla](https://forum.cirrus-link.com/u/taguililla)
#### Post date: [March 25, 2025, 7:17am UTC](https://forum.cirrus-link.com/t/mqtt-engine-ignition-change-history-configuration/724/1 "2025-03-25T07:17:29Z")

</div>

Hello, good morning.

I’m trying change the history configuration in an UDT in MQTT Engine, I’m using a script, but I have this error: [Bad\_AccessDenied(“Insufficient Tag Provider Edit Permissions”)]. I don’t understand why, because I can change the configuration manually.

 ![imagen](https://canada1.discourse-cdn.com/flex028/uploads/cirrus_link/original/1X/3a6985439edad16ffde19a2cf8e6ff4343a8b03a.png)

I have the gateway in Comm Read/Write.

if I go to change manually in the UDT I can change the history.

I want do the same but using a script to spend less time. Is it possible?

Can you help me to enabled the access? Is it possible with a script?

Thank you.  
Best regards.

---

<div class="post-metadata">

### Author: ![taguililla](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@taguililla](https://forum.cirrus-link.com/u/taguililla)
#### Post date: [March 25, 2025, 11:05am UTC](https://forum.cirrus-link.com/t/mqtt-engine-ignition-change-history-configuration/724/2 "2025-03-25T11:05:48Z")

</div>

I need do this, but I want use a scripting because I have a lot of tags:

 ![imagen](https://canada1.discourse-cdn.com/flex028/uploads/cirrus_link/original/1X/3b3f931224e46793c7f7b8137ae4cc0cae4eb54b.png)

---

<div class="post-metadata">

### Author: ![segan4](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@segan4](https://forum.cirrus-link.com/u/segan4)
#### Post date: [March 26, 2025, 11:16pm UTC](https://forum.cirrus-link.com/t/mqtt-engine-ignition-change-history-configuration/724/3 "2025-03-26T23:16:31Z")

</div>

It looks like you have an issue with your script. I get the same message when I include the tag name as part of the tagPath (line 16). Can you try it without the tag name included there?

---

<div class="post-metadata">

### Author: ![taguililla](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@taguililla](https://forum.cirrus-link.com/u/taguililla)
#### Post date: [March 27, 2025, 9:08am UTC](https://forum.cirrus-link.com/t/mqtt-engine-ignition-change-history-configuration/724/4 "2025-03-27T09:08:53Z")

</div>

Hello, yes. I did some modifications and now it’s working, but in some case a I has enabled the history in the tag manually.

Thank you. Best regards.

---

<div class="post-metadata">

### Author: ![taguililla](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@taguililla](https://forum.cirrus-link.com/u/taguililla)
#### Post date: [April 1, 2025, 6:46am UTC](https://forum.cirrus-link.com/t/mqtt-engine-ignition-change-history-configuration/724/5 "2025-04-01T06:46:05Z")

</div>

Hello.

The id changes in database if you change the Sample Mode, this is the reason that I didn’t view the data in the table. The data is in the database with other id. It’s working.

Best regards.
