简体   繁体   中英

Issue adding a new field to an entity in crm 2011

I am running into an issue when adding a new field to an entity. In my entity I had 526 fields, I tried to add a new one but I got the error message "Attribute xxx cannot be created because we have hit a maximum number of attributes allowed for an entity (1000)". However I only have 526 fields in the entity. Furthermore, I deleted one field I don't need anymore and I tried to add my new field but I still have the same error message even though I've deleted one field. Could anyone help me out please. I do appreciate it. Thanks !

Walloud

You will be hitting the column limit, even with only 526 fields.

You have to remember that CRM will add its own fields in addition to the ones that you have, such as ones for base currency. This can take you over the limit.

Also consider that the Filtered Views that CRM automatically creates have extra columns for lookup (name), optionset (name) and date (local) fields which can also mean you exceed the limit there.

I think your only options are to delete more fields in order to free up the room, or re-architect your entity design to split it over multiple related entities instead

Looks like you are facing the SQL Server 8k row limit

you can check the field names and verify this.

more information here:

http://mileyja.blogspot.com/2013/09/dealing-with-8k-sql-server-row-limits.html

You need to remember that some fields, such as currency will have two separate fields in SQL thus increment the column count by two for each one you create. If you have 500+ fields on a single entity then it is time to normalize the data and start breaking it out into related entities. It will be better for performance and your data in the long run.

http://en.wikipedia.org/wiki/Database_normalization

Cheers!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM