Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Invalid name prefix error when importing customization containing system attributes from another form

(0) ShareShare
ReportReport
Posted on by 210

Hello. I am using Microsoft Dynamics CRM 4.0. I am trying to copying system attributes from the Case entity to a Custom entity. I followed the tutorial "Copying Attributes from one Entity to Another" on https://blogs.msdn.microsoft.com/dynamicscrmonline/2009/06/05/copying-attributes-from-one-entity-to-another/.

I exported the Case entity and Custom entity customization.xml files and copied the following Title system attribute XML code (from the Case entity) to the Custom entity customization.xml file:

            <attribute PhysicalName="Title">
              <Type>nvarchar</Type>
              <Length>400</Length>
              <ValidForCreateApi>1</ValidForCreateApi>
              <ValidForUpdateApi>1</ValidForUpdateApi>
              <ValidForReadApi>1</ValidForReadApi>
			  <IsCustomField>1</IsCustomField>			  
              <AttributeTypeId>00000000-0000-0000-00aa-11000000001e</AttributeTypeId>
              <DisplayMask>ActivityRegardingName|QueueItemTitle|ActivityPointerRegardingName|PrimaryName|ValidForAdvancedFind|ValidForForm|ValidForGrid|RequiredForGrid</DisplayMask>
              <Descriptions>
                <Description description="Title of the case." languagecode="1033" />
              </Descriptions>
              <ImeMode>auto</ImeMode>
              <RequiredLevel>required</RequiredLevel>
              <Format>text</Format>
              <MaxLength>200</MaxLength>
              <displaynames>
                <displayname description="Title" languagecode="1033" />
              </displaynames>
            </attribute>

The only change I made in the XML code as per the above tutorial was to add <IsCustomField>1</IsCustomField> after the ValidForReadApi tags.

After importing the edited Case entity customization.xml file I get the following error:

""Failure: new_customcase: Invalid name prefix"

Copying custom entities to the Custom entity form works, but system attributes such as the above Title, throws the above error.

*This post is locked for comments

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans