# MQTT Engine - Change history configuration

**URL:** <https://forum.inductiveautomation.com/t/mqtt-engine-change-history-configuration/104086>\
**Category:** Ignition\
**Created:** [March 24, 2025, 12:14pm UTC](https://forum.inductiveautomation.com/t/mqtt-engine-change-history-configuration/104086 "2025-03-24T12:14:22Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![taguililla](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@taguililla](https://forum.inductiveautomation.com/u/taguililla)\
**Post date:** [March 24, 2025, 12:14pm UTC](https://forum.inductiveautomation.com/t/mqtt-engine-change-history-configuration/104086/1 "2025-03-24T12:14:22Z")

</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://us1.discourse-cdn.com/inductiveautomation/original/3X/3/a/3a6985439edad16ffde19a2cf8e6ff4343a8b03a.png)

Can you help me to enabled the access?

Thank you.  
Best regards.

---

<div class="post-metadata">

**Author:** ![DNice](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@DNice](https://forum.inductiveautomation.com/u/DNice)\
**Post date:** [March 24, 2025, 2:35pm UTC](https://forum.inductiveautomation.com/t/mqtt-engine-change-history-configuration/104086/2 "2025-03-24T14:35:01Z")

</div>

Change your designer to read/write tags.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/7/77270478992580dd949b2deffecbb8e18fc3c3ad.png)

---

<div class="post-metadata">

**Author:** ![taguililla](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@taguililla](https://forum.inductiveautomation.com/u/taguililla)\
**Post date:** [March 24, 2025, 2:43pm UTC](https://forum.inductiveautomation.com/t/mqtt-engine-change-history-configuration/104086/3 "2025-03-24T14:43:04Z")

</div>

Hello. I checked this before post and I have this option enabled. Thanks.

---

<div class="post-metadata">

**Author:** ![michael.flagler](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/michael.flagler/32/26272_2.png) [@michael.flagler](https://forum.inductiveautomation.com/u/michael.flagler)\
**Post date:** [March 24, 2025, 3:12pm UTC](https://forum.inductiveautomation.com/t/mqtt-engine-change-history-configuration/104086/4 "2025-03-24T15:12:36Z")

</div>

The MQTT Engine is a read-only tag provider. I typically use reference tags inside a UDT on a local tag provider to reference the tags in MQTT Engine and to set the local history configuration. If you need to change the history configuration on the MQTT Engine UDT, I believe you need to modify the history configuration on the MQTT transmission side, but honestly, you're better off using the reference tags and UDTs on a local tag provider instead which will give you full control.

---

<div class="post-metadata">

**Author:** ![taguililla](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@taguililla](https://forum.inductiveautomation.com/u/taguililla)\
**Post date:** [March 24, 2025, 3:16pm UTC](https://forum.inductiveautomation.com/t/mqtt-engine-change-history-configuration/104086/5 "2025-03-24T15:16:42Z")

</div>

Hello Michael, but if I go to change manually in the UDT I can change the history:

 ![imagen](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/f/af9e6ddc701ae85b56a5d23eb88ecc349478b922.png)

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

Thank you.

---

<div class="post-metadata">

**Author:** ![michael.flagler](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/michael.flagler/32/26272_2.png) [@michael.flagler](https://forum.inductiveautomation.com/u/michael.flagler)\
**Post date:** [March 24, 2025, 6:29pm UTC](https://forum.inductiveautomation.com/t/mqtt-engine-change-history-configuration/104086/6 "2025-03-24T18:29:20Z")

</div>

I would reach out to CirrusLink support in this case. I was under the assumption those UDTs were read-only, and I suspect that if you do modify them, that you could run the risk that an MQTT Transmission publish/birth message could overwrite those back to defaults.

---

<div class="post-metadata">

**Author:** ![taguililla](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@taguililla](https://forum.inductiveautomation.com/u/taguililla)\
**Post date:** [March 25, 2025, 9:42am UTC](https://forum.inductiveautomation.com/t/mqtt-engine-change-history-configuration/104086/7 "2025-03-25T09:42:28Z")

</div>

Hello.

I need this for Store and Forward between Ignition Edge (with MQTT Transmitter) and Main Ignition (with MQTT Engine). For Store and Forward, is it necessary history in MQTT Engine for a good functionality or is it possible other way?

Thank you.  
Best regards.

---

<div class="post-metadata">

**Author:** ![taguililla](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@taguililla](https://forum.inductiveautomation.com/u/taguililla)\
**Post date:** [March 25, 2025, 11:06am UTC](https://forum.inductiveautomation.com/t/mqtt-engine-change-history-configuration/104086/8 "2025-03-25T11:06:44Z")

</div>

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

 ![imagen](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/b/3b3f931224e46793c7f7b8137ae4cc0cae4eb54b.png)

---

<div class="post-metadata">

**Author:** ![taguililla](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@taguililla](https://forum.inductiveautomation.com/u/taguililla)\
**Post date:** [March 27, 2025, 9:09am UTC](https://forum.inductiveautomation.com/t/mqtt-engine-change-history-configuration/104086/9 "2025-03-27T09:09:45Z")

</div>

Hello.

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

Thank you.  
Best regards.
