eileenmcnaughton / nz.co.fuzion.civixero

Synchronisation between CiviCRM & Xero
7 stars 14 forks source link

Fix invoice and contact push errors #132

Closed jitendrapurohit closed 2 months ago

jitendrapurohit commented 4 months ago

Contact Push Errors:

Invoice Push Errors:

mattwire commented 4 months ago

@jitendrapurohit It might be worth you looking at some of the changes in #101 - I ended up significantly rewriting some of the contact push/pull stuff but it's been pretty reliable ever since.

jitendrapurohit commented 4 months ago

Another contact push error:

mattwire commented 4 months ago

Another contact push error:

  • The contacts who fails the push for some reason does not store the error_data in the account_contact table. So eg if first 10 contacts fails the push, the job keep on trying to push them to xero on every cron run. This PR stores the error_data in the table and prioritise those who doesn't have error_data filled and tries to push them to xero.

That one is fixed in my branch too :-)

jitendrapurohit commented 4 months ago

@mattwire I've asked Pete to check your changes on any dev site. I'll let you know :)

eileenmcnaughton commented 2 months ago

@jitendrapurohit I've pulled in the parts of @mattwire's branch that relate to these issues & am going to close this. I've mostly tried to copy over @mattwire's code but diverged on trying a different approach on the throttle (moving it into a listener) to make it more consistently handled