DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

ValueError: microsecond must be in 0..999999

Solved!
Go to solution
When I initially used the evaluation DIAdem, I set up some scripts to run reports.  No Errors.  With the newly activated DIAdem, same scripts, and same data - I now get this error:
 
     An error has occurred while executing a Python script:
     Traceback (most recent call last):
       File "C:\Users\name\drive\Desktop\The J Drive\Support - Scripts\Pulse Tester - Single Run.PY", line 59, in <module>
       File "C:\Program Files\National Instruments\Shared\Skyline\Python\3.8\lib\site-packages\win32com\client\dynamic.py", line 181, in __call__
         return self._get_good_object_(self._oleobj_.Invoke(*allArgs),self._olerepr_.defaultDispatchName,None)
     ValueError: microsecond must be in 0..999999
 
This appears when trying to work with values of a date/time type of channel.  Both getvaluesblock() and setvalues() error like this.
Sample values:
From VIEW: 06/09/2025 12:00:27.9288024902
Printed to log: 2025-06-09 12:00:27.929000+00:00
 
Any idea what would be the difference?  How to deal?
0 Kudos
Message 1 of 2
(87 Views)
Solution
Accepted by topic author fsklyr

fsklyr_0-1754503250074.png

This solves it if anyone gets this error.

 

0 Kudos
Message 2 of 2
(56 Views)