Hi
I am working on an orchestration where i want to receive a binary file with a specific filename from a receivelocation.
I want to move the specific file leaving the other files untouched.
Is it in any way possible to filter on filename in the receive shape, or is there a smarter way to do it ?
If it is possible, can it be done dynamically e.g. by an expression, variable etc.
Hi,The good news is that if you want to pass a binary file to another location, you don't need an orchestration. You simply use Message Based Routing to move the binary.There are a couple of things you have to beware of:- to move binaries you 'll have to use the Pass Through pipelines on both the Receive Location and the Send Port- most convinient is to create another Receive Port/Location
Lex Hegt http://biztalkia.blogspot.com/
If you can get away without using an orchestration, then go with Lex's suggestion.
If you do find that you need an orchestration, does the Receive Location's File Mask not provide the level of granularity that you need? You should be able to put in a file mask that should pick up only the type of file(s) that you are interested in
It is because i want to route binary file to a folder based on information extracted from the filename.
I found a usable way to do it. Using passthrutransmit on both the receive and send port, and using XmlDocument as messagetype, it is possible take in a binaryfile in an orchestration leaving it untouched.
I am using late binding (specify later) on my orchestration, and used an expression to extract information from the file name
someMessage(File.ReceivedFileName) // Filename
Receiving the file name works fine this way, but to set the outputfilename you need a Dynamic Send Port in your orchestration. Next you use an Expression Shape to set the Base Address on that port. The syntax looks as follows:
SomeSendPort(Microsoft.XLANGs.BaseTypes.Address) = "FILE://SomeFolder/" + YourBinaryFile;Hope this helps.
Hi,
Did you find any resolution for the problem?
If so can you please send the details.....
Thanks in advance