Help needed in transering a file thru Biztalk 2006 with a different extension.

Home Page Forums BizTalk 2004 – BizTalk 2010 Help needed in transering a file thru Biztalk 2006 with a different extension.

Viewing 1 reply thread
  • Author
    Posts
    • #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]

       

       

    • #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:

      http://www.biztalkgurus.com/blogs/biztalk/archive/2005/08/01/How-To-Prepend-to-the-SourceFileName-in-BizTalk-Sample.aspx

         I hope this helps… Good luck!

       

         Daniel.

       

      • #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.

         

         

         

         

         

         

         

        • #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.

           

        • #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,

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.