Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Dynamics 365 general forum

The Form XML does not conform to the required schema. A schema validation error has been detected at line 0, position 0. Details: There is a duplicate key sequence

(0) ShareShare
ReportReport
Posted on by

Hello All,

I am deploying managed solution from CRM 2013 Dev environment to CRM 2013 SIT environment.

During the import I am facing the below error:-

"The Form XML does not conform to the required schema. A schema validation error has been detected at line 0, position 0. Details: There is a duplicate key sequence 'Regarding_ID' for the 'UniqueName' key.

I have search for specific sequence "Regarding_ID"  in Customization.xml and came to know that this is parameter defined in form properties of "Campaign Response" entity.

Does anybody have idea how to resolve this issue?

Regards

Manish Sharma

  • Kit Englund Profile Picture
    57 on at
    RE: The Form XML does not conform to the required schema. A schema validation error has been detected at line 0, position 0. Details: There is a duplicate key sequence

    I've had the same issue today, so I'm going to just put my outcome here for prosterity.  

    My error was slightly different from Manish's error.  Mine ended with:

    A schema validation error has been detected at line 0, position 0. Details: The element 'events' has incomplete content. List of possible elements expected: 'event'.

    I did have to get some support from my Microsoft Partner on this one, so can't take the credit.  However, it was an issue where I had accidentally made a change to my test environment that was meant to be made in my Dev environment against the offending form (which was identified through the GUID that is supplied in the error).

    Here are the steps I took to rectify it:

    1. In the environment to which you are promoting (in my case, I was promoting from Dev to Test - so this was carried out in the Test environment), open the Customize the System in the Customization area in Settings

    2. Find the offending Form in its parent entity (which will be highlighted in the error message).

    3. Select the Form by ticking next to it.

    4. Select the "More Actions" drop-down and select Solution Layers

    5. In this screen, you should see where the layer has come into the base D365 configuration by being edited in the Managed entity (this is because I had allowed customizing of a managed entity)

    6. There should be a button to the right of the Solution name with 3 dots (only there if it has been completed in this way, not if you last upgraded through importing a managed solution)

    7. In the 3 dots is the option "Remove Active Customizations", select this.

    8. There isn't much in the way of messages or timing.  I had to close down the window and re-open to see that the solution layer had gone.

    9.  I went back and checked, it had rolled back to the previous form.

    10. I could then apply the upgrade without an issue.

    I hope this helps someone else out who may have made this same silly mistake, and is now sitting at 3:22 am trying in vein to get an upgrade through with Google as their only lifeline.

  • Suggested answer
    Adrian Begovich Profile Picture
    1,025 Super User 2025 Season 1 on at
    RE: The Form XML does not conform to the required schema. A schema validation error has been detected at line 0, position 0. Details: There is a duplicate key sequence

    Hi Manish Sharma,

    You only need to remove the duplicate 'Regarding_ID' key sequence from the customizations.xml file and not all 'Regarding_ID' key sequences. You will need to do this to import your solution into the target instance.

  • My Dynamics Community Profile Picture
    on at
    RE: The Form XML does not conform to the required schema. A schema validation error has been detected at line 0, position 0. Details: There is a duplicate key sequence

    Hello Adrian,

    Thanks for your response, but currently we have requirement to use these parameter in our custom page and I cannot remove those parameters from formxml.

    Also I am this issue came while I am deploying the holding solution.

    Regards

    Manish Sharma

  • Suggested answer
    Adrian Begovich Profile Picture
    1,025 Super User 2025 Season 1 on at
    RE: The Form XML does not conform to the required schema. A schema validation error has been detected at line 0, position 0. Details: There is a duplicate key sequence

    Hi Manish Sharma,

    This is definitely an issue with the customizations.xml file. You will need to remove the duplicate 'Regarding_ID' key sequence from this file, zip your modified solution, and import it into the target instance.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Dynamics 365 general forum

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans