# Log a datapoint in data

**URL:** <https://forum.inductiveautomation.com/t/log-a-datapoint-in-data/115847>\
**Category:** Ignition\
**Tags:** ignition83, database, scripting\
**Created:** [June 4, 2026, 12:33pm UTC](https://forum.inductiveautomation.com/t/log-a-datapoint-in-data/115847 "2026-06-04T12:33:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![olefredrik.kvalnes](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/olefredrik.kvalnes/32/74830_2.png) [@olefredrik.kvalnes](https://forum.inductiveautomation.com/u/olefredrik.kvalnes)\
**Post date:** [June 4, 2026, 12:33pm UTC](https://forum.inductiveautomation.com/t/log-a-datapoint-in-data/115847/1 "2026-06-04T12:33:26Z")

</div>

Hi.

I was upgrading from ignition 8.1 to 8.3 and read in the Upgrade Manual ([link](https://www.docs.inductiveautomation.com/docs/8.3/getting-started/installing-and-upgrading/ignition-8-upgrade-guide/81to83-upgrade-guide)) that should replace some history functions due to deprecation.

I was using `system.tag.storeTagHistory(histProv, tagProv, paths, values)` to store a single value to history server based on a button script. The tag has "discrete" Deadband Style in Tag Config.

The problem is that when I replaced the function and started to use `system.historian.storeDataPoints(paths, values)` it automatically changed to querymode = 3 (Deadband Style as Analog in the database):

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/0/f0f0a592bff602eeb27813bbfde7ee236c0039a8.jpeg)

Is there any way to continue logging a single point of data as discrete via script?
