I am trying to copy a file to 2 directories based on the filename

Home Page Forums BizTalk 2004 – BizTalk 2010 I am trying to copy a file to 2 directories based on the filename

Viewing 1 reply thread
  • Author
    Posts
    • #22832

      Hi,

                 i am new to Biztalk, I need to create an orchestration that does the following

      • Check the filename (flat file), if the filename contains “OUT” then move it to OUT directory else move it to “Other” directory.

      Can somebody help me with this?

      I have done the following

      • Created a flat file schema (did not map any of the fileds within it)
      • Create a RecievePipeline wiht flatfile disassembler
      • Within an Orchestration, I did the following
        • Created a Receive Port
        • Created a Receive Message
        • Put a Decide block
        • I have 2 send ports based on the filename I assign ot 2 diif ports
      • After doing the following, I deplyed the app in Biztalk, In the Recieve location If I set the “ReceivePipleLine” to “PassThrough”, I get an error “he published message could not be routed because no subscribers were found. This error occurs if the subscribing orchestration or send port has not been enlisted”. If I set it to “XMLTransform” the files get moved to the specific directory but the file is in the XML format.

      Can somebody please help me with this?

    • #22833

      Do I need to have a SendPipeline with a flatfile assembles?

      • #22834

        By creating the sendpipeline, I can create a txt file, but every record in the Input file is converted into an output file. I just want to copy the incoming file and send it through the Send port. How do I set my schema file for this?

        • #22843

          I got it working, I had to set the maxoccurs = unbounded in the schema file

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