Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[error]The element 'DataBlock' has invalid child element 'Export'. List of possible elements expected: 'Relation' #10

Open
kennyvaes opened this issue May 9, 2018 · 1 comment

Comments

@kennyvaes
Copy link

Hi,

Our Shuffle Export steps all of a sudden stopped working. They now complain about the Export Datablock being an invalid child of the DataBlock element.
Did something break in the 9.0.5 release for the VSTS Build Steps?
Validating the definition file manually using XrmToolbox works.

Please find our shuffle definition attached.
shufflewebformsxml.txt

Below is the error log returned from TFS:

2018-05-09T10:55:00.5912131Z ##[section]Starting: Shuffle Export
2018-05-09T10:55:00.5916879Z ==============================================================================
2018-05-09T10:55:00.5917335Z Task : Innofactor DevOps: Shuffle Export
2018-05-09T10:55:00.5917719Z Description : Export data and solutions using Innofactor Shuffle.
2018-05-09T10:55:00.5918087Z Version : 9.0.5
2018-05-09T10:55:00.5918449Z Author : Innofactor Sweden
2018-05-09T10:55:00.5918760Z Help :
2018-05-09T10:55:00.5919139Z ==============================================================================
2018-05-09T10:55:02.2316216Z Loading definition from C:\vstsagent\Build_work\12\s\shuffle_webforms.xml
2018-05-09T10:55:02.3735678Z Starting export
2018-05-09T10:55:03.4167656Z ##[error]The element 'DataBlock' has invalid child element 'Export'. List of possible elements expected: 'Relation'.
2018-05-09T10:55:03.4435277Z ##[section]Finishing: Shuffle Export

@rappen
Copy link
Member

rappen commented May 9, 2018

Hi Kenny

The new version can now properly validate the definition against the schema, and in this case it complains as the order of the elements under DataBlock must be Export, Import and then 0-n elements Relation.
Once the schema discovers a Relation element, it only allows other Relation elements following that.
In your case, the Relation elements were placed first under the DataBlock element, which makes it complain about next block which is Export.
So if you move down the Relation blocks to after Import in each DataBlock you should be fine :)

You can try the latest prerelease of the Shuffle tools for XrmToolBox here:
https://github.com/Innofactor/Innofactor.Crm.CI/releases/tag/1.2018.05.5

Jonas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants