4Site
Support Request System
View Patch #50.503.010
Description
Patch ID:
Date Implemented:
Patch Title:
Patch Type:
Request IDs:
Bug
Enhancement
Other
02982 -
Infinite loop importing meter readings.
Symptoms:
When using the meter reading import, if there is an issue with changing the file name from a RDN to and RDA or RDE, 4Site will go into a loop and keep trying to import the file. The import of the data is successful but the import is repeated over and over again.
Solution:
If .rdn file failed to be renamed, it remained it the list of .rdn files returned by Windows and would be processed again and again. This failure is most likely due to a file access permission error since the ServerPath may be read-only. To fix the problem, the code has been changed to look for import files in the SharedPath, which is expected to be writable. In addition, each file output operation is checked for an error and if one occurs, a message is logged and the file is marked as "bad". A "bad" file will then be skipped on further processing *on this run* even though it is still an .rdn file. Note: the "bad" files are only skipped on the current run. On a subsequent run, if the "bad" .rdn is still there, it will be processed again...and found to be "bad" again, and so on. So, if the readings in the file are applied but we fail to mark them as applied or rename the file, they will be processed again if the .rdn is still there on the next run BUT the same file will not be processed again on this run.
Browse Patches
Find a Patch
Return to Request System Menu