No announcement yet.

SFTP Reader in Mirth 3.4

  • Filter
  • Time
  • Show
Clear All
new posts

  • SFTP Reader in Mirth 3.4

    How do we set up a SFTP source Connector in Mirth 3.4?
    I do not see any option to do that. Please advice.


  • #2
    Use the File Reader, and choose the mode SFTP.
    Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

    Nicholas Rupley
    Work: 949-237-6069
    Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.

    - How do I foo?
    - You just bar.


    • #3
      If you do get this setup and the test connection works fine, what would cause this error below? I have tried to put it to the C: or other random drives. I have the location of Mirth Connect to try to test permission issues. Thoughts? Should I attach channel?
      [2017-01-16 14:27:03,723] ERROR (com.mirth.connect.connectors.file.FileReceiver:43 2): Error processing file in channel: d4d0ced8-1bd6-4bd0-b461-ee08a1ce74f6
      com.mirth.connect.connectors.file.FileConnectorExc eption: Error moving file from [//] to [C:/Program Files/Mirth Connect/docs//]
      at cessFile(
      at cessFiles(
      at com.mirth.connect.connectors.file.FileReceiver.pol l(
      at torJob.execute(
      at 13)
      at org.quartz.simpl.SimpleThreadPool$ (


      • #4
        You are not reading the file in binary mode. That's a zip file.
        HL7v2.7 Certified Control Specialist!


        • #5
          Even changing that, it did not change the error message. could it be the data types or Metadata causing issues? The datatypes are Delimited as that is what the unzipped file will be and the Metadata types are strings. The zip file is password protected, but from the error, it does not appear to be that as the issue.
          Attached Files


          • #6
            You really did assume that the file reader is going to unzip the files as well. That's not true. what you have to do is first pickup from sftp in binary, and write it to a local file directory, again in binary mode.
            Then you have to extract the contents of the zip file either manually or through a java method, to get to the actual delimited text content that you are talking about.
            HL7v2.7 Certified Control Specialist!


            • #7
              I was not at this point expecting it to unzip. I am trying to do this in sections to make sure each part works. I just stuck on getting the file to whatever location I specify in my file. I have the binary selected and see in the xml that its set to true, but its not getting the file at this point. Do you see any reason why this would not be able to grab the file from the location and move it to the location I have setup? The destination is the basic that Mirth sets up when you do not setup one yourself. I am just focusing on getting the file right now.