Developer forum

Forum » Integration » Missing session in LiveIntegration when running as scheduled task

Missing session in LiveIntegration when running as scheduled task

Vincent Gercke
Reply

We are having issues with resending failed orders with a scheduled task. The session in the OrderHandler is null:

It has happended after we upgraded from 9.10.xx to 9.12.7. Any help? Thanks!


Replies

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Vincent,
maybe it is a timeout issue, so the session can be expired until the task is not yet finished.
How is the task started? Is it run manually or from the scheduler? Or it doesn't matter?
BR, Dmitrij
 

 
Vincent Gercke
Reply

Hi Dmitriy, 
Thank you for your response. It happens when I run it manually and when it runs automatically.

 
Nicolai Pedersen
Reply

Schedules runs out of session I guess. And the code you show does not exist in liveintegration v2. Is it standard v1? If you have the source code, make a null check for Context.Current.Session 

 
Vincent Gercke
Reply

Thanks, but when I look in the standard LiveIntegration project I see a reference to the session?

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Vincent,
That is a bug and will be fixed in #6512 in the next Live Integration version.
Thx for finding and sharing the information.
BR, Dmitrij

 
Vincent Gercke
Reply

Thanks! Do you a timeframe for this fix, I can relay to the customer?

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

yes, it is already in QA, so you should be able to download it from nuget tomorrow/day after tomorrow

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply
This post has been marked as an answer

Hi Vincent,
it is now fixed in the last https://www.nuget.org/packages/Dynamicweb.Ecommerce.DynamicwebLiveIntegration/ 6.2.1 version.
BR, Dmitrij

Votes for this answer: 1
 
Vincent Gercke
Reply

Thanks!

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi Vincent 

The bugfix #6512 is also part of the 9.13.1 release
https://doc.dynamicweb.com/downloads/dynamicweb-9

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 

You must be logged in to post in the forum