Special charactors found in out put file of .xml file in file adapter
Hi ,
Dear all,
I am working on Sender File adapter picking files from the multiple Directories which are specified in a single CC and these files are placed in the different receiver directories in different CC's metained paths of the receivers
The Souce is XML.
When I use the receiver format as .csv,.txt it the out put is as excepted,when i give the receiver format as .XML the output file contents:PK (An invalid character was found in text content. Error processing resource 'file:).
Pl let me know how to tackle thsi situation.
Thanks,
Srini
Hi
Also try with the following UDF.
public class XmlUtil {
char[] specialCharacters = { '&', '<'>', '\'' };
String[] replacementStrings = { "&", "<">", "'" };
public static String sanitizeText( String text ) {
StringBuffer buffer = new StringBuffer( text );
for( int i = 0; i < buffer.length(); i++ ) {
for( int k = 0; i < specialCharacters.length; k++ ) {
if( buffer.charAt(i) == specialCharacters[k] ) ) {
buffer.replace( i, i + 1, replacementString[k] );
i += replaceString[k].length;
} else if( (int)buffer.charAt(i) > 128 ) {
String replacement = "&#" + (int)buffer.charAt(i) + ";";
buffer.replace( i, i + 1, replacement );
i += replacement.length();
return buffer.toString();
Regards
Abhishek Mahajan
Similar Messages
-
Is it possible to export the out put of Crystal report into text file?
Hi All,
Is it possible to export the out put of Crystal report into text file?Hi
Yes, Go to File --> Export --> Export Report --> Under Format select TEXT & select the destination as "Disk file"(defaultly selected)
Give the proper details as per your requirement for "Characters per inch" & "Number of lines per page" & click on 'OK"
In "Choose Export file" window, select the destination folder & provide file name. click on "SAVE"
Regards
Ashwini -
Flat file to XML in SAP SFTP adapter
Hello All
I am trying to convert flat file to xml using SAP SFTP adapter.
Flat File is like below:
AABEN;20141106;20141106;45;0.00
AABOL;20141106;20141106;45;0.00
ABGRI;20141106;20141106;45;0.00
ADDEA;20141106;20141106;45;0.00
ALADA;20141106;20141106;45;58.43
AMSCH;20141106;20141106;45;0.00
ANOLV;20141106;20141106;45;0.00
ANROY;20141106;20141106;45;0.00
AVMCD;20141106;20141106;45;0.00
Message Type structure I created like below
In Server SFTP adapter in Module tab I am using "AF_Modules/MessageTransformBean" and conversion type ="StructPlain2XML"
I am getting error = "Error: com.sap.aii.af.sdk.xi.adapter.trans.TransformException: Transformer Conversion3.0.5226 Error initializing Class: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found (4408) Parameter 'xml.keyFieldName' is missing (4403) Parameter 'xml.keyFieldType' is missing (4403) ; nested exception caused by: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found (4408) Parameter 'xml.keyFieldName' is missing (4403) Parameter 'xml.keyFieldType' is missing (4403) "
I am not using any key field then please let me know how to overcome this issue.
I searched on SDN but did not get any perfect answer.
Thanks
Dheeraj KumarHello Dheeraj,
Thanks for your reply. I created a new discussion,
Flatfile to XML
Thanks well in advance for your help!
-Satish. -
Sending out put of failed query to a file in oracle
There are like million of insert statement.After each insert statement there is a commit.
I want to log the failed insert statements in a text file.Please help.Hello!
The INSERT statement I am using is:
INSERT INTO EVENTS_LOG VALUES ('VRU','I','N','91196',TO_Date('2007/04/09 00:00:02', 'YYYY/MM/DD HH24:MI:SS'),090407235913196,'5','CTC','SUBNO=1234567 CALLDUR=54 LANG=AR CATGRY=PKU SEGMENT= SOURCE=107 SUBSTATUS=30 SUBTYPE=POST SERVICE_ID=8','1234567','123000');
commit;
There are about millions of such INSERT statements.I am committing after each such insert.If the commit is at the end of the process this means, all the affected rows will be locked until the commit is done.
Actually, I am trying to insert these values in one table and there are triggers at the database which are updating other tables. Therefore, the commit must be after every statement to avoid any locking issues for other sessions.
So,now the problem arises if out of these millions insert statements, if there are few hundred failed INSERT statements.
So,I wanted to move these failed INSERT statements to a text file(just the failed INSERT statements).
As,I have said,spool is not of much use as it creates a log of all the inserts but I just want to have a log of failed INSERT statements.
I can not afford to create another table.Is it possible to somehow log failed statements in a text file.
I am working on oracle 9i so please suggest something. -
How can I convert pdf file to xml or html file.
Hello
My English ability is very poor. sorry.
I want to extract text and image from pdf file.
so, I try use itext. but.. I can't make what I want .
I searched pdfbox and jpedal.
but I can't get my solution.
Just I want to convert pdf to xml or html(html prefer).
I think pdfviewer is hint.
but I can't get full source(in jpedal)
Plz help.. me.....
Does anybody solve this problem?Stay in your old thread
[http://forums.sun.com/thread.jspa?threadID=5198647]
Don't multi/crosspost or your account will be locked. -
Run Clear Case command from java and save the out put in to a file.
Can any one help me out ...
I want to execute Clear case command from a java and want to save the out put of this command to a file.
I am naot able to find out how to start..
Message was edited by:
chandra_vermahttp://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
-
Hi All
I want the out put of a report in DOC file so that user can make changes in that report and then can print. this one is the requirement. but using a reports 9i the out put can be in PDF and HTML file. is this one possible that i can get the out put in DOC file. if yes can any one give me a hint how i can implement.
Thanks in Advancethanks its working. but when i am trying to open RTF file every time it appear a dialog box where i have to mention the target that i want to open in MS WORD or note pad. etc. may be because when i am using the command
WEBS('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)|| '?'||'server='|| :global.reportserver ,'_blank');
there is no extension. so it ask me every time. so how i have to fix this that if mention my Report Destination Format to RTF is should be opened in MS Word.
Thanks -
How to convert flat file to XMl without key field value
Hi experts,
I have a input CSV Flat file which has got one HEADER line and Multiple Detail records.
I do not have any key field value to convert this FLAT file to XML using normal file content conversion.
Is there any module or Bean which can be used to convert this Flat File to XML.
Or any other remedy to overcome this problrm.
Thanks in advance.
Regards
PradeepHi Saurabh,
Thanks for the reply.
Ur understanding is perfectly alright.Lets say my file is like below.
Account Number,Account Name,Currency,Unclear Balance,Account Balance010205000033,VAISHNAVI SALES CORPN,0.00,0.00,350000.00
010205000034,CHAKKA ENTERPRISES,0.00,-641350.47,8649.53
010205000035,SEHGAL TRADING COMPANY,338665.00,-220.00,461115.00
010205000036,SHUBH LAXMI AGENCIES,0.00,0.00,0.00
010205000037,EMPIRE AGENCIES,0.00,-245.11,0.00
010205000038,PIONEER AGENCIES,0.00,-696386.00,303614.00
I am not using the first line in the mappiing.
Are you saying that I need to ignore the first line while doing the conversion using Recordset OFFSET ?
Or do I need to make a single structure taking all the fields from header as well as details and while defining the structure I need to ignore the fields from header?
Please suggest. -
Converting flat file to XML using JMS
Hi,
I want to convert flat file to xml. My sender adapter is JMS,
Can anyone tell me that how to do that conversion ? Conversion is very simple.
Can we use File content conversion in JMS Sender ? any link or blog ? or any other idea to achieve this ?
Regards
KulwinderHi,
The pdf has been removed from that link i suppose.
Anyways, go through the below help, everything that is there in "HowToConveModuleJMS.pdf" has been mentioned in this...
http://help.sap.com/saphelp_nw04/helpdata/en/24/4cad3baabd4737bab64d0201bc0c6c/content.htm
Hope it would surely help you.
You can go through the below link, for better understanding..
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a05b2347-01e7-2910-ceac-c45577e574e0
Regards,
Swetha.
Edited by: Swetha Reddy on Feb 26, 2009 5:30 AM -
hi guys,
I am new to XI.am tryin to configure xml to flat file scenario.i have configured the scenario but the problem is am getting the flat file into my receiver system with no content..what might be the problem.pls do help me outHi,
Please find here with the required parameters for receiver end file to get it as flat file
Please refer below scenarios, this could be used as reference for your scenario
IDOC-XML to flat file
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a
XML to Flat file conversion
XML to flat file conversion
File Receiver with Content Conversion
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
Configuring the Receiver File/FTP Adapter
http://help.sap.com/saphelp_nw04/helpdata/en/95/bb623c6369f454e10000000a114084/frameset.htm
Please see the below links for file content conversion..
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter - FCC
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter - FCC
File Content Conversion for Unequal Number of Columns
/people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns - FCC
Content Conversion (Pattern/Random content in input file)
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file - FCC
Thanks
Swarup -
ORABPEL-30028 Invalid configuration file wf_config.xml
Hi,
Recently I have upgraded BPEL 10.1.3.1.0 to 10.1.3.4.0. I have included all the required jar files in classpath even though I am getting the below error.
Please assist me to resolve this.
ORABPEL-30028
Invalid configuration file wf_config.xml
The configuration file wf_config.xml not be read.
Make sure that the configuration file wf_config.xml is available and is a valid XML document. Contact oracle support if error is not fixable.
at oracle.bpel.services.config.ConfigurationManager.init(ConfigurationManager.java:79)
at oracle.bpel.services.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:101)
at oracle.bpel.services.config.ConfigurationManager.getProperty(ConfigurationManager.java:119)
at oracle.bpel.services.config.ConfigurationManager.getBooleanProperty(ConfigurationManager.java:170)
at oracle.bpel.services.common.exception.ServicesException.<clinit>(ServicesException.java:61)
at oracle.bpel.services.config.ConfigurationManager.init(ConfigurationManager.java:79)
at oracle.bpel.services.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:101)
at oracle.bpel.services.config.ConfigurationManager.getProperty(ConfigurationManager.java:119)
at oracle.bpel.services.config.ConfigurationManager.getProperty(ConfigurationManager.java:141)
at oracle.bpel.services.config.ConfigurationManager.getStringProperty(ConfigurationManager.java:187)
at oracle.bpel.services.workflow.task.impl.WorkflowUtil.<clinit>(WorkflowUtil.java:127)
at oracle.bpel.services.workflow.repos.Predicate.isUserColumnAndCaseAgnostic(Predicate.java:726)
at oracle.bpel.services.workflow.repos.Predicate.appendPredicateList(Predicate.java:780)
at oracle.bpel.services.workflow.repos.Predicate.appendPredicateList(Predicate.java:762)
at oracle.bpel.services.workflow.repos.Predicate.<init>(Predicate.java:487)
at com.wipro.sobay.oraclebpel.WorklistService.fetchTaskListforSearch(Unknown Source)
at com.wipro.sobay.oraclebpel.WorklistService.getTaskCount(Unknown Source)
at com.wipro.sobay.auditor.action.ViewTaskListAction.viewTaskList(Unknown Source)
at com.wipro.sobay.auditor.action.ViewTaskListAction.postexecute(Unknown Source)
at com.wipro.sobay.action.SobayBaseAction.execute(Unknown Source)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
at oracle.xml.parser.v2.XMLReader.pushXMLReader(XMLReader.java:358)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:287)
at oracle.bpel.services.common.util.AbstractJaxbUtil.unmarshal(AbstractJaxbUtil.java:128)
at oracle.bpel.services.config.ConfigurationManager.init(ConfigurationManager.java:60)
... 43 more
2009-10-23 16:04:58,031 INFO [STDOUT] <2009-10-23 16:04:58,031> <ERROR> <oracle.bpel.services.workflow> <::>
java.lang.NullPointerException
at oracle.xml.parser.v2.XMLReader.pushXMLReader(XMLReader.java:358)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:287)
at oracle.bpel.services.common.util.AbstractJaxbUtil.unmarshal(AbstractJaxbUtil.java:128)
at oracle.bpel.services.config.ConfigurationManager.init(ConfigurationManager.java:60)
at oracle.bpel.services.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:101)
at oracle.bpel.services.config.ConfigurationManager.getProperty(ConfigurationManager.java:119)
at oracle.bpel.services.config.ConfigurationManager.getBooleanProperty(ConfigurationManager.java:170)
at oracle.bpel.services.common.exception.ServicesException.<clinit>(ServicesException.java:61)
at oracle.bpel.services.config.ConfigurationManager.init(ConfigurationManager.java:79)
at oracle.bpel.services.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:101)
at oracle.bpel.services.config.ConfigurationManager.getProperty(ConfigurationManager.java:119)
at oracle.bpel.services.config.ConfigurationManager.getProperty(ConfigurationManager.java:141)
at oracle.bpel.services.config.ConfigurationManager.getStringProperty(ConfigurationManager.java:187)
at oracle.bpel.services.workflow.task.impl.WorkflowUtil.<clinit>(WorkflowUtil.java:127)
at oracle.bpel.services.workflow.repos.Predicate.isUserColumnAndCaseAgnostic(Predicate.java:726)
at oracle.bpel.services.workflow.repos.Predicate.appendPredicateList(Predicate.java:780)
at oracle.bpel.services.workflow.repos.Predicate.appendPredicateList(Predicate.java:762)
at oracle.bpel.services.workflow.repos.Predicate.<init>(Predicate.java:487)
at com.wipro.sobay.oraclebpel.WorklistService.fetchTaskListforSearch(Unknown Source)
at com.wipro.sobay.oraclebpel.WorklistService.getTaskCount(Unknown Source)
at com.wipro.sobay.auditor.action.ViewTaskListAction.viewTaskList(Unknown Source)
at com.wipro.sobay.auditor.action.ViewTaskListAction.postexecute(Unknown Source)
at com.wipro.sobay.action.SobayBaseAction.execute(Unknown Source)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
Thanks,
VENKAT RHi.
Actually, this exception occurs when I try to get the list of task from BPEL using my application built in java (JBOSS server).
I could able to open the wf_config.xml and wf_client_config.xml file from browser without having any error.
Thanks,
VENKAT R -
CONVERTION OF FLAT FILE TO XML : NO OUT PUT FOUND
Hi XI Experts,
I am not getting output while creating a scenario of flat file to xml file. I have set the file content conversion parameter correctly...the file which is .txt is picking up but I m not getting the file in the output directory.
CAN ANYONE HELP ME.....PLS!!!
Thanks in advance...Hi,
The follwoing is the mapping str I created and also I have pasted the FCC parameters,
I want to send the .txt file which contains the data as
Sunil,Bangalore
Shetty,Bangalore
( for multiple records..)
Note : I m getting the o/p for single records...
Pls help me.....
Sender Target
Record Record
Row Row
Name string 1..unbounded ---> Name string 1..unbounded
Addr string 1..unbounded ---> Addr string 1..unbounded
Source Dir : c:/send
File Name : send.txt
Document Name : Message type name
Document Namespace : urn:....
Recordset Name : Record
Recordset Structure: Row,*
Row.fieldNames : Name,Addr
Row.fieldSeparator : ,
Row.processConfiguration : FromConfiguration
Row.endSeparator : 'nl'
Thanks in Advance.... -
My mac book pro crashed and the logic board died. They said that i could get the hard drive out and it should have all my files on it. How do i get them off and put them on my new computer?
Mj
Do you mean a case for the external hard drive? See here. Hope this may be helpful to you.
Regards,
Joseph -
How to eliminate empty tags in out put XML file in IDOC to File scenario
Hi Experts,
I am doing IDOC to File scenario.
My Out put XML is in to FTP is as below
<ITEMS>
<item>
<A>asdf<A>
<B>GHIJ<B>
</item>
<item>
<A>123<A>
<B>G098<B>
</item>
</ITEMS>
<ITEMS/> -
> Means no data
<ITEMS/> -
> Means no data
<ITEMS>
<item>
<A>yyy<A>
<B>zzz<B>
</item>
<item>
<A>arrr<A>
<B>Ghhh<B>
</item>
</ITEMS>
Now I want to eliminate tages <ITEMS/> in out out put XML file ( PIwhich writes in File server).
1) Is there any setting in communication channel to do this
2) Is there any settings in Mapping proram to suppress parent tag if child tags are not available.
I want output as below .
<ITEMS>
<item>
<A>asdf<A>
<B>GHIJ<B>
</item>
<item>
<A>123<A>
<B>G098<B>
</item>
</ITEMS>
<ITEMS>
<item>
<A>yyy<A>
<B>zzz<B>
</item>
<item>
<A>arrr<A>
<B>Ghhh<B>
</item>
</ITEMS>
Thanks,
Subbuitems->mapwithdefalut(just empty in the value)-> euqals(check with empty constant)->not->createif->target node
and make sure that as Ravi kanth said ...occurance is min is 0 at target side
Regards,
Prasad.
Edited by: PRASAD KONDA on May 21, 2009 1:50 PM -
How to display the out put of the sql query in a text file using forms
I want to display the out put of the sql query in a text file using forms 6.0.Same could be done using spool command in sqlplus but i want it using forms....Fiaz
Have a look at the text_io package:
http://www.oracle.com/webapps/online-help/forms/10g/state?navSetId=_&navId=3&vtTopicFile=f1_help/oraini/c_text_io.html&vtTopicId=
cheers
Maybe you are looking for
-
[SOLVED] "Server is already active for display 0" in Terminals
So far, my searches haven't yielded any solutions to this. When my system starts, it boots to a console login prompt (no gdm, etc...) and I have 'startx' in my .bashrc to start my desktop. The desktop starts and functions fine (or so it seems). Probl
-
How to create a new Handling unit assigned to a Shipment?
Hi, has anyone an experience how to create a new HU and assign it to a shipment (object type VEKP-VPOBJ = '04')? I need to create it via SAPConsole transaction. Originally I intended to use LM19 to create an unassigned HU and to assign it further on
-
Hello, I'm a bit of a newbie to Flex ( started Yesterday ) and i'm finding my way quit well. Using some of the examples that the internet provides i managed to create the following applcation: <?xml version="1.0" encoding="utf-8"?> <s:WindowedApplic
-
Error message when trying to access itunes radio
Hello, when I try to access itunes 7.1.1(5) Radio stations I get an error message that read as follow:"an error occured wlile contacting the radio tuning service. Check your internet conn., or try again later" My inter. conn. is fine and I have tried
-
I have an Airplay enabled AV Receiver - how do i set up Airplay
I have an airplay enabled AV Receiver - how do i set up Airplay I have a Yamaha RX-V673 which is Airplay enabled, but i can't get Airplay to work either on my Mac book or my iphone. The receiver is connected to my network and i can control it using t