# Error batch reading contacts with custom property

**URL:** <https://community.hubspot.com/t/error-batch-reading-contacts-with-custom-property/121202>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [November 22, 2024, 4:57pm UTC](https://community.hubspot.com/t/error-batch-reading-contacts-with-custom-property/121202 "2024-11-22T16:57:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LUnderwood](https://avatars.discourse-cdn.com/v4/letter/l/d6d6ee/32.png) [@LUnderwood](https://community.hubspot.com/u/LUnderwood)\
**Post date:** [November 22, 2024, 4:57pm UTC](https://community.hubspot.com/t/error-batch-reading-contacts-with-custom-property/121202/1 "2024-11-22T16:57:27Z")

</div>

I am attempting to make a request to this endpoint to fetch contacts with a custom property - [Accounts Dashboard | HubSpot](https://developers.hubspot.com/beta-docs/reference/api/crm/objects/contacts/v3#post-%2Fcrm%2Fv3%2Fobjects%2Fcontacts%2Fbatch%2Fread) . However, I am receiving the following error

```lia-code-sample
{
 "status": "COMPLETE",
 "results": [],
 "numErrors": 1,
 "errors": [
 {
 "status": "error",
 "category": "OBJECT_NOT_FOUND",
 "message": "Could not get some CONTACT objects, they may be deleted or not exist. Check that ids are valid.",
 "context": {
 "ids": [
 "AC9d12c90a228fd85bb334e7cabfcba435a5716772"
 ]
 }
 }
 ],
 "startedAt": "2024-11-22T16:55:24.150Z",
 "completedAt": "2024-11-22T16:55:24.211Z"
}

```

This is an example of the curl request I am using:

```lia-code-sample
curl --request POST \
 --url 'https://api.hubapi.com/crm/v3/objects/contacts/batch/read' \
 --header 'authorization: Bearer my-token' \
 --header 'content-type: application/json' \
 --data '{
 "properties": ["my_custom_property"],
 "idProperty": "my_custom_property",
 "inputs": [
 {
 "id": "AC9d12c90a228fd85bb334e7cabfcba435a5716772"
 }
 ]
}'

```

The contact definitely exists and contains this property + value. Is the request body incorrect in some way that I am not understanding?

---

<div class="post-metadata">

**Author:** ![zach\_threadint](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zach_threadint/32/46318_2.png) [@zach\_threadint](https://community.hubspot.com/u/zach_threadint)\
**Post date:** [November 22, 2024, 11:44pm UTC](https://community.hubspot.com/t/error-batch-reading-contacts-with-custom-property/121202/2 "2024-11-22T23:44:42Z")

</div>

Hi @LUnderwood 👋

Is your custom property configured as a “unique identifier” (i.e. the property’s _hasUniqueValue_ attribute is set to _true_)? If not, you won’t be able to use it as an _idProperty_ for any HubSpot APIs that support this feature. More info about how you can configure “unique identifier properties” can be found [here](https://developers.hubspot.com/beta-docs/guides/api/crm/properties#create-unique-identifier-properties) (see the

“Create unique identifier properties” section).

I hope this proves helpful. Please let me know if you have any follow-up questions.
