Processing FlatFile On TN

Hi All
I am Trying To Create a Flatfile Document Type in TN COnsole When I create a FF Document Type .I test For Document Type match i refer to flatfile its showing

There was an error in trying to get XML header information (DOCTYPE and DTD). The document is probably not valid XML.

Any Help Appreciated

How did you create document type as Flat File in TN?

Also how did you route the flat file usingg routeFlatFile and all identifiers,stream object to TN?

HTH,
RMG

Please review the TN documentation. It provides the steps for setting up and processing flat files.

I have created flatfile TN DocumentType on TN COnsole.
In Developer I created a Gateway flow service in that i have used gateway service specification for that i have given flatfile as input to ffdata variable and also specified the Required TNparams like sender id, receiver id and then i used TN built in service to route the flatfile to TN

I read the Documentation But i am:confused::confused:

In TNparams you need to specify the TN doc type.

Set these exact same fields under the TNparams in the routeFlatFile service step for doc type/profile recognition etc…

TNparams/
[COLOR=#0000ff]DoctypeName
SenderID
ReceiverID
[/color]

[B][/b]HTH,
RMG

Hi i have given Document type name also But i am not
i have created one flat file using convert to string Service
the same flat file only am sending to TN
i used gateway service specificatn
for that i have given flatfile as input
TN Params i have specified
I have created one flatfile TN document type
i used same flatfile to test TN document type but it is showing error
that the document is not in valid xml form

please give any hints

Also are you doing string to stream object conversion and then sending it via routeFlatfile?

Make sure the doc type you created in TN is not XML type:

HTH,
RMG

I Input the flafile as Stream only and also TN Document type as flatfile only
then also am not getting

Hi Prachi,

I have recently implemented what you are trying.

Steps that i have followed.

  1. Read the file as bytes and call the EDIINT:send service.
  2. Map the bytes to content in EDIINT:send service and provide the sender is and receiver ID.
  3. Also, set the content type to application/csv.

Try this thing , if it doesnt work out then i’ll mail you the sample code.

Thanks,
Amit

“Read the file as bytes and call the EDIINT:send service”

You should convert it to stream object only and EDIINT:send.

HTH,
RMG

you can go through TN documentation to get the solution. Even i have learned something from documentation.

you bet:

i created one flatfile DocumentType in TN and i tried to check the Document type with respect to flatfile its showing following error

ErrorMessage:
TRNCONS.000030.000016
ERROR






DocTypePanel
TestAction
Wed Jun 08 14:44:41 GMT+05:30 2011
There was an error in trying to get XML header information (DOCTYPE and DTD). The document (m1c0ib0061n8gefs0000001q) is probably not valid XML.


com.wm.ui2.UiException: wm.tn.doctype:getAllMatches

com.wm.app.tn.doc.CorruptXMLException There was an error in trying to get XML header information (DOCTYPE and DTD). The document (m1c0ib0061n8gefs0000001q) is probably not valid XML.

null
wm.tn.doctype:getAllMatches
com.wm.app.tn.doc.CorruptXMLException There was an error in trying to get XML header information (DOCTYPE and DTD). The document (m1c0ib0061n8gefs0000001q) is probably not valid XML.

null
null

com.wm.ui2.UiException: wm.tn.doctype:getAllMatches

com.wm.app.tn.doc.CorruptXMLException There was an error in trying to get XML header information (DOCTYPE and DTD). The document (m1c0ib0061n8gefs0000001q) is probably not valid XML.

at com.wm.ui2.UiException.handle(UiException.java:215)
at com.wm.ui2.UiException.handle(UiException.java:184)
at com.wm.app.tn.ui.Server.invoke(Server.java:388)
at com.wm.app.tn.ui.doctype.DocTypePanel$10$1.run(DocTypePanel.java:397)



wm.tn.doctype:getAllMatches

com.wm.app.tn.doc.CorruptXMLException
There was an error in trying to get XML header information (DOCTYPE and DTD). The document (m1c0ib0061n8gefs0000001q) is probably not valid XML.

com.wm.app.tn.doc.CorruptXMLException: There was an error in trying to get XML header information (DOCTYPE and DTD). The document (m1c0ib0061n8gefs0000001q) is probably not valid XML.

at com.wm.app.tn.doc.CorruptXMLException.badXmlHeader(CorruptXMLException.java:89)
at com.wm.app.tn.doc.XMLDocType.checkDocType(XMLDocType.java:289)
at com.wm.app.tn.doc.XMLDocType.recognize(XMLDocType.java:253)
at com.wm.app.tn.doc.BizDocTypeReg.recognize(BizDocTypeReg.java:336)
at com.wm.app.tn.doc.BizDocTypeReg.recognizeAll(BizDocTypeReg.java:457)
at wm.tn.doctype.getAllMatches(doctype.java:392)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:439)
at com.wm.app.b2b.server.invoke.InvokeManager.process(InvokeManager.java:635)
at com.wm.app.b2b.server.util.tspace.ReservationProcessor.process(ReservationProcessor.java:46)
at com.wm.app.b2b.server.invoke.StatisticsProcessor.process(StatisticsProcessor.java:44)
at com.wm.app.b2b.server.invoke.ServiceCompletionImpl.process(ServiceCompletionImpl.java:232)
at com.wm.app.b2b.server.invoke.ValidateProcessor.process(ValidateProcessor.java:51)
at com.wm.app.b2b.server.invoke.PipelineProcessor.process(PipelineProcessor.java:171)
at com.wm.app.b2b.server.ACLManager.process(ACLManager.java:266)
at com.wm.app.b2b.server.invoke.DispatchProcessor.process(DispatchProcessor.java:30)
at com.wm.app.b2b.server.AuditLogManager.process(AuditLogManager.java:384)
at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:539)
at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:384)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:226)
at com.wm.app.b2b.server.comm.DefaultServerRequestHandler.handleMessage(DefaultServerRequestHandler.java:119)
at com.wm.app.b2b.server.HTTPMessageHandler.process(HTTPMessageHandler.java:160)
at com.wm.app.b2b.server.HTTPDispatch.handleRequest(HTTPDispatch.java:190)
at com.wm.app.b2b.server.Dispatch.run(Dispatch.java:354)
at com.wm.util.pool.PooledThread.run(PooledThread.java:131)
at java.lang.Thread.run(Thread.java:619)

any valuable suggestion will be great help!!!

i have attached the gateway service that i tried to send flatfile to TN please let me know what are the faults
SendFlatFile.zip (6.17 KB)

we will see if time allows:…

But can you describe the logic you have put in place and errors you are getting:

HHT,
RMG

Hi Amit I tried But it s not working Can you please send me the sample code:sad:

Seems you are in a wrong site/thread…