03-01-06 12:55 PM
Troy,
In your orchestration, within a message assignment shape, do you have a stat
ement
like MyResponse_Xml(FILE.ReceivedFileName) = MyRequest_Xml(FILE.ReceivedFile
Name);
That will set the file name to the file you originally received, you can
set the file name to whatever you want like this.
What I usually do in my port is "%SourceFileName%_%messageid%.xml" for my
output file so its always unique.
BA
http://biztalkia.blogspot.com/
> I have been trying for days to figure out how to specify the name of
> the file that gets written by an orchestration to a send port.
>
> I've tried using the %SourceFileName% macro, and stopped and restarted
> the macro and the BizTalk service over and over, but all I get is a
> file named "%SourceFileName%".
>
> My scenario:
> - My orchestration is very simple: Just a static FILE receive
> (late-bound),
> a Transform (with a map that translates a flat file to XML), and a
> static
> FILE send shape (also late-bound).
> - The map is fairly complex, but I wouldn't think that that would
> matter.
> - The receive port uses a simple custom pipeline (with nothing but a
> flat
> file disassembler), and the send port uses the standard XML pipeline.
> Since both the receive shape and the send shape are FILE type,
> shouldn't %SourceFileName% work? I must be missing something very
> simple.
>
> (Once I can get the send port to respect %SourceFileName%, I don't
> think I'll have any trouble using a distinguished field to build my
> own filename.)
>
> Thanks,
> Troy
[ Post a follow-up to this message ]
|