Can't process: The added or subtracted value results in an un-representable DateTime. Parameter name: t

Project:Awesync
Version:1.0.0.9
Component:TimeZone
Category:bug report
Priority:critical
Assigned:Unassigned
Status:fixed
Description

AweSync seems to run fine, but when I look at my calendars, nothing has been updated.
 
2009-10-28 09:20:56,564 [5] ERROR AweSync.MainForm - Can't process: The added or subtracted value results in an un-representable DateTime.
Parameter name: t
2009-10-28 09:20:56,564 [5] WARN  AweSync.MainForm - Can't process
System.ArgumentOutOfRangeException: The added or subtracted value results in an un-representable DateTime.
Parameter name: t
   at System.DateTime.op_Addition(DateTime d, TimeSpan t)
   at PublicDomain.TzTimeZone.GetUtcOffset(DateTime time) in C:\Appl\DotNet\LotusGoo\AweSyncLib\PublicDomain\TzTimeZone.cs:line 527
   at PublicDomain.TzTimeZone.GetLocalTimeFromUniversalTime(DateTime time) in C:\Appl\DotNet\LotusGoo\AweSyncLib\PublicDomain\TzTimeZone.cs:line 733
   at PublicDomain.TzTimeZone.ToLocalTime(DateTime time) in C:\Appl\DotNet\LotusGoo\AweSyncLib\PublicDomain\TzTimeZone.cs:line 695
   at PublicDomain.TzDateTime.GetDateLocal(TzDateTime dt, TzTimeZone tz) in C:\Appl\DotNet\LotusGoo\AweSyncLib\PublicDomain\TzDateTime.cs:line 794
   at AweSyncLib.LotusDocCreator.Visit(BaseDocument acceptor) in C:\Appl\DotNet\LotusGoo\AweSyncLib\Lotus\LotusDocCreator.cs:line 34
   at AweSyncLib.GoogleDocument.Accept(BaseVisitor visitor) in C:\Appl\DotNet\LotusGoo\AweSyncLib\Google\GoogleDocument\GoogleDocument.cs:line 84
   at AweSyncLib.LotusAddRemoveManager.Add(BaseDocument doc, String calId) in C:\Appl\DotNet\LotusGoo\AweSyncLib\Lotus\LotusAddRemoveManager.cs:line 34
   at AweSyncLib.AweSyncMain.SynchronizeDocs(NotesDatabase lotusDb, UpdateStatusFunc updateFunc) in C:\Appl\DotNet\LotusGoo\AweSyncLib\AweSync.cs:line 1234
   at AweSyncLib.AweSyncMain.Process(UpdateStatusFunc updateFunc, Boolean isWholeSync) in C:\Appl\DotNet\LotusGoo\AweSyncLib\AweSync.cs:line 285
   at AweSync.MainForm.ProcessSyncThreadFunc() in C:\Appl\DotNet\LotusGoo\AweSync\MainForm.cs:line 231
 
 
Also, every event in LN that is attempted to be synced, comes across with a message like this:
2009-10-28 09:20:26,970 [5] WARN  AweSyncLib.GoogleAddRemoveManager - Event is not synced since it contains an exception: Web Focus Farewell Weekly Status
 
Log file attached.


#1

log file
 
Also, I am running Lotus Notes 7.0.2.

#2

Component:Code» Miscellaneous
Status:active» patch (code needs review)

Hi, Brian!

2009-10-28 09:20:56,564 [5] ERROR AweSync.MainForm - Can't process: The added or subtracted value results in an un-representable DateTime.
Parameter name: t

will have developers look there and let you know.
Also, every event in LN that is attempted to be synced, comes across with a message like this:
2009-10-28 09:20:26,970 [5] WARN  AweSyncLib.GoogleAddRemoveManager - Event is not synced since it contains an exception: Web Focus Farewell Weekly Status
Per log only some of your LN events caused the warning.
The fact is current version of Awesync does not sync events repeating events with exceptions (only some instances are changed instead of all of them). That's what it reads.

#3

Component:Miscellaneous» TimeZone
Status:patch (code needs review)» patch (code needs work)

Brian, hi again!
2009-10-28 09:20:56,564 [5] WARN  AweSync.MainForm - Can't process
System.ArgumentOutOfRangeException: The added or subtracted value results in an un-representable DateTime.
Parameter name: t

The issue is related with Never-Ended repeating events.
Going to be fixed.

#4

The scope of the issue is large then. 
I have 8 calendars in my List of Google Calendars however I only have a 'Test Calendar' selected.  On 'Test Calendar' I only have 1 defined event, non-repeating.  The error occurs.
Within the other 7 calendars, that are not selected, there are repeating events.
Awesync must be retrieving and doing some processing on all events & all calendars, independent of what is selected with a check mark or desired date range.  If true, whats the scope of processing that AweSync is doing?  It would be disappointing to mess up other people's calendars with a tool I intended to scope only my events.

#5

Status:patch (code needs work)» fixed

 fixed in 1.0.0-8

#6

Version:1.0.0.7» 1.0.0.9
Status:fixed» active

 09:36:19 - Process started
09:36:19 - Sync mode: One Way (LN to Google, Always Overwrite)
09:36:19 - OS: Microsoft Windows NT 5.1.2600 Service Pack 2
09:36:19 - Connecting Lotus Notes...
09:36:19 - Loading index...
09:36:19 - Can't process: There is an error in XML document (11, 7).
 Inner exception: The added or subtracted value results in an un-representable DateTime.
Parameter name: t
09:36:19 - Collecting garbage...
09:36:19 - Done
 
 
 
I tried to sync just one instance, filtering by range of days, but nothing worked out. My calendar just won't sync. I think It has something to do with entries created in different time zones, or repeating events that have exeptions.
 
Please let me know if you have this fixed: tvri@hotmail.com
Thanks in advance.

#7

Status:active» fixed

User login

Testimonials

Let me congratulate you on a great program you have here for a good bargainable price. I use it extensively and am very satisfied. I am using Awesync to sync Lotus Notes to Gmail and from GMail to Windows Mobile. This works seamlessly without much intervention
— Vijaya Vasudevan

Follow AweSync on Twitter
AweSync has been tested to meet all of the technical requirements to be Compatible with Windows® 7