Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Help needed in transering a file thru Biztalk 2006 with a different extension.
- This topic has 5 replies, 1 voice, and was last updated 9 years, 3 months ago by
community-content.
-
AuthorPosts
-
-
September 24, 2009 at 5:38 AM #23305
Hi I am Binoy, I am new to biztalk. I have a requirement to transfer a file from a directory say example a.txt to a different directory with a new name say a.out. I have built a file to file transfer ports and %sourcefilename% macro copies the file, but it keeps the full name. ( I m not processing any data in the file, just tranfsering from one location to another with a change in extension).
Is there any macro i can get to use to get only the file name with out extension ? if not there, what is the best way to achive this. I belive creating an orchstration is an overkill to for such a simple transfer.
Please suggest the best method i can achive this. if there any link for an example that would be greate
My email id is : [email protected]
-
September 24, 2009 at 9:44 AM #23308
Hi Binoy,
To achieve what you want, you will likely need an orchestration and a C# Helper class. Have a look at this link:
I hope this helps… Good luck!
Daniel.
-
September 24, 2009 at 3:04 PM #23312
Many thanks Daniel, As i mentioned, the port is intended to transfer almost 500 -76000 files and is it a big overhead to have an orchstration for this work ? The project is to transfer similar 10-15 ond IBM project text files to a windows applicaiton server. Archiving also needed for each message.
Is there any way i can perform this with the help of pipe line ? Many thanks for your earlire help. if you get time, please let me know.
-
September 24, 2009 at 3:19 PM #23313
Hi Binoy,
Have a look at this tool then: http://www.atomic-scope.com/
You can download a trial version, but if you want to put this into production, you will have to purchase the product. I think this is suitable to your needs, as it can do archiving and does its work in the pipeline component, without an orchestration.
Daniel.
-
September 30, 2009 at 6:21 PM #23359
Hi Binoy,
Yes, you can achieve it using a pipeline. Develop a simple custom pipeline component that will change FILE.ReceivedFileName context property by removing a name extension from it. Then in your send port you can just use %SourceFileName%.out. Allow the pipeline component to be included in both receive and send pipelines. You need the pipeline at one end only, but it will give you more freedom on which side to use it at.
Because you don’t change messages (just passthru) the easiest way of archiving would be just another send port, subscribing everything you’ve received.
Regards,
-
October 1, 2009 at 8:07 PM #23373
Hi,
You can download the custome pipeline wizard from http://www.codeplex.com/btsplcw which can save you heaps of time.
Nandika
-
-
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.