MQTT Engine - Ignition - Change history configuration

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.

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.

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

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?

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.

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.