Answered by:
root element is missing with the flat file assembler

Question
-
Hi,
i have a situation where i receive a xml document from our ERP. At first i create a mapping to a intermediate xml format.
From then on a new mapping to a flat file. When i test all the steps in visual studio everything is working fine and alle maps are schema's are validated.
But when i deploy everything to the test environment i get an error that the root element is missing at the flat file assembler.
The configuration is that the receive port has the mapping from the ERP format to the intermediate format. The send port has the mapping from intermediate format to the flat file format.
I then tried to remove the mapping in the send port and placed the mapping from intermediate to flat file in the receive port.
in visual studio i manually created a intermediate test file and processed it in runtime. Everything then maps fine and i get the flat file which i want.
So is it mandatory to create a orchestration for this situation?
Wednesday, July 23, 2014 9:54 AM
Answers
-
No its not.
Everything is working fine if i change the sendpipeline to the default XMLTransmit pipe.
But i still need the file in flatfile format.
I managed to fix the issue.
I had another pipeline component in the pre-assemble stage. This is the Biztalk message archiver component. The flat file assembler was in the assemble stage.
I moved the message archiver component to the encode stage and kept the flat file assembler component in the assemble stage.
Everything seems to be working fine now.
- Edited by Ronald Veenman Thursday, July 24, 2014 6:55 AM Problem solved
- Marked as answer by Ronald Veenman Thursday, July 24, 2014 8:33 AM
Thursday, July 24, 2014 5:58 AM
All replies
-
No, an Orchestration is not required.
In this case, you will have to run the ERP->Intermediate Map on the Receive Port and the Intermediate->Outbound on the Send Port since you have, presumably, three message formats.
Does the Receive Location use a Pipeline with the XmlDisassembler?
- Proposed as answer by Maheshkumar S Tiwari Wednesday, July 23, 2014 1:29 PM
Wednesday, July 23, 2014 1:17 PMModerator -
Thats what i have at the moment, but thats not working.
No i receive a xml and have to create a flatfile as output. So the flatfile assemble is at the send port.
Wednesday, July 23, 2014 1:41 PM -
My question was if the Receive Location uses a Pipeline with the XmlDisassembler.Wednesday, July 23, 2014 2:10 PMModerator
-
No its not.
Everything is working fine if i change the sendpipeline to the default XMLTransmit pipe.
But i still need the file in flatfile format.
I managed to fix the issue.
I had another pipeline component in the pre-assemble stage. This is the Biztalk message archiver component. The flat file assembler was in the assemble stage.
I moved the message archiver component to the encode stage and kept the flat file assembler component in the assemble stage.
Everything seems to be working fine now.
- Edited by Ronald Veenman Thursday, July 24, 2014 6:55 AM Problem solved
- Marked as answer by Ronald Veenman Thursday, July 24, 2014 8:33 AM
Thursday, July 24, 2014 5:58 AM