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

#16893

Hi,
i read your description abt %SourceFileName%. i tried the following in the Expression Editor using Message Assignment in Orchestration. I have a query:
I have created a send message "Testver7SendMsgInc"
and receive message named "Testver7RecMsgInc"

When i type the following code in the Expression Editor
Testver7SendMsgInc = Testver7RecMsgInc;

i get the following error:
Cannot implicitly convert type 'message Testver7Schemas.XMLInputFile1' to 'message Testver7Schemas.FlatFileSchema1'

And below it when i type:
Testver7SendMsgInc(FILE.ReceivedFileName) = System.Convert.ToString(Testver7RecMsgInc.ACTSEQ);

I get the following error:
identifier 'ACTSEQ' does not exist in Testver7RecMsgInc'; are you missing an assembly reference?

ACTSEQ is my child field element.
Well one thing i would to tell you is that my input schema ie XMLInputFile1 and output schema ie FlatFileschema1 and and map are in one project while orchestration which has both Testver7SendMsgInc and Testver7RecMsgInc in another project in the same solution. I have referenced my schema project in the orchestration project.
Pls tell me what is the problem.  and solution.
Basically i want to get the value of ACTSEQ ie is a child field element, which i am getting from an XML file, to be shown as a name in my output file ie is a .txt file.

Thanks, waiting for ur reply.

My email id : [email protected]
Gaurav Garg