The Wiert Corner – irregular stream of stuff

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

  • My work

  • 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 1,842 other followers

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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: