Skip to main content

GetFeed on ExceptionEvents vs deleted rules in MyGeotab SDK

LPPapillon-1145
Original Poster

We're using GetFeed to sync ExceptionEvents to a data warehouse. We use includeDismissedEvents and includeInvalidated to make sure we properly pick up on Exceptions that are no longer valid and we can mark them as such to ensure integrity between MyGeotab and our warehouse. We just noticed a case where a new rule was created and the old rule was deleted, and all the previous exceptions from the deleted rule are still there with ExceptionEventStateValidId. Is it expected that with these flags both set to true, Geotab does not send us deleted exceptions that stem from a rule deletion? How can we keep sync for such cases?

Join the conversation

You need to be logged in to reply to this post and participate in the Geotab Community discussions.

3 Replies

EishiFUN
Geotabber

Hey @LPPapillon-1145​ ,

 

Great to see you here in our community. I just wanted to let you know I have brought this up with our SDK team. I will let you know what I hear from them as soon as I do or have one of them jump in here.

 

Have a good one!

Eishi FUN

EishiFUN
Geotabber

I received a response from our team on this. I apologize for the delay in getting back to you. Let me know if you are still unsure or have any outstanding questions. I will bring it back to the team to make sure there is a clear understanding.

 

"If I understand their question correctly, I would say it is expected behavior. ExceptionEvents are generated based on defined rules at the time they occur. When a new rule is created and an old rule is deleted, the historical data related to the exceptions triggered by the old rule is not updated or altered backwards.

 

The existing ExceptionEvents from the old GetFeed calls won't be updated or altered. But with a new GetFeed call, the ExceptionEventState of ExceptionEvent will be changed to Invalid if the triggering conditions are no longer exist or Dismissed if the event has been manually dismissed by a user."

LPPapillon-1145
Original Poster

The expectation is that GetFeed is a mechanism to allow us to sync Exceptions, and this is a case where it doesn't allow me to do so. I was really hoping that the recent changes to State tracking allowed me to fix that problem, but it's solved only 2 of the problematic cases:

  1. Dismissed exception in MyG --> OK, can now be caught and removed
  2. Exception invalidated by reprocess --> OK, can now be caught and removed
  3. Exception deleted as a result of a rule deletion --> Problematic, cannot be synched
Still have questions?