web stats
MDM filenam - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 06-21-2012, 02:41 AM
RonnyW RonnyW is offline
Mirth Newb
 
Join Date: Aug 2010
Posts: 9
RonnyW is on a distinguished road
Angry MDM filenam

Hello @ all,

i am at the end of my nervs. I need to build an MDM, so I need the filename of the PDF.
I searched and searched and the only result i get is "use $('originalFilename')".

So i have only one transformer with onyl one line
Code:
var file_name = $('originalFilename');
But what is thr result? I get an error like:

[2012-06-21 11:38:24,044] ERROR (com.mirth.connect.connectors.file.FileMessageRece iver:234): Unable to route.org.mule.umo.routing.RoutingException: Failed to transform message before applying the filter. Failed to route event via endpoint: ImmutableMuleEndpoint{connector=com.mirth.connect. connectors.file.FileConnector@1964a90, endpointUri=file://D:/HL7/testRW, transformer=Transformer{name='ByteArrayToString', returnClass=false, returnClass=false, sourceTypes=[class [B, class java.lang.String]}, name='_fileEndpoint#1887856890', type='receiver', properties={}, transactionConfig=org.mule.impl.MuleTransactionCon fig@54eb70, filter=null, deleteUnacceptedMessages=false, initialised=true, securityFilter=null, synchronous=true, initialState=started, createConnector=0}. Message payload is of type: java.lang.String

If i delete the line, moving a file works, only getting the filename is the problem.
So please can someone find the failure and bring me back to right way of coding?

Sorry i know thats the wrong forum... please change to support.

Last edited by RonnyW; 06-21-2012 at 04:06 AM. Reason: wrong forum channel
Reply With Quote
  #2  
Old 06-27-2012, 02:11 AM
ami199102 ami199102 is offline
OBX.2 Kenobi
 
Join Date: May 2012
Location: India
Posts: 70
ami199102 is on a distinguished road
Default

It works for me.. no errors.
__________________
Amarnath. K
http://amarnathks.wordpress.com
Reply With Quote
  #3  
Old 12-28-2012, 01:46 AM
parfour parfour is offline
What's HL7?
 
Join Date: Apr 2011
Posts: 3
parfour is on a distinguished road
Default Same error

I am getting the same error in my transform with just a basic javascript line....did you get any answer?
Reply With Quote
  #4  
Old 12-28-2012, 09:25 AM
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 2,151
narupley is on a distinguished road
Send a message via AIM to narupley Send a message via Skype™ to narupley
Default

Quote:
Originally Posted by parfour View Post
I am getting the same error in my transform with just a basic javascript line....did you get any answer?
Can you post the channel you're using?
__________________
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

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 -7. The time now is 08:12 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Mirth Corporation