Found an integer attribute with unrecognized format: new_customeridtype – Solved

By | November 2, 2016

Introduction:

Microsoft introduced the customer type field in Dynamics CRM 2016. To know more about it, you can refer this blog to explore it more. In this blog, we will focus on one of the error, which is caused while retrieving entity metadata for customer field.

Problem:

In one of our examples, our requirement was to read the metadata of entity. For this, we tried to retrieve entity metadata using RetrieveEntityRequest.

Following is the code snippet:

While execution, it was throwing the error “Found an integer attribute with unrecognized format: new_customeridtype”.

Cause:

RetrieveAsIfPublished = “True” means return the metadata(Entity, Attributes, Relationship, Optionset, option) including unpublished changes.

RetrieveAsIfPublished = “False” means return only the currently published Metadata, ignoring any unpublished changes.

In order to overcome with this issue, we set entity request “RetreiveAsIfPublished” property to false.

Solution:

So we used the revised code as below:

And, we were able to get the results without any error.

Hope this helps you.

Get hands on experience of Maplytics – Dynamics CRM + Maps and navigate with style!

Leave a Reply