Expired Carts not Expiring



I have a lot of carts with a null for meta.modified.  This means the Episerver expiry script will not expire those baskets as it says 

Meta.Modified <  GETDATE() 

am I missing something or is there a bug in the expiry script?  Here is the sql I ran to see the missed baskets

select count(*) from ordergroup left outer join OrderGroup_ShoppingCart on ([OrderGroup_ShoppingCart].ObjectId=OrderGroup.OrderGroupId) where modified is null

Jul 11, 2019 13:10

That is strange, as Modified is always updated to the DateTime.UtcNow when you save the cart via AcceptChanges(). How you ended there, I am not quite sure

Jul 11, 2019 16:38

Thanks, so I should be able to remove them?

Edited, Jul 11, 2019 17:17

Technically you can try to update modified with created value (which is mandatory) then you can remove them by the scheduled job

Jul 11, 2019 18:56

Thanks I will remove them then.

Jul 26, 2019 9:51
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.