BizTalk Server Orchestration - Specify a filename inside the Orchestration?!!

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > April 2005 > Specify a filename inside the Orchestration?!!





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 Specify a filename inside the Orchestration?!!
Kamal

2005-04-12, 5:53 pm

Hi All,

Anyone knows how to assign the output message a filename from the
orchestration.

there is a property inside the message which I would like to extract its
value and include it in the file name like:

the property name is
<BatchNumber>
<Date>
<Time>

I would like the file name to be like :
MyTestFileName_BatchNumber_Date_Time.CSV

Any help or direction would be very much appreciated. it's quite urgent.

Thank you soo much and hope to hear from you VERY SOON.


Kamal


Kamal

2005-04-13, 7:58 am

I've done exactly as it says but everytime I deploy the assembly, start the
orchestration and ports, all I get is the original name of the File.

So if the input file is called Test.xml. the output file would still be
Test.xml. all the format and functions etc are correctly done but the only
problem is with the File name!

In my Orchestration, I have 2 Transform shapes and an Message Assginment
shape, the first apply Map1 and the second apply Map2 and the
MessageAssignment is assigning the file name to the file!!!

Note: The ports are one way static ports!

I'm not quite sure where Im going wrong, please help!!

Is there anything that need to be installed or property to be set before
doing this?

Thank you.

Kamal



"Deepak" <anonymous@discussions.microsoft.com> wrote in message
news:0a5801c53f73$b1449d20$a501280a@phx.gbl...[vbcol=seagreen]
> Hi,
>
> It's quite easy to achive what you want to do in BTS 2004.
>
> You might want to check out Stephen's Excellent article
> on this
>
> http://geekswithblogs.net/sthomas/a...004/11/13/14949
> .aspx
>
> Hope this helps
>
> Deepak
> http://deepakl.blogspot.com
>
>
>
> from the
> like to extract its
> it's quite urgent.


Saravana Kumar

2005-04-13, 7:58 am

Hello Kamal,

If you are not using Dynamic ports, The values you set in the Orchestraion
will be over written by the Send Port Configuration values.

The only option in Static Send ports configuration is to use the macros
example (%SourceFileName%), but this is not going to solve your problem.

-
Cheers
Saravana [MCP - Biztalk Server 2004]
http://saravanakumarmv.blogspot.com

"Kamal" <kali@bca-group.comNOSPAMPLEASE> wrote in message
news:OAdGZ3AQFHA.1884@TK2MSFTNGP15.phx.gbl...
> I've done exactly as it says but everytime I deploy the assembly, start
> the
> orchestration and ports, all I get is the original name of the File.
>
> So if the input file is called Test.xml. the output file would still be
> Test.xml. all the format and functions etc are correctly done but the only
> problem is with the File name!
>
> In my Orchestration, I have 2 Transform shapes and an Message Assginment
> shape, the first apply Map1 and the second apply Map2 and the
> MessageAssignment is assigning the file name to the file!!!
>
> Note: The ports are one way static ports!
>
> I'm not quite sure where Im going wrong, please help!!
>
> Is there anything that need to be installed or property to be set before
> doing this?
>
> Thank you.
>
> Kamal
>
>
>
> "Deepak" <anonymous@discussions.microsoft.com> wrote in message
> news:0a5801c53f73$b1449d20$a501280a@phx.gbl...
>
>



Kamal

2005-04-13, 5:53 pm

Im using static port. and using the macro specified (%SourceFileName%)!!

I've created a new project with a single Transform shape and different
schemas and a map and it worked fine with one problem is that it will always
produce 2 files. one with the name specified inside the orchestration and
the other with the original name of the input file!!!!



"Saravana Kumar" <saravana@hotmail.co.uk> wrote in message
news:OUvW4jCQFHA.3544@TK2MSFTNGP12.phx.gbl...
> Hello Kamal,
>
> If you are not using Dynamic ports, The values you set in the Orchestraion
> will be over written by the Send Port Configuration values.
>
> The only option in Static Send ports configuration is to use the macros
> example (%SourceFileName%), but this is not going to solve your problem.
>
> -
> Cheers
> Saravana [MCP - Biztalk Server 2004]
> http://saravanakumarmv.blogspot.com
>
> "Kamal" <kali@bca-group.comNOSPAMPLEASE> wrote in message
> news:OAdGZ3AQFHA.1884@TK2MSFTNGP15.phx.gbl...
only[vbcol=seagreen]
>
>



Kamal

2005-04-14, 7:47 am

Appreciate your help but I'm converting my messages into FLAT FILEs. do you
think that may cause any problem?

I have tried yr project, it works fine but mine are more complicated.

the test project is converting the xml schema into Flat file before
assigning the file name. this produces two files one with the original file
name and the second with the name specified in the orchestration!!!

the second one which is the important one is converting into a csv and then
applying another map to add extra values etc.. this produce a single file
with the name of the original file!!

in its orchestration you will have a receive port, receive shape, a tranform
then another transform then a message assignment and then a send shape and
then a send port!!!!




"Saravana Kumar" <saravana@hotmail.co.uk> wrote in message
news:%23L3hZKEQFHA.688@TK2MSFTNGP14.phx.gbl...
> No It won't produce two files, thats completely wrong, because in a real
> time system if something like this happens that means you are sending
> duplicate record(message).
>
> I've put an example to demonstrate your solution. its working file
>
> 1. Just extract the zip file to c:\ (C:\AssignFileName);
> 2. Build, deploy, start the orchestration (its all early binding so it
> should create all the required ports automatically)
> 3. drop the sample file RFQ_Output.xml inside the folder
> C:\AssignFileName\Assing File Name\Receive
> 4. you should see the output file under the folder

C:\AssignFileName\Assing

> File Name\send with the filename saravanaService_0.xml, where
> saravana - hardcoded value inside the orch
> Service_0 - picted up from the message <Service> element
>
> HTH
> --
> Cheers
> Saravana [MCP - Biztalk Server 2004]
> http://saravanakumarmv.blogspot.com
>
> "Kamal" <kali@bca-group.comNOSPAMPLEASE> wrote in message
> news:%23eJAqsDQFHA.2356@TK2MSFTNGP14.phx.gbl...
(%SourceFileName%)!![vbcol=seagreen]
and[vbcol=seagreen]
problem.[vbcol=seagreen]
start[vbcol=seagreen]
be[vbcol=seagreen]
>
>
>



Kamal

2005-04-14, 5:53 pm

Thank you so much mate. I've sorted it. i was setting up the same thing
twice when i can always set it inside the orchestration..

Very pleased with the result. Thanks everyone! :o)

Kamal


"Kamal" <kali@bca-group.comNOSPAMPLEASE> wrote in message
news:%23Cy2$8NQFHA.3356@TK2MSFTNGP12.phx.gbl...
> Appreciate your help but I'm converting my messages into FLAT FILEs. do

you
> think that may cause any problem?
>
> I have tried yr project, it works fine but mine are more complicated.
>
> the test project is converting the xml schema into Flat file before
> assigning the file name. this produces two files one with the original

file
> name and the second with the name specified in the orchestration!!!
>
> the second one which is the important one is converting into a csv and

then
> applying another map to add extra values etc.. this produce a single file
> with the name of the original file!!
>
> in its orchestration you will have a receive port, receive shape, a

tranform
> then another transform then a message assignment and then a send shape and
> then a send port!!!!
>
>
>
>
> "Saravana Kumar" <saravana@hotmail.co.uk> wrote in message
> news:%23L3hZKEQFHA.688@TK2MSFTNGP14.phx.gbl...
> C:\AssignFileName\Assing
> (%SourceFileName%)!!
> and
macros[vbcol=seagreen]
> problem.
> start
File.[vbcol=seagreen]
still[vbcol=seagreen]
> be
the[vbcol=seagreen]
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com