Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DateTime error when importing from Outlook

 
Post new topic   Reply to topic    Infralution Support Forum Index -> IPN.NET Support
View previous topic :: View next topic  
Author Message
Dave R



Joined: 05 Apr 2009
Posts: 9

PostPosted: Thu Nov 26, 2009 2:53 pm    Post subject: DateTime error when importing from Outlook Reply with quote

PayPal Sandbox IPN Simulator successfully posts a purchase and I get an e-mail with subject: Payment Notification - John Smith. However, when I import the notification into License Tracker (version 4.5.1.0) it raises the exception:

String was not recognized as a valid DateTime.

The only date I can see in the xml is

<payment_date>06:40:51 Nov. 26, 2009 PST</payment_date>

How can I avoid this exception?

Thanks.
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Thu Nov 26, 2009 9:44 pm    Post subject: Reply with quote

How have you set up your Sales Import definition for your License Tracker distributor? Did you use the PayPalIPN.xml definition from under the ImporterDefinitions folder?
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Dave R



Joined: 05 Apr 2009
Posts: 9

PostPosted: Fri Nov 27, 2009 2:35 am    Post subject: Reply with quote

Thanks. The PayPal Sandbox IPN Simulator created a default date as

<payment_date>06:40:51 Nov. 26, 2009 PST</payment_date>

If I change it in the Simulator text boxes by removing the '.' after Nov it sends

<payment_date>06:40:51 Nov 26, 2009 PST</payment_date>

and the License Tracker can import it just fine.

Thanks for pointing me to exactly the right solution.
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Fri Nov 27, 2009 7:04 am    Post subject: Reply with quote

I think this is probably a bug in the PayPal simulator as the dates for real PayPal posts are not formatted like this. I haven't seen dates from the simulator like this either previously. You can however modify the import definition so that it will cope with this format. Simply change the date format part of the import definition to:

Code:
 <DateFormat>
    <string>HH':'mm':'ss MMM. dd, yyyy PDT</string>
    <string>HH':'mm':'ss MMM. dd, yyyy PST</string>
    <string>HH':'mm':'ss MMM dd, yyyy PDT</string>
    <string>HH':'mm':'ss MMM dd, yyyy PST</string>
  </DateFormat>


Then it will import in either format
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> IPN.NET Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group