No announcement yet.

Error File is not reabable

  • Filter
  • Time
  • Show
Clear All
new posts

  • Error File is not reabable

    Hi all,

    We migrated from Mirth 2.2.1 from Mirth 3.0.3 and since we have alert mail with Channel File Reader Source => File Writer Destination:

    File is not readable.
    Jun 23, 2014 5:26:55 PM
    Source Connector (File Reader) error
    com.mirth.connect.connectors.file.FileConnectorException: File is not readable.
    	at com.mirth.connect.connectors.file.FileReceiver.processFile(
    	at com.mirth.connect.connectors.file.FileReceiver.processFiles(
    	at com.mirth.connect.connectors.file.FileReceiver.poll(
    	at java.util.TimerThread.mainLoop(Unknown Source)
    	at Source)
    However the files are processed correctly.

    Do you have an idea?


  • #2


    • #3


      • #4
        That happens when the File Reader comes across an entry that isn't readable due to OS permissions, or that isn't a file (like a symlink). Other valid files in the polling window will still process correctly.
        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.


        • #5

          Thanks for your response.

          The OS permissions is OK

          Seeking, I change various settings:


          - Polling frequency: 5'000ms
          - Check File age: 1'000ms


          - Polling frequency: 10'000ms
          - Check File age: 3'000ms

          And since I have no error, why?

          System OS latence?
          Lock copy source file?

          I do not know...



          • #6

            We have this same problem happening with version 3.2.1.

            It is definitely not a problem of file permissions, as the various directories concerned are filled with files by one single application each, or by copying manually files to these directories.

            I have currently one characteristic situation that makes this error appear:
            When copying/writing a large amount of files (several hundred) at once, have them processed, and during the processing adding more files to the directory makes this error message appear numerous times.
            It looks like the growing and falling number of files causes trouble.

            Symlinks are not involved (but possibly subdirectories, still investigationg this one).
            JJ Mouris
            FFE Luxembourg


            • #7
              NOt able to Move file using FileUtils ; getting error

              Hello Narupley,

              Greetings for the day !!.

              I am trying to move a file from one location to another location if it fails on header validation .

              Because the file is containing more than 10,000 records and i have enabled batch processing.

              If header of file is wrong , i dont want it to iterate through entire 10,000 records and want to move file on header level validation .

              I am trying to use FileUtils.moveFile(src,dest) , but its throwing below error.

              Can you please help me in this , how can i make it sucessfull here .

              You mostly help all , i do expect help here .

              I am not able to attach my chanel .

              [2015-07-30 20:36:41,398] ERROR (postprocessor:?): :: Message Errored BecauseJavaException: Failed to delete original file 'C:\Users\Admin\Documents\MirthExamples\csvexample s\File Reader\processed_30-07-15_19-22-42.483.csv' after copy to 'C:\Users\Admin\Documents\MirthExamples\csvexample s\error\20150730083641.csv'


              • #8

                I have again the same problem with Mirth

                Error: Source Connector (File Reader) error
                com.mirth.connect.connectors.file.FileConnectorExc eption: File is not readable.
                at cessFile(
                at cessFiles(
                at com.mirth.connect.connectors.file.FileReceiver.pol l(
                at torJob.execute(
                at 13)
                at org.quartz.simpl.SimpleThreadPool$ (

                Error Message: File is not readable.
                Error Type: Source Connector
                Channel ID: 976fd088-aec1-42f1-ae4e-23bb0c5eb32b
                Connector Name: Source
                Connector Type: File Reader

                But The files are processed correctly.

                How to prevent this errors? A Mirth Bug?



                • #9
                  Solved my issue

                  I had my file locations (to poll) setup in the configuration map.

                  the polling location had a "space" at the end of the path that I did not notice right away.

                  BEFORE: "//servernametest/data2 "

                  I removed the space from the entry in the Configuration Map and boom ! was not getting that error message.

                  AFTER: "//servernametest/data2"