The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 4,259 other subscribers

When PV Bean Counter stops publishing Sunny Boy 2500TL results to the net

Posted by jpluimers on 2017/04/17

Every once in a while, PV Bean Counter stops reporting results of by Sunny Boy 2500TL. Usually the problem is with the SUNNY EXPLORER software which has (at least) two irritating bugs:

  1. Easy to spot: it can truncate the SunnyExplorer.sx2 file
  2. Harder to spot: corrupted SunnyExplorer.sx2 file

The latter results in these log messages from PV Bean Counter:

9/2/2016 8:16:34 PM :T12 DeviceMgr_SE - Inf :DeviceMgr_SE: Sunny Explorer - CSV Export Failed
9/2/2016 8:16:34 PM :T12 DeviceMgr_SE - Inf :DeviceMgr_SE: UpdateFromDirectory - SunnyExplorer did not retrieve the expected date: 9/1/2016 12:00:00 AM
9/2/2016 8:16:34 PM :T12 DeviceMgr_SE - Inf :DeviceMgr_SE: UpdateFromDirectory - SunnyExplorer did not retrieve the expected date: 9/2/2016 12:00:00 AM

My usual follow up is to open the .sx2 file in Sunny Explorer. In this case this resulted in a MessageBox containing Cannot find Central Directory. It indicates that Sunny Explorer uses SharpZipLib and the .sx2 file is likely using ZIP compression.

In this case, the SunnyExplorer.sx2 file was not truncated, but filled with zero bytes.

Luckily that file gets backed-up often, so it was easy to restore:

  1. Stop the PV Bean Counter service
  2. Restore the .sx2 file
  3. Start the PV Bean Counter service
  4. Wait a while before reports start trickling in.

–jeroen

via: Hooking up a Sunny Boy 2500TL to the net « The Wiert Corner – irregular stream of stuff

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.