# Ecommerce bridge how to resolve errors

**URL:** <https://community.hubspot.com/t/ecommerce-bridge-how-to-resolve-errors/14667>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [June 5, 2019, 4:54pm UTC](https://community.hubspot.com/t/ecommerce-bridge-how-to-resolve-errors/14667 "2019-06-05T16:54:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zibi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zibi/32/78108_2.png) [@Zibi](https://community.hubspot.com/u/Zibi)\
**Post date:** [June 5, 2019, 4:54pm UTC](https://community.hubspot.com/t/ecommerce-bridge-how-to-resolve-errors/14667/1 "2019-06-05T16:54:18Z")

</div>

Hi,

I would like to know how I can resolve synchronization errors. Right now we use ecommerce bridge sync messages to synchronize data to HubSpot.

For instance I try to sync contact with invalid email:

PUT [https://api.hubapi.com/extensions/ecomm/v1/sync-messages/contact](https://api.hubapi.com/extensions/ecomm/v1/sync-messages/contact)

```auto
[{
		"integratorObjectId": "test-contact",
		"action": "UPSERT",
		"changeOccurredTimestamp": "1559734419277",
		"propertyNameToValues": {
			"firstname": "Tom Doe",
			"lastname": "Tom Doe",
			"city": "London",
			"postalcode": "3456",
			"address": "Lubicz 32",
			"country": "UK",
			"email": "aa@aaa"
		}
	}
]

```

Then I check if there is any synchronization errors and following data is returned :

GET [https://api.hubapi.com/extensions/ecomm/v2/sync/status/default/CONTACT/test-contact](https://api.hubapi.com/extensions/ecomm/v2/sync/status/default/CONTACT/test-contact)

```auto
{
 "storeId": "default",
 "objectType": "CONTACT",
 "externalObjectId": "test-contact",
 "hubspotId": 3851,
 "lastProcessedAt": 1559752161704,
 "errors": [
 {
 "portalId": 5940484,
 "storeId": "default",
 "objectType": "CONTACT",
 "externalObjectId": "test-contact",
 "changedAt": 1559751507058,
 "erroredAt": 1559751530198,
 "type": "INVALID_EMAIL_ADDRESS",
 "details": "Email address SyncHadoopHubspotPropertyValue{hubspotPropertyName=email, propertyValue=aaa@aaa, timestamp=1559751507058} is not valid",
 "status": "OPEN"
 }
 ]
}

```

I see that email is incorrect, so I resend contact with fixed email property.

PUT [https://api.hubapi.com/extensions/ecomm/v1/sync-messages/contact](https://api.hubapi.com/extensions/ecomm/v1/sync-messages/contact)

```auto
[{
		"integratorObjectId": "test-contact",
		"action": "UPSERT",
		"changeOccurredTimestamp": "1559734419277",
		"propertyNameToValues": {
			"firstname": "Tom Doe",
			"lastname": "Tom Doe",
			"city": "London",
			"postalcode": "3456",
			"address": "Lubicz 32",
			"country": "UK",
			"email": "aa@aaa.com"
		}
	}
]

```

When I try to check sync status for updated contact, error is still returned (however contact has been sucessfully synchronized and I see it in UI)

```auto
{
 "storeId": "default",
 "objectType": "CONTACT",
 "externalObjectId": "test-contact",
 "hubspotId": 3851,
 "lastProcessedAt": 1559752161704,
 "errors": [
 {
 "portalId": 5940484,
 "storeId": "default",
 "objectType": "CONTACT",
 "externalObjectId": "test-contact",
 "changedAt": 1559751507058,
 "erroredAt": 1559751530198,
 "type": "INVALID_EMAIL_ADDRESS",
 "details": "Email address SyncHadoopHubspotPropertyValue{hubspotPropertyName=email, propertyValue=aaa@aaa, timestamp=1559751507058} is not valid",
 "status": "OPEN"
 }
 ]
}

```

I wonder why status is not set to resolved or errors array is not removed after successful synchronization. Is there any way to check if specific synchronization request has been processed successfully?

I found following post: [https://community.hubspot.com/t5/APIs-Integrations/Best-practice-to-resolve-Ecomm-sync-errors/m-p/262332](https://community.hubspot.com/t5/APIs-Integrations/Best-practice-to-resolve-Ecomm-sync-errors/m-p/262332)  
It seems there is no way to clear sync errors. Is there any way to set status of the error to RESOLVED?

Regards,

Zibi

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [June 7, 2019, 8:06pm UTC](https://community.hubspot.com/t/ecommerce-bridge-how-to-resolve-errors/14667/2 "2019-06-07T20:06:59Z")

</div>

Hi, @Zibi.

Thanks for another detailed post.

It’s not possible to directly set a sync error as`RESOLVED`, but according to both the [v1](https://developers.hubspot.com/docs/methods/ecommerce/get-all-sync-errors-for-an-app) and [v2](https://developers.hubspot.com/docs/methods/ecommerce/v2/get-all-sync-errors-for-an-app) _Get all sync errors for an app_ articles:

**"A successful sync for a given `externalObjectId` will mark the error as `RESOLVED`**."

From your description, it sounds like you are using the [_Check the sync status of an object_](https://developers.hubspot.com/docs/methods/ecommerce/v2/check-sync-status) endpoint. I’m curious — do you get the same results from the [_Get all sync errors for an app_](https://developers.hubspot.com/docs/methods/ecommerce/v2/get-all-sync-errors-for-an-app)endpoint, or does it show the object as`RESOLVED`? (If you don’t use an OAuth app, then use [this endpoint](https://developers.hubspot.com/docs/methods/ecommerce/v2/get-all-sync-errors-for-a-specific-account) for your production account.)
