BizTalk error: Data at the root level is invalid.
Problem: My orchestration looks perfectly fine with no error symbols anywhere but whenever I try to build the solution I get:
Error 1 Data at the root level is invalid. Line 1, position 1. C:…MyProjectMyOrchestration.odx 1 1
Cause: I was moving the orchestration file from one BizTalk project to another through holding shift and doing drag’n’drop in the solution explorer.
The btproj file has this new content:
1 | <ItemGroup> |
Solution: The move operation within Visual Studio is broken. You either have to do it in a different way (maybe add existing item?) or you adjust the project file after moving the orchestration:
1 | <ItemGroup> |
The error should be gone.