Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Toolkit: Image Registration - MessagePropertyName invalid on Create Message

(0) ShareShare
ReportReport
Posted on by 265

Using the new toolkit, if you add an image to a Create message, and then try and deploy it, you get the following message:

==OrganizationServiceFault Info=======================================================================================
Error    : Message property name 'Target' is not valid on message Create.

Create images expect a MessagePropertyName = "id". Changing this manually in the crmregister file fixes the problem and allows the image to be registered.

Here's what the toolbox generates:

                <Image EntityAlias="PostImage" Id="074f0466-8818-e711-80ea-005056933acd" MessagePropertyName="Target" ImageType="PostImage" />
and this is what it should be:

                <Image EntityAlias="PostImage" Id="074f0466-8818-e711-80ea-005056933acd" MessagePropertyName="id" ImageType="PostImage" />

*This post is locked for comments

  • Ben Walker Profile Picture
    Ben Walker 265 on at
    RE: Toolkit: Image Registration - MessagePropertyName invalid on Create Message

    This problem has resurfaced. With version 1.3.2000.9032, if you add an image to a create plugin, it gives the Message Property Name 'Target' as before and the deployment will fail with "Message property name 'Target' is not valid on message Create."

    Similarly, if you create a plugin on the Message 'SetStateDynamicEntity' and create an image for the plugin, it also gives the message property name = 'Target' and will fail to deploy with a similar message. Changing the MessagePropertyName to "entityMoniker" (with a lower case 'e' at the start) fixes the issue.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Toolkit: Image Registration - MessagePropertyName invalid on Create Message

    This works.... Thanks.

  • MattB-MSFT Profile Picture
    MattB-MSFT on at
    RE: Toolkit: Image Registration - MessagePropertyName invalid on Create Message

    Was this prior to fixing the ID name?

  • awad Profile Picture
    awad on at
    RE: Toolkit: Image Registration - MessagePropertyName invalid on Create Message

    Hi,

    The About solution fixed for me, but I have a suggestion for Developer Tool Team.

    On Developer Toolkit  Build 1.3.2000.8910 it was just getting the below in the Output as below

     

    2>------ Deploy started: Project: CrmPackage, Configuration: UAT Any CPU ------
    2>Error: There is an error in XML document (119, 86).
    ========== Build: 1 succeeded, 0 failed, 9 up-to-date, 0 skipped ==========
    ========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========

    This was not much informative. please specifiy which xml you are referring in the output . so that it will be useful for the end users to identify such errors in future. 

    Thanks Again.

  • Ben Walker Profile Picture
    Ben Walker 265 on at
    RE: Toolkit: Image Registration - MessagePropertyName invalid on Create Message

    This issue is fixed with the latest version of the Developer Toolkit (May 2017 build 1.3.2000.8884)

    Be aware that if you have already created an image with MessagePropertyName="id", this will fail when you try and deploy, with a message:

    3>Error: There is an error in XML document (283, 90).

    This is because the validator now expects to see MessagePropertyName="Id" (upper case "I") for Post Create images.

  • MattB-MSFT Profile Picture
    MattB-MSFT on at
    RE: Toolkit: Image Registration - MessagePropertyName invalid on Create Message

    Checking on this.

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,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans