Announcement

Collapse
No announcement yet.

GetLog_FullFilter Throws Exception

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    GetLog_FullFilter Throws Exception


    Testing a script using GetLog_FullFilter and am getting an Exception error on a HomeTroller HS4 4.2.8.0

    Images A and B show an example where the Type and Text specifications are empty strings, and the returned count is correctly 1465, i.e. all possible log entries.

    Images C and D show the same example, except the Type string is specified as "XYZ" which does not exist in the time frame specified (-1 Day).

    Instead of returning Logs.Count = 0, the code throws an Exception Error 1.

    The intent here is to periodically update a virtual device with the number of errors encountered in the log file and make that number accessible from an overview graphics page.

    Has anyone else seen this? TIA

    Best Regards
    Attached Files

    #2
    Workaround by retreiving all log entries for the desired time period and performing a record by record search.


    Attached Files

    Comment


      #3
      Additional testing indicates that combinations of parameters that result in 0 records will throw and exception. Simply specifying start and end date/times which result in 0 records will throw the exception.

      The workaround above doesn't eliminate the possibility of an exception, but it does reduce the probability provided that specificed time span will result in at least 1 record being returned.

      Comment

      Working...
      X