How long does it take for the sync errors to disappear? Looking at the documentation the sync errors should go once the error has been resolved. But this is not the case. I have the following error:
“objectType”: “LINE_ITEM”,
“externalObjectId”: “1683604”,
“changedAt”: 1612514234000,
“erroredAt”: 1619074977394,
“type”: “UNKNOWN_ERROR”,
“details”: “Error performing[UPDATE] LINE_ITEM[3d-group-trade-store__1683604] for portal 19915335, error was [19915335] update failed - {\“validationResults\”:[{\“isValid\”:false,\“message\”:\”-7.10542735760100185871124267578125e-15 was not a valid discount.\“,\“error\”:\“INVALID_DISCOUNT\”,\“name\”:\“discount\”}],\“status\”:\“error\”,\“message\”:\“Property values were not valid\”,\“correlationId\”:\“837f4d8c-6627-4b6f-827a-d47087e8dd6f\”}”,
“status”: “OPEN”
I noticed there was an error with the data I was sending in the API call. I have updated my request and it’s now sending the correct discount value (0). The line item is saved in HubSpot, but the sync error still shows all the time!
I have increased the changedAt time as well. At the moment I am having to create a new test App and resyncing everything, but this is not ideal!
@himanshurauthan , do you happen to have any insights for @DSanderson ?
Hi @DSanderson,
Sync errors are not time-dependent, and you are correct - they should go after the successful sync for that particular integratorObjectId.
Can you please check you are sending the sync message for the same integratorObjectId ( 1683604 in your example ), and check the sync status as success?
If you’re doing this, can you please try with a non-zero value as well, as zero might have been the default value and the update was not done for the same?
Regards,
It seems you are saying I need to pass in the integratorObjectId which is your ID for the item I tried to sync before. But all my syncs are referenced by externalObjectId. We don’t store any of your ID’s in our system and seems pointless to do so as everything syncs fine with the externaObjectId.
I have tried sending with zero. What’s worse is the timestamp on the error updates to when the new sync was made. So I send valid data, the error is still the same and the timestamp of the error matches the sync with the valid data.
Hi @DSanderson,
The integratorObjectId is referenced to externalObjectId.
So this is actually an issue with the way the Ecommerce Bridge API marks sync errors as resolved. Without getting into too many specifics, sync errors cannot currently be marked ‘RESOLVED’ because of an issue with a backend service.
What I might request you here is to check the sync status of the given object, instead of checking all sync errors.
I’d also encourage you to post this as an idea on the HubSpot Ideas Forum, to better manage this sync error functionality.
Regards,