web stats
.ignore blocks file processing for ever - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 05-11-2017, 12:26 AM
mdehoog mdehoog is offline
Mirth Guru
 
Join Date: Mar 2011
Location: Apeldoorn the Netherlands
Posts: 301
mdehoog is on a distinguished road
Send a message via Skype™ to mdehoog
Default .ignore blocks file processing forever

On our MC sometime a .ignore file is created when a PDF file cannot be accessed by Mirth. That's ok.

But the pdf will never be processed anymore as long as the related .ignore file is present. If we remove the .ignore manually the pdf is processed without any problems.

Is there a solution to restart this processing of the pdf file without MANUALLY remove the ignore file??

MC 3.4.2
Windows Server 2012
Java 1.7
__________________
X Connections
https://documentor.email
https://www.x-connections.com

Last edited by mdehoog; 05-11-2017 at 01:04 AM.
Reply With Quote
  #2  
Old 05-11-2017, 01:58 AM
mdehoog mdehoog is offline
Mirth Guru
 
Join Date: Mar 2011
Location: Apeldoorn the Netherlands
Posts: 301
mdehoog is on a distinguished road
Send a message via Skype™ to mdehoog
Default File Reader does not process .ignore

I created a channel which should process .ignore files because I selected Ignore . files = No.

But this channel will not process *.ignore files.

See enclosed channel (MC 3.5)
Attached Files
File Type: xml remove ignore files.xml (65.1 KB, 4 views)
__________________
X Connections
https://documentor.email
https://www.x-connections.com
Reply With Quote
  #3  
Old 05-11-2017, 11:45 PM
mdehoog mdehoog is offline
Mirth Guru
 
Join Date: Mar 2011
Location: Apeldoorn the Netherlands
Posts: 301
mdehoog is on a distinguished road
Send a message via Skype™ to mdehoog
Default

My mistake. The option is NOT for 123.ignore files, but for .123 files
__________________
X Connections
https://documentor.email
https://www.x-connections.com
Reply With Quote
  #4  
Old 05-12-2017, 06:20 AM
narupley's Avatar
narupley narupley is offline
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,126
narupley is on a distinguished road
Default

The File Reader shouldn't be creating .ignore files, unless you've specified that in the move action. Most likely it's not MC creating those but instead the remote file server or some automated process on said server.
__________________
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.
Reply With Quote
  #5  
Old 05-12-2017, 11:03 AM
mdehoog mdehoog is offline
Mirth Guru
 
Join Date: Mar 2011
Location: Apeldoorn the Netherlands
Posts: 301
mdehoog is on a distinguished road
Send a message via Skype™ to mdehoog
Default

That's new to me.
How to specify the creation of an .ignore file in the move action?
__________________
X Connections
https://documentor.email
https://www.x-connections.com
Reply With Quote
  #6  
Old 05-12-2017, 11:09 AM
narupley's Avatar
narupley narupley is offline
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,126
narupley is on a distinguished road
Default

Quote:
Originally Posted by mdehoog View Post
That's new to me.
How to specify the creation of an .ignore file in the move action?
For example if you set the After Processing Action to Move, and set the Move-to File Name to ${originalFilename}.ignore.
__________________
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.
Reply With Quote
  #7  
Old 05-12-2017, 11:22 AM
mdehoog mdehoog is offline
Mirth Guru
 
Join Date: Mar 2011
Location: Apeldoorn the Netherlands
Posts: 301
mdehoog is on a distinguished road
Send a message via Skype™ to mdehoog
Default

That makes sense but it is not what I did.
The channel, file reader is just reading a pdf file and I did use set the After Processing Action to Move, and set the Move-to File Name to ${originalFilename}. Not .ignore.
Before the file reader processes the pdf file, I opened the pdf file in the adobe reader and the file reader is trying to process the pdf file.
It does move the file but leaves the original pdf on the original location also and it creates the pdf.ignore file in the original location. It looks like it is how it should work, isnt it?
__________________
X Connections
https://documentor.email
https://www.x-connections.com
Reply With Quote
  #8  
Old 05-13-2017, 12:23 AM
odo odo is offline
OBX.3 Kenobi
 
Join Date: Feb 2017
Location: Luxembourg
Posts: 165
odo is on a distinguished road
Default

Quote:
Originally Posted by narupley View Post
The File Reader shouldn't be creating .ignore files, unless you've specified that in the move action. Most likely it's not MC creating those but instead the remote file server or some automated process on said server.
There are indeed situations where the file reader creates those .ignore files. This happens if a move or delete action has been configured but the file reader is unable to move or delete the processed files (e.g. due to missing permissions).

Thus, if you want to avoid having such .ignore files created, assure that the user under which the mirth service runs has the appropriate permissions to fulfill the move or delete action you have configured for the file reader.
Reply With Quote
  #9  
Old 05-13-2017, 12:31 AM
mdehoog mdehoog is offline
Mirth Guru
 
Join Date: Mar 2011
Location: Apeldoorn the Netherlands
Posts: 301
mdehoog is on a distinguished road
Send a message via Skype™ to mdehoog
Default

Thks Will givecit a try
__________________
X Connections
https://documentor.email
https://www.x-connections.com
Reply With Quote
  #10  
Old 05-13-2017, 06:45 AM
narupley's Avatar
narupley narupley is offline
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,126
narupley is on a distinguished road
Default

Quote:
Originally Posted by odo View Post
There are indeed situations where the file reader creates those .ignore files. This happens if a move or delete action has been configured but the file reader is unable to move or delete the processed files (e.g. due to missing permissions).

Thus, if you want to avoid having such .ignore files created, assure that the user under which the mirth service runs has the appropriate permissions to fulfill the move or delete action you have configured for the file reader.
Pretty sure that's on the OS side, not Mirth Connect. It's just using the standard File.renameTo method:

Quote:
Many aspects of the behavior of this method are inherently platform-dependent
__________________
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.
Reply With Quote
Reply

Tags
.ignore, pdf

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 09:04 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Mirth Corporation