Data trending error executing script

Hi all, first time poster and new to ignition here. I am currently looking into trending data from a flowmeter on ignition. The tag value (in gpm) changes whenever valve is ON/OFF. However, I am getting this alarm whenever I try to trend the data from the past couple of days, weeks, and so on. Any idea on what’s causing this and how to remedy? We already have data from other meters working and trending, this is the only exception for some reason and has been so for a couple of years now. Attached are images. Any input is appreciated.

You'll have to provide your custom function configChart for us to have any idea.

To clarify: This is some custom Python code someone added to your project at some point throwing an exception.