Re: source file name in the body of an email

Home Page Forums BizTalk 2004 – BizTalk 2010 source file name in the body of an email Re: source file name in the body of an email

#17015

Hi,

 Thanks for replying.

I tried your solution to use XPath.

In the "Message Assignment Expression Editor" is wrote: 

Testver7SendMsgInc = xpath(Testver7RecMsgInc,"/*[local-name()='ContainerPro1' and namespace-uri()='']/*[local-name()='ACTSEQ' and namespace-uri()='']");

ContainerPro1 is my incoming schema ie XMLInputFile1  Root name.

ACTSEQ is a child field element node, whose value i need to show as an output file name.

I am using custom SendPipeline with Flat File assembler. and %SourceFileName%.txt in the sendport file name configuration, but I get the following error:

There was a failure executing the send pipeline: "Testver7Schemas.SendPipeline1, Testver7Schemas, Version=1.0.0.0, Culture=neutral, PublicKeyToken=95070596c425719e" Source: "Flat file assembler" Send Port: "Testver7SendPort" URI: "F:\Biztalk\BizTalk\ProjectExperiment\Testver7OwnSolution\Target\%SourceFileName%.txt" Reason: This Assembler cannot retrieve a document specification using this type: "ACTSEQ".

This error is not due to multiple assemblies, as it run perfectly if i remove Message Assignment.

I haven't specified Target Namespace, if i specify it, i again get some other errors with receive pipeline. I tried to use different pipelines too, but of no use.
 

But when i  use PassthruPipeline i get the output but file name as %SourceFileName%.txt, and file output text is also wrong, which i don't want.

Please could you guide me where is the error, and what is the solution in details , as i am new to Biztalk so finding it difficult to get the result.

Is there any solution that i can get the file name same as my input file name. Example i have an input file name say: "input_234.xml" , so can i get the same file name as my output file name like "input_234.txt" . if i can do this it would be fine.

Thanks once again. Hope to get a positive and quick response from your side.

Gaurav Garg