web stats
Help with SMB Source Connector - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 05-24-2012, 09:58 AM
kmoss@ochonline.com kmoss@ochonline.com is offline
Mirth Newb
 
Join Date: May 2011
Posts: 10
kmoss@ochonline.com is on a distinguished road
Default Help with SMB Source Connector

I have a channel that pulls files from another server in my network.

My source connector is smb and it pulls the files just fine. What I would like to do is re-direct the otutput of the move-to and error move-to directories to a folder within the directories that is of format yyyy-MM and create the directory if it doesn't exist.

So I have tried placing
Code:
${date.get'yyyy-MM')
in the Move-to File Name. By the way this works for the file method just fine. It also works fine when using it in a destination connector.

The error I am getting is:
Code:
[2012-05-24 12:36:32,054]  ERROR (org.mule.impl.DefaultComponentExceptionStrategy:95): Caught exception in Exception Strategy for: 64564674-e293-4d49-a583-4d1a5244594c: org.mule.MuleException: Failed to move file "/groups/anesthesia/CPSI,TEST__CPSI25___103561.pdf" to "/groups/anesthesia/out/24-05-12_12-36-31.772/002b05c5-a5c7-11e1-8960-f8ce9ece1c9bCPSI,TEST__CPSI25___103561.pdf".  The file already exists.
org.mule.MuleException: Failed to move file "/groups/anesthesia/CPSI,TEST__CPSI25___103561.pdf" to "/groups/anesthesia/out/24-05-12_12-36-31.772/002b05c5-a5c7-11e1-8960-f8ce9ece1c9bCPSI,TEST__CPSI25___103561.pdf".  The file already exists.
	at com.mirth.connect.connectors.file.FileMessageReceiver.processFile(FileMessageReceiver.java:261)
	at com.mirth.connect.connectors.file.FileMessageReceiver.poll(FileMessageReceiver.java:118)
	at org.mule.providers.PollingMessageReceiver.run(PollingMessageReceiver.java:97)
	at org.mule.impl.work.WorkerContext.run(WorkerContext.java:290)
	at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
	at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
	at java.lang.Thread.run(Unknown Source)
Is this a bug or and oversight???

Any help would be apprecited.
Reply With Quote
  #2  
Old 05-24-2012, 10:08 AM
cory_cole cory_cole is offline
Mirth Guru
 
Join Date: Mar 2012
Posts: 1,360
cory_cole is on a distinguished road
Default

The error that you are getting is saying that the file already exists. You either need to overwrite the file, append to the file or write to a different file.

Last edited by cory_cole; 05-24-2012 at 10:13 AM.
Reply With Quote
  #3  
Old 05-24-2012, 10:09 AM
cory_cole cory_cole is offline
Mirth Guru
 
Join Date: Mar 2012
Posts: 1,360
cory_cole is on a distinguished road
Default

..

Last edited by cory_cole; 05-24-2012 at 10:13 AM.
Reply With Quote
  #4  
Old 11-16-2012, 09:23 AM
rsh rsh is offline
OBX.1 Kenobi
 
Join Date: Aug 2011
Posts: 31
rsh is on a distinguished road
Default

Did you ever find a solution to this?
Reply With Quote
Reply

Tags
smb, source connector

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 02:34 PM.


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