Tag Historian missed data filling

We need help in solving the following problem.

There is a kep server that polls data from the PLC using the DNP3 protocol and Igntition 7.9.12 .
The main requirement from which dnp3 was used is the restoration of the trend after a break and the restoration of communication.
I see that Kepware gives the data with the timestamp that I need (tag.lastchange), but at the same time, I cannot write this data to the database using standard Ignition tools.
In one case, the data is written to the end of the trend with the server time stamp; in the other case, this data disappears (does not insert into the database).