# Catalog API - .NET SDK - CatalogObject.CustomAttributeValues is always null

**URL:** <https://developer.squareup.com/forums/t/catalog-api-net-sdk-catalogobject-customattributevalues-is-always-null/11298>\
**Category:** Questions\
**Tags:** catalog-api\
**Created:** [November 16, 2023, 4:11am UTC](https://developer.squareup.com/forums/t/catalog-api-net-sdk-catalogobject-customattributevalues-is-always-null/11298 "2023-11-16T04:11:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chilenazo](https://avatars.discourse-cdn.com/v4/letter/c/a587f6/32.png) [@chilenazo](https://developer.squareup.com/forums/u/chilenazo)\
**Post date:** [November 16, 2023, 4:11am UTC](https://developer.squareup.com/forums/t/catalog-api-net-sdk-catalogobject-customattributevalues-is-always-null/11298/1 "2023-11-16T04:11:39Z")

</div>

Hello,

I am using the Square Catalog API via the .NET SDK, specifically the SearchCatalogObjectsAsync function, to get all the Catalog objects of all types. The issue I am having is that CatalogObject’s CustomAttributeValues is always null even though I have created Custom Attributes using my seller dashboard and set values for them on various Items. Is there something special I need to or a different way to access the CustomAttributeValues of an Item?

 ![image](https://global.discourse-cdn.com/square/original/2X/a/a9b0a7e21072d7f4b964c7815544863d1e28a354.png)

Thank you

---

<div class="post-metadata">

**Author:** ![chilenazo](https://avatars.discourse-cdn.com/v4/letter/c/a587f6/32.png) [@chilenazo](https://developer.squareup.com/forums/u/chilenazo)\
**Post date:** [November 16, 2023, 5:16am UTC](https://developer.squareup.com/forums/t/catalog-api-net-sdk-catalogobject-customattributevalues-is-always-null/11298/2 "2023-11-16T05:16:57Z")

</div>

I was finally able to get the CustomAttributeValues populated for an Item. Instead of entering the custom attribute value in the custom attribute field that automatically shows up for every item after creating a custom attribute, I clicked on the Create Custom Attribute button on the Item form. In other words, I was having trouble when I entered the custom attribute in the first input field highlighted below which is the one that automatically shows. But things started working when I manually added the second input field highlighted below. It’s kind of confusing.

 ![image](https://global.discourse-cdn.com/square/original/2X/a/a391d5f2355d904e9c6e42381af383ac30963996.png)

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [November 16, 2023, 7:59pm UTC](https://developer.squareup.com/forums/t/catalog-api-net-sdk-catalogobject-customattributevalues-is-always-null/11298/3 "2023-11-16T19:59:00Z")

</div>

Was this in production or sandbox? 🙂

---

<div class="post-metadata">

**Author:** ![chilenazo](https://avatars.discourse-cdn.com/v4/letter/c/a587f6/32.png) [@chilenazo](https://developer.squareup.com/forums/u/chilenazo)\
**Post date:** [November 17, 2023, 2:14am UTC](https://developer.squareup.com/forums/t/catalog-api-net-sdk-catalogobject-customattributevalues-is-always-null/11298/4 "2023-11-17T02:14:44Z")

</div>

Thanks for your reply Bryan. This was in PROD.
