# Error: Cannot construct instance of \`com.hubspot.inbounddb.associations.base.PublicFetchAssociations

**URL:** <https://community.hubspot.com/t/error-cannot-construct-instance-of-com-hubspot-inbounddb-associations-base-publicfetchassociations/63208>\
**Category:** APIs & Integrations\
**Tags:** companies, contacts\
**Created:** [August 18, 2022, 3:23am UTC](https://community.hubspot.com/t/error-cannot-construct-instance-of-com-hubspot-inbounddb-associations-base-publicfetchassociations/63208 "2022-08-18T03:23:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![GMaltsev](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gmaltsev/32/56196_2.png) [@GMaltsev](https://community.hubspot.com/u/GMaltsev)\
**Post date:** [August 18, 2022, 3:23am UTC](https://community.hubspot.com/t/error-cannot-construct-instance-of-com-hubspot-inbounddb-associations-base-publicfetchassociations/63208/1 "2022-08-18T03:23:12Z")

</div>

Hello!

From today, I’ve started to get the following error:

{

“status”: “error”,

“message”: "Invalid input JSON on line 1, column 46: Cannot construct instance of `com.hubspot.inbounddb.associations.base.PublicFetchAssociationsBatchRequest$Json` (although at least one Creator exists):

no

String-argument constructor/factory method to deserialize from String value (‘8864691022’)",

“correlationId”: “97ea35ed-75aa-4b78-b408-c4ae45cf2785”

}

My request:

POST /crm/v4/associations/company/contact/batch/read

Authorization: Bearer […]

Content-Type: application/json

{“properties”:[],“idProperty”:null,“inputs”:[“8864691022”,“9397112642”,“9397112643”],

“archived”:null,“limit”:100,“after”:0

}

The requests like this have worked properly before.

Please tell me, what’s happened?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [August 18, 2022, 8:28pm UTC](https://community.hubspot.com/t/error-cannot-construct-instance-of-com-hubspot-inbounddb-associations-base-publicfetchassociations/63208/2 "2022-08-18T20:28:42Z")

</div>

Hi, @GMaltsev 👋 Thanks for reaching out. Hey, @himanshurauthan @Kevin-C @Bryantworks have you dealt with this issue? Or do you have any troubleshooting tips @GMaltsev might consider?

Thank you very much! — Jaycee

---

<div class="post-metadata">

**Author:** ![GMaltsev](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gmaltsev/32/56196_2.png) [@GMaltsev](https://community.hubspot.com/u/GMaltsev)\
**Post date:** [August 22, 2022, 2:59am UTC](https://community.hubspot.com/t/error-cannot-construct-instance-of-com-hubspot-inbounddb-associations-base-publicfetchassociations/63208/3 "2022-08-22T02:59:07Z")

</div>

Hello again!  
Please fix this bug, because it prevents to use entire our (DEAR/Cin7) integration with HubSpot. This error remains unfixed for 4 days already. [Documentation of Associations API v4](https://developers.hubspot.com/docs/api/crm/associations) also doesn’t contain any useful information about batched reading of associations (but this information was present there in the spring). Instead of this, it now describes batch reading and creating of some abstract “objects”.  
Please rollback your changes from Aug 17, or fix the bug mentioned in the initial post asap.  
We have hundreds of customers who use our HubSpot integration, and all of them can’t sync anything since last Wednesday.

Thanks.

---

<div class="post-metadata">

**Author:** ![GMaltsev](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gmaltsev/32/56196_2.png) [@GMaltsev](https://community.hubspot.com/u/GMaltsev)\
**Post date:** [September 2, 2022, 5:55am UTC](https://community.hubspot.com/t/error-cannot-construct-instance-of-com-hubspot-inbounddb-associations-base-publicfetchassociations/63208/4 "2022-09-02T05:55:21Z")

</div>

Hello @himanshurauthan , @Kevin-C , @Bryantworks !  
The issue has not been resolved yet. Is there any hope that it will ever be fixed?

 ![HS-associations-request-error2.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/4/1/41ada021ffe15f4f332c69cac31677888243edc2.png)

---

<div class="post-metadata">

**Author:** ![himanshurauthan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/himanshurauthan/32/53076_2.png) [@himanshurauthan](https://community.hubspot.com/u/himanshurauthan)\
**Post date:** [September 13, 2022, 8:32am UTC](https://community.hubspot.com/t/error-cannot-construct-instance-of-com-hubspot-inbounddb-associations-base-publicfetchassociations/63208/5 "2022-09-13T08:32:43Z")

</div>

Apollogies for the delay @GMaltsev. So the input array must have a key named id to work properly like this:

 ![himanshurauthan_0-1663057943847.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/6/2/62612182d8009cdf890e60ff68562b33cee305b5.png)

---

<div class="post-metadata">

**Author:** ![GMaltsev](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gmaltsev/32/56196_2.png) [@GMaltsev](https://community.hubspot.com/u/GMaltsev)\
**Post date:** [September 19, 2022, 10:07am UTC](https://community.hubspot.com/t/error-cannot-construct-instance-of-com-hubspot-inbounddb-associations-base-publicfetchassociations/63208/6 "2022-09-19T10:07:25Z")

</div>

Thank you, Himanshu, this is a working solution.  
The next time the HS dev team initiates any changes to the API, please reflect these changes in the relevant [documentation](http://Please). At the moment, it still contains useless template text instead of real requests like yours.

 ![HS associations API 4.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/2/1/219d0edc2941f7f72c193cf5b7efdf3d8bb4fc0e.png)
