如何使用标头创建平面文件 [英] How to create a Flat File with header
问题描述
我已经完成了对平面文件的修改,但我发现很难创建平面文件。要求是我需要收集独立消息,汇总成一条消息并将消息作为带有标题的平面文件输出。
独立消息
< Invoice>
< Date>
<值>
< LineItems>
<项目ID>
< Qty>
< / LineItems>
< Invoice>
现在我想构建一个批处理领域,例如
批量处理器:
发票记录1
发票记录2
............... .........
我现在正在做的是我收到消息并创建一个inputpipelinemessage类型的集合。
我创建了一个带有FF汇编程序和sepcified的Send管道发票架构作为文档架构。我能够成功创建平面文件正文。
现在,我无法为文件创建标题。我可以使用XMLNorm.headerDocument但是,我不明白我需要在哪个mesasge上使用它作为调用
来Microsoft.Xlang.Executesendpipeline将inputpipelinemessage集合和xmldoc作为输出消息。
任何帮助都是非常有用的。
如果还有另一种方式可以激发...请指导。
Shady
< blockquote>我正在尝试为管道中的Flat文件汇编程序组件指定头模式。然后我将消息添加到sendpipelineinput集合。从orch调用管道。抛出头模式的错误。
执行管道失败。文档类型""与任何给定的模式都不匹配。
我添加了组件的模式,并添加了头模式类型的消息。
提前谢谢。
Hi,
I have done debatching flat file but I am finding it difficult to create flat file. Requirement is that I need to collect independent messages, assemble into one message and output the message as flat file with header.
Independent Msg
<Invoice>
<Date>
< Value>
<LineItems>
<Item Id>
<Qty>
</LineItems>
<Invoice>
Now I want to construct a batch fiel like
BatchHeader:
Invoice Record 1
Invoice Record 2
........................
What I am doing now is that I receive messages and create a collection of type inputpipelinemessage.
I have created a Send pipeline with FF assembler and sepcified Invoice schema as document schema. I am able to create flat file body successfully.
Now, I am not able to create header for the file. I can use XMLNorm.headerDocument but, I don't understand that on which mesasge I need to use it as Calling
Microsoft.Xlang.Executesendpipeline takes inputpipelinemessage collection and xmldoc as output message.
Any help is deeply appriciated.
If there is another way to acjeive..please guide .
Shady
Hi,
I am trying to specify header schema for Flat file assembler component in the pipeline. I then add messages to the sendpipelineinput collection. Calling the pipeline from orch. throws error for the header schema.
There was a failure executing pipeline. The document type "" does not match any of the given schema.
I have added the schema for the component and also adding header schema type message.
Thanks in advance.
这篇关于如何使用标头创建平面文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!