# How can I make the flow ignore parse errors?

**URL:** <https://connective.celigo.com/t/how-can-i-make-the-flow-ignore-parse-errors/579>\
**Category:** Integrator.io\
**Tags:** hubspot, error-handling, json, javascript, flow-builder\
**Created:** [December 20, 2022, 9:33pm UTC](https://connective.celigo.com/t/how-can-i-make-the-flow-ignore-parse-errors/579 "2022-12-20T21:33:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![yahyafatihaji](https://avatars.discourse-cdn.com/v4/letter/y/439d5e/32.png) [@yahyafatihaji](https://connective.celigo.com/u/yahyafatihaji)\
**Post date:** [December 20, 2022, 9:33pm UTC](https://connective.celigo.com/t/how-can-i-make-the-flow-ignore-parse-errors/579/1 "2022-12-20T21:33:19Z")

</div>

I keep getting this at the end of a flow, that posts something using HubSpot. I'm thinking this error is because HubSpot returns `SUCCESS` text instead of JSON after successful request. I'm looking for a way to ignore errors like this from appearing in the error list during runtime. However, I can't find a way to do it.

I tried doing it using postSubmit, but it doesn't even reach there since it can't parse it to a JavaScript Object. Is there a way to solve this?

```
Message: An invalid JSON is sent in the response.body, error: please ensure that you have wrapped all JSON property names in quotes. details: Unexpected token S in JSON at position 0 Code: invalid_json Source: HubSpot Timestamp: 2022-12-20T21:21:10.858Z Error ID: 1412159407 Classification : Parse Trace key : 56851 - 56801
```

---

<div class="post-metadata">

**Author:** ![tylerlamparter](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/tylerlamparter/32/9204_2.png) [@tylerlamparter](https://connective.celigo.com/u/tylerlamparter)\
**Post date:** [December 20, 2022, 9:58pm UTC](https://connective.celigo.com/t/how-can-i-make-the-flow-ignore-parse-errors/579/2 "2022-12-20T21:58:38Z")

</div>

@yahyafatihaji what Hubspot endpoint are you using? Can you sent screenshots of the overall flow setup and that Hubspot import step? I'm wondering if you may be using an older Hubspot api version (v1) instead of v3. If you're on v3, then I have another thought, but could validate it on my side after seeing your overall flow and setup.

---

<div class="post-metadata">

**Author:** ![yahyafatihaji](https://avatars.discourse-cdn.com/v4/letter/y/439d5e/32.png) [@yahyafatihaji](https://connective.celigo.com/u/yahyafatihaji)\
**Post date:** [December 21, 2022, 11:49am UTC](https://connective.celigo.com/t/how-can-i-make-the-flow-ignore-parse-errors/579/3 "2022-12-21T11:49:50Z")

</div>

I'm using the [Merge Contacts endpoint](https://legacydocs.hubspot.com/docs/methods/contacts/merge-contacts), which is a v1 API endpoint in HubSpot, and there is no v3 equivalent for that (I couldn't find it if there is).

Here is a screenshot of the flow:

 ![5301043caa20740200000001-6c3206b36e98410099e124e10aa5c8c6.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/f/f73e3ad264c089efbbc51859da14cc2019207625.png)

Here is a screenshot of the last (import) step in the flow

 ![5301043caa20740200000001-e59a71144e854d86a6f2321152a941e5.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/f/fb77e664ad62e620021df21eddfeebbb24c6cacf.png)

---

<div class="post-metadata">

**Author:** ![tylerlamparter](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/tylerlamparter/32/9204_2.png) [@tylerlamparter](https://connective.celigo.com/u/tylerlamparter)\
**Post date:** [December 21, 2022, 3:29pm UTC](https://connective.celigo.com/t/how-can-i-make-the-flow-ignore-parse-errors/579/4 "2022-12-21T15:29:36Z")

</div>

@yahyafatihaji it looks like there is a v3 version of this endpoint. Will this work for you? [https://developers.hubspot.com/docs/api/crm/contacts#endpoint?spec=POST-/crm/v3/objects/contacts/merge](https://developers.hubspot.com/docs/api/crm/contacts#endpoint?spec=POST-/crm/v3/objects/contacts/merge)

 ![5301043caa20740200000001-b772f6b6cd5043eaa6f56366270ea820.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/8/8379710d3eb9ffee85f138d6f1295f7641a7e4ee.png)

---

<div class="post-metadata">

**Author:** ![yahyafatihaji](https://avatars.discourse-cdn.com/v4/letter/y/439d5e/32.png) [@yahyafatihaji](https://connective.celigo.com/u/yahyafatihaji)\
**Post date:** [December 21, 2022, 4:51pm UTC](https://connective.celigo.com/t/how-can-i-make-the-flow-ignore-parse-errors/579/5 "2022-12-21T16:51:13Z")

</div>

@tylerlamparter Thanks a lot. This solved my problem.
