|
Home > Archive > BizTalk Server Applications Integration > June 2004 > Changing a Flat File Name
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Changing a Flat File Name
|
|
| jaevans 2004-06-08, 12:00 am |
| I would like to assign a Flat File Name within my orchestration as described above, however I am not very familiar with Orchestration and am unsure how to implement it.
Could you give a more step by step guide on how to "add an assignment for your output message and put the new filename into the file properies like this: Message_Out(FILE.ReceivedFileName) = Variable_Name"
I currently have a very simple orchestration consisting only of two Biztalk Messaging Ports one to read the source file in and the other to send the message to a biztalk channel. (This is later to be extended to send the source file to multiple channel)
Thanks in advance for your help,
J
----------------------------------------------
sent via http://www.biztalkug.com
all about BizTalk
| |
| Christof 2004-06-08, 12:00 am |
| Use an expression shape to assign that context to your message.
The "Message_Out" must be replaced by your own message name. Don't worry:
you have intellisense available :-)
Kind regards,
Christof
"jaevans" <jaevans@christies.com> wrote in message
news:81cae49999f8413aba60729725d6a39e@bi
ztalkug...
> I would like to assign a Flat File Name within my orchestration as
described above, however I am not very familiar with Orchestration and am
unsure how to implement it.
>
> Could you give a more step by step guide on how to "add an assignment for
your output message and put the new filename into the file properies like
this: Message_Out(FILE.ReceivedFileName) = Variable_Name"
>
> I currently have a very simple orchestration consisting only of two
Biztalk Messaging Ports one to read the source file in and the other to send
the message to a biztalk channel. (This is later to be extended to send the
source file to multiple channel)
>
> Thanks in advance for your help,
> J
>
>
> ----------------------------------------------
> sent via http://www.biztalkug.com
> all about BizTalk
| |
| Mo4Man 2004-06-09, 8:31 am |
| I am trying to set the context in an orchestration and am not getting any joy. I'm using one FTP adapter to receive the message and one to send but it seems to lose the %SourceFileName% everytime the file comes out the end and uses a system-generated file
name.
Any ideas welcome...
| |
| Christof 2004-06-09, 8:31 am |
| The FTP adapter does not support the %SourceFileName% macro.
You should use a dynamic port to set filenames.
Kind regards,
Christof
"Mo4Man" <anonymous@discussions.microsoft.com> wrote in message
news:7E7FBD40-519D-4C85-B4F3-6D3664424ECC@microsoft.com...
> I am trying to set the context in an orchestration and am not getting any
joy. I'm using one FTP adapter to receive the message and one to send but it
seems to lose the %SourceFileName% everytime the file comes out the end and
uses a system-generated file name.
>
> Any ideas welcome...
| |
| Mo4Man 2004-06-09, 8:31 am |
| Thanks Christoff, please could you expand on this though? Would you be able to provide an example please?
I'm sure that many people have a need to pick up a file using FTP adapter, process through an orchestration, and send to another location using the FTP adapter, with the output file's name being the same as the input file. If this can be done another way
I would appreciate some guidance, as essentially this is all we require.
Many Thanks.
----- Christof wrote: -----
The FTP adapter does not support the %SourceFileName% macro.
You should use a dynamic port to set filenames.
Kind regards,
Christof
"Mo4Man" <anonymous@discussions.microsoft.com> wrote in message
news:7E7FBD40-519D-4C85-B4F3-6D3664424ECC@microsoft.com...
> I am trying to set the context in an orchestration and am not getting any
joy. I'm using one FTP adapter to receive the message and one to send but it
seems to lose the %SourceFileName% everytime the file comes out the end and
uses a system-generated file name.[vbcol=seagreen]
| |
| Christof 2004-06-09, 5:01 pm |
| I'm sorry, since I'm currently working on another sample, I will not be able
to create you one. However:
- use a dynamic send port in your orchestration
- use an expression shape to determine the sourcefilename from the context
of your incoming message (you'll have intellisense for this)
- use an expression shape to set the location for the dynamic send port, set
something like:
ftp://ftp.myserver.org/myftpdir/myf...ionfilename.xml
- further, you'll need to set the credentials and retry count as well on the
context of your outbound message (just use an expression shape for this as
well)
Hope this may give you a start!
Kind regards,
Christof
"Mo4Man" <anonymous@discussions.microsoft.com> wrote in message
news:113A4445-8BA7-472B-993C-8C58E54690AC@microsoft.com...
> Thanks Christoff, please could you expand on this though? Would you be
able to provide an example please?
>
> I'm sure that many people have a need to pick up a file using FTP adapter,
process through an orchestration, and send to another location using the FTP
adapter, with the output file's name being the same as the input file. If
this can be done another way I would appreciate some guidance, as
essentially this is all we require.
>
> Many Thanks.
>
> ----- Christof wrote: -----
>
> The FTP adapter does not support the %SourceFileName% macro.
> You should use a dynamic port to set filenames.
>
> Kind regards,
> Christof
>
>
> "Mo4Man" <anonymous@discussions.microsoft.com> wrote in message
> news:7E7FBD40-519D-4C85-B4F3-6D3664424ECC@microsoft.com...
getting any[vbcol=seagreen]
> joy. I'm using one FTP adapter to receive the message and one to send
but it
> seems to lose the %SourceFileName% everytime the file comes out the
end and
> uses a system-generated file name.
>
>
>
| |
| Mo4Man 2004-06-11, 5:44 pm |
| That's great thanks, I was going down that path, and have got now it working. Thanks for giving me some guidance!
----- Christof wrote: -----
I'm sorry, since I'm currently working on another sample, I will not be able
to create you one. However:
- use a dynamic send port in your orchestration
- use an expression shape to determine the sourcefilename from the context
of your incoming message (you'll have intellisense for this)
- use an expression shape to set the location for the dynamic send port, set
something like:
ftp://ftp.myserver.org/myftpdir/myf...ionfilename.xml
- further, you'll need to set the credentials and retry count as well on the
context of your outbound message (just use an expression shape for this as
well)
Hope this may give you a start!
Kind regards,
Christof
"Mo4Man" <anonymous@discussions.microsoft.com> wrote in message
news:113A4445-8BA7-472B-993C-8C58E54690AC@microsoft.com...
> Thanks Christoff, please could you expand on this though? Would you be
able to provide an example please?
process through an orchestration, and send to another location using the FTP
adapter, with the output file's name being the same as the input file. If
this can be done another way I would appreciate some guidance, as
essentially this is all we require.[vbcol=seagreen]
> You should use a dynamic port to set filenames.
> Christof
> news:7E7FBD40-519D-4C85-B4F3-6D3664424ECC@microsoft.com...
getting any[vbcol=seagreen]
> joy. I'm using one FTP adapter to receive the message and one to send
but it
> seems to lose the %SourceFileName% everytime the file comes out the
end and[vbcol=seagreen]
> uses a system-generated file name.
|
|
|
|
|