Parsing xml that contains special character
this is my xml file.
<?xml version="1.0" encoding="ISO-8859-1" ?>
<grid_assessment>
<chart>
<range>5</range>
<sharing_charging>
<score>3</score>
<label><![CDATA[SHARING & CHARGING POLICIES]]></label>
this is my java code.
SAXParser parser = new SAXParser();
parser.setContentHandler(this);
parser.setErrorHandler(this);
try
fis = new FileInputStream(xmlFile);
catch(IOException ioe)
System.out.println( ioe.getMessage() );
InputSource inputSource = new InputSource((InputStream)fis);
try
parser.parse(inputSource);
catch(SAXException saxe)
System.out.println( saxe.getMessage() );
catch(IOException ioe)
System.out.println(ioe.getMessage());
when i parse the xml file, i got an error message like this.
org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference.Stopping after fatal error: The entity name must immediately follow the '&' in the entity reference.
is there anybody who knows how to parse the xml file that contais special character?
i tried "&" instead of "&". but it didn't work...
please help...
thanks in advance...
this is my java code.
SAXParser parser = new SAXParser();If that is javax.xml.parsers.SAXParser then your code won't compile; i suspect you might be using some non-standard parser?
parser.setContentHandler(this);
parser.setErrorHandler(this);These methods are deprecated.
when i parse the xml file, i got an error message like this.
org.xml.sax.SAXParseException: The entity name must
immediately follow the '&' in the entity
reference.Stopping after fatal error: The entity name
must immediately follow the '&' in the entity
reference.I don't; maybe it's your parser. What parser are you using, and what version?
is there anybody who knows how to parse the xml file
that contais special character?There is nothing more you need to do; the codeimport javax.xml.parsers.*;
import org.xml.sax.helpers.DefaultHandler;
import org.xml.sax.*;
import java.io.*;
public class CeasarKim1Parser extends DefaultHandler {
public static void main (String[] args) {
try {
SAXParser parser = SAXParserFactory.newInstance().newSAXParser();
FileInputStream fis = null;
fis = new FileInputStream(args[0]);
InputSource inputSource = new InputSource((InputStream)fis);
parser.parse(inputSource, new CeasarKim1Parser () );
} catch(SAXException saxe) {
saxe.printStackTrace();
} catch(IOException ioe) {
ioe.printStackTrace();
} catch (ParserConfigurationException pce) {
pce.printStackTrace();
public void characters(char[] ch, int start, int length) {
System.out.println(new String(ch, start, length));
// similar implementations of the other content handler methods
}which is basically a compilable and non-deprecated version of yours, with the file<?xml version="1.0" encoding="ISO-8859-1" ?>
<grid_assessment>
<chart>
<range>5</range>
<sharing_charging>
<score>3</score>
<label><![CDATA[SHARING & CHARGING POLICIES]]></label>
</sharing_charging>
</chart>
</grid_assessment>does not generate any exceptions and parses the CDATA section correctly. That is using 1.4.1 and the default org.apache.crimson.jaxp.SAXParserImpl parser.
Pete
Similar Messages
-
Why the SAX parser cannot support the special character like "¡"
I do not understand why the SAX parser cannot support the special character like ¡ but it can replace the " & < > to ", &, <, >, ,, but other characters will be replaced to empty charater.
can somebody give me any suggestions or solutions. THX.
Edited by: 844086 on 2011-3-14 上午2:27
Edited by: 844086 on 2011-3-14 上午2:27I quote:
Alternatively implement an EntityResolver that resolves the desired escapes.You are again an example that people only read/register the first thing written in a post. -
Sending an XML that contains CDATA to a SOAP service using wcf-webhttp adapter
I've run into a rather unique problem when trying to send an xml that contains the <![cdata[]]> tag to a soap service. Without the tag the xml sends through without issue. However, when I add the cdata tag within the xml, BizTalk immediately
fails without even attempting to send to the service. I receive the following error:
"The published message could not be routed because no subscribers were found. This error occurs if the subscribing orchestration or send port has not been enlisted, or if some of the message properties necessary for subscription evaluation have not
been promoted. Please use the Biztalk Administration console to troubleshoot this failure. "
I have ensured that the send adapter is enlisted and started.
This is on a BizTalk 2013 installation.
Any and all help is appreciated!
Thanksas per my understanding, if you use the
<![cdata[]]> tag in sending message, BizTalk is not able to send the message as it is not matching with your send message schema that is why error 'The
published message could not be routed because no subscribers were found.....'
Please compare the message format or configured schema in send shape and message which suspended when
used <![cdata[]]> tag used.
Regards
Suman -
Processing XML files that contain Special Characters
Hello:
Before I explain my problem I think I should briefly explain what I am trying to do. I have a JSP page that invokes a Java method (the code is attached). This java method takes in an XML file and an XSLT file. It parses the XSLT and also the XML file. If the parsing went through fine, it then processes the XML file and applies the XSLT to the XML file and returns a XMLDocumentFragment Object back to JSP and the JSP renders it.
This mechanism works well. However off late I have encountered a few XML files containing characters such as Ê (Capital E with circumflex accent). Whenever my Java method tries to parse/process this .xml file it gives me the following error.
ORG.oclc.da.utilities.ifs.ReportException: An Error Occured While Parsing the Report: Missing entity 'Ecirc'. at ORG.oclc.da.archive.userinterface.ReportHelper.retrieveReport(Unknown Source) at /ViewReport.jsp._jspService(/ViewReport.jsp.java:87) (JSP page line 65) at com.orionserver[Oracle9iAS (1.0.2.2) Containers for J2EE].http.OrionHttpJspPage.service(OrionHttpJspPage.java:54) at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.HttpApplication.serviceJSP(HttpApplication.java:5458) at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.JSPServlet.service(JSPServlet.java:31) at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:501) at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:170) at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:576) at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:189) at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:62)
It seems like the Oracle Parser/XSLT Processor (oracle.xml.parser.v2.DOMParser) I am using is not able to handle special characters such Ê. I was wondering if there is anyway around this problem.
Attached is the Java Method that handles both the parsing and processing of the XML file.
/** The method parses the Report Data and applies the Style Sheet to this data
* @param The InputStream (Report Contents - .xml file), Name of the StyleSheet that needs to be applied
* @return A sub-section of the report data (DOM DocumentFragment is returned)
private XMLDocumentFragment parseReport(InputStream reportStream,String strStyleSheet) throws Exception
DOMParser parser;
XMLDocument xml, xsldoc, out;
URL urlStyleSheet;
//Get the URL for the Style Sheet
urlStyleSheet = new URL(strStyleSheet);
//Create an instance of the Dom Parser
parser = new DOMParser();
parser.setPreserveWhitespace(true);
//Parse the XSL document and create a DOM Object
parser.parse(urlStyleSheet);
xsldoc = parser.getDocument();
//Parse the report document (a .xml) and create a DOM Object
parser.parse(reportStream);
xml = parser.getDocument();
// instantiate a stylesheet
XSLStylesheet xsl = new XSLStylesheet(xsldoc, urlStyleSheet);
XSLProcessor processor = new XSLProcessor();
// display any warnings that may occur
processor.showWarnings(true);
// processor.setErrorStream(System.err);
// Process XSL
XMLDocumentFragment result = processor.processXSL(xsl, xml);
return result;
If you have any suggestions please let me know. If you need more information I will be to furnish it.
thanks
MathangiHello,
I just had the same problem, you need to include the approprate entity sets so that the xsl parser will recognize them (and you won't
get the "missing entity" error:
if you already haven't you need to add a DOCTYPE processing instruction for your dtd, to the top of your xml files to be parsed, for ex.:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "file:///mydir/mydtd.dtd">
then in "mydtd.dtd", add references to these 3 entity sets (if you have a dtd - if not then create one just with these entries):
<!ENTITY % HTMLlat1 PUBLIC
"-//W3C//ENTITIES Latin 1 for XHTML//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">
%HTMLlat1;
<!ENTITY % HTMLspecial PUBLIC
"-//W3C//ENTITIES Special for XHTML//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml-special.ent">
%HTMLspecial;
<!ENTITY % HTMLsymbol PUBLIC
"-//W3C//ENTITIES Symbols for XHTML//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml-symbol.ent">
%HTMLsymbol;
Or, grab the ".ent" files from the www.w3.org site and put them on your server in the dtd dir, and change the "http:... reference, to
"file:...", it will be faster to parse (that's what I did). FYI, "Ecirc" is in xhtml-lat1.ent.
Also, after I did this,I developed another problem where my xsl parser and xmlmarkup tag-converting function converts certain
html entities to their octal counterparts, and I don't want this and don't know how to stop it (I have a posting out for this also).
Additionally, thanks for posting your parseReport method, it just so happens that I was looking for a way to do something like that,
it should be helpful to me.
-JK
Hello:
Before I explain my problem I think I should briefly explain what I am trying to do. I have a JSP page that invokes a Java method (the code is attached). This java method takes in an XML file and an XSLT file. It parses the XSLT and also the XML file. If the parsing went through fine, it then processes the XML file and applies the XSLT to the XML file and returns a XMLDocumentFragment Object back to JSP and the JSP renders it.
This mechanism works well. However off late I have encountered a few XML files containing characters such as J (Capital E with circumflex accent). Whenever my Java method tries to parse/process this .xml file it gives me the following error.
ORG.oclc.da.utilities.ifs.ReportException: An Error Occured While Parsing the Report: Missing entity 'Ecirc'. at ORG.oclc.da.archive.userinterface.ReportHelper.retrieveReport(Unknown Source) at /ViewReport.jsp._jspService(/ViewReport.jsp.java:87) (JSP page line 65) at com.orionserver[Oracle9iAS (1.0.2.2) Containers for J2EE].http.OrionHttpJspPage.service(OrionHttpJspPage.java:54) at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.HttpApplication.serviceJSP(HttpApplication.java:5458) at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.JSPServlet.service(JSPServlet.java:31) at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:501) at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:170) at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:576) at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:189) at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:62)
It seems like the Oracle Parser/XSLT Processor (oracle.xml.parser.v2.DOMParser) I am using is not able to handle special characters such J. I was wondering if there is anyway around this problem.
Attached is the Java Method that handles both the parsing and processing of the XML file.
/** The method parses the Report Data and applies the Style Sheet to this data
* @param The InputStream (Report Contents - .xml file), Name of the StyleSheet that needs to be applied
* @return A sub-section of the report data (DOM DocumentFragment is returned)
private XMLDocumentFragment parseReport(InputStream reportStream,String strStyleSheet) throws Exception
DOMParser parser;
XMLDocument xml, xsldoc, out;
URL urlStyleSheet;
//Get the URL for the Style Sheet
urlStyleSheet = new URL(strStyleSheet);
//Create an instance of the Dom Parser
parser = new DOMParser();
parser.setPreserveWhitespace(true);
//Parse the XSL document and create a DOM Object
parser.parse(urlStyleSheet);
xsldoc = parser.getDocument();
//Parse the report document (a .xml) and create a DOM Object
parser.parse(reportStream);
xml = parser.getDocument();
// instantiate a stylesheet
XSLStylesheet xsl = new XSLStylesheet(xsldoc, urlStyleSheet);
XSLProcessor processor = new XSLProcessor();
// display any warnings that may occur
processor.showWarnings(true);
// processor.setErrorStream(System.err);
// Process XSL
XMLDocumentFragment result = processor.processXSL(xsl, xml);
return result;
If you have any suggestions please let me know. If you need more information I will be to furnish it.
thanks
Mathangi -
Parsing elements that has special characters
I have to parse xml from a clob that has elements that contain characters cut and pasted from word perfect documents. The resulting text has the literal characters and inside the element start and end tags. I've looked at using an entity, but I'm not sure how the entity would look syntactically in the DTD. I want simply to eliminate those literals as they are causing an invalid character text error when I parse the xml in my stored procedure. I'm looking for any ideas or direction, thanks.
At the moment no, there isn't - you can try leaving feedback here http://www.apple.com/feedback/ipad.html
-
How to parse xml file, containing image, generaged from JAX-RS connector?
Hi,
We are using JAX-RS connector and just want to call getBusinessObjects() directly using JerseyMe (basically bypassing sync engine). We have used sync engine so far and want to try as how to bypass it. The method produces the text/xml and verified the xml file in the web by giving the full url. The plan is to call the same URL from the Java Me Client using JerseyMe. When I print the bytes at the client I receive the same xml that I have seen in the web. Actually, I am passing an image that I can see in a different character format in xml (assuming this is bcos of UTF-8 encoding). I am wondering as how to parse this xml file and how to decode the "UTF-8" format? Do we need to use SGMP for this or use kxml or java me webservices spec.
I would really appreciate if somebody can answer this one.
I have been observing in this forum that SGMP team is not at all active in answering the questions. Please let us know whether Oracle is keeping this product and we can continue using SGMP1.1. Please let us know so that we can plan accordingly as we are building a product based on SGMP.Hi Rajiv,
The client library is using org.apache.commons.codec.binary.Base64 internally. We don't have the full Commons Codec library bundled, but you can look up the javadoc for the Base64 class online. All you need to do is call Base64.decode(obj.getBytes()) on the objects you get out of the XML.
In general it isn't a good idea to depend on implementation details of the client library, but in this case, I think it is pretty safe to expect org.apache.commons.codec.binary.Base64 to remain in our library.
--Ryan -
How do I find file names containing special character
hi all
I need your help with a code that deals with finding file names containing special characters like * / \ : ? " |
the reason is I am doing a project that transfer files and folders from Mac to Windows. But names containing above characters cant be moved to windows.
the part of the code I write is like this
set illegal_syntax to paragraphs of (do shell script "find " & quoted form of POSIX path of oneFolder & " -name '*'")
if (illegal_syntax is not equal to {""}) then
repeat with each_record in illegal_syntax
do shell script "/usr/bin/ditto -c -k -rsrc --keepParent " & quoted form of each_record & space & quoted form of (each_record & ".zip")
end repeat
end if
First of all that '' will gives me an error.
Second, what i tried to do is once the file/folder is found, zip it at current location. But the problem is how can I zip it without the special character? or should I just give it a name, like "originalfile.zip";?
Last, or maybe you have better idea to deal with this situation? BTW, I can not rename or delete the file/folder because customer won't allow me to do it.The backslash is used to escape characters in AppleScript, so if you want to use it in a string you need to escape the escape character, for example "\\*".
You could set the name of the archive by replacing the illegal character with another one, such as an underscore:
<pre title="this text can be pasted into the Script Editor" style="font-family: Monaco, 'Courier New', Courier, monospace; font-size: 10px; padding: 5px; border: 1px solid #000000; width: 720px; color: #000000; background-color: #FFDDFF; overflow: auto">set each_record to "some*file*name" -- example
set {TempTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, "*"}
set the ItemList to text items of each_record
set AppleScript's text item delimiters to "_"
set each_record to the ItemList as text
set AppleScript's text item delimiters to TempTID
log each_record --> some_file_name
</pre> -
Xml publisher reprot - special character problem
I invoice report through xml publisher. I have '&' special character in vendor list. I am getting below error
A semi colon character was expected. Error processing resource.
Below is the code
CREATE OR REPLACE PACKAGE BODY XML_RPT AS
FUNCTION XML_TAG (p_tag IN VARCHAR2, p_data IN VARCHAR2) RETURN VARCHAR2 IS
l_ret_str VARCHAR2(5000);
BEGIN
l_ret_str := '<'||p_tag||'>'||p_data||'</'||p_tag||'>';
RETURN l_ret_str;
END XML_TAG;
PROCEDURE VENDOR(errbuf OUT VARCHAR2,
retcode OUT NUMBER) IS
CURSOR inv_Cur IS
select pv.vendor_name
from po_vendors pv;
xmldata varchar2(1000);
l_sqlstr varchar2(1000);
l_seqnum varchar2(3);
l_vendor_name varchar2(100);
BEGIN
xmldata := '<?xml version="1.0" encoding="UTF-8"?>';
xmldata :=xmldata|| '<VENDOR>';
xmldata := xmldata||' <LIST_VENDOR>';
fnd_file.put_line(fnd_file.output,xmldata);
FOR rpt_rec IN inv_Cur LOOP
xmldata := '<VENDOR_REC>';
l_vendor_name := replace(rpt_rec.VENDOR_NAME,'&','&');
xmldata := xmldata || XXMCG_XML_TAG('VENDOR_NAME',L_VENDOR_NAME);
xmldata :=xmldata|| '</VENDOR_REC>';
fnd_file.put_line(fnd_file.output,xmldata);
END LOOP;
xmldata := '</LIST_VENDOR>';
xmldata := xmldata||'</VENDOR>';
fnd_file.put_line(fnd_file.output,xmldata);
EXCEPTION
WHEN OTHERS THEN
fnd_file.put_line(fnd_file.log,substr(SQLERRM,1,500));
END VENDOR;
END XML_RPT;can any one advice.Duplicate post ? xml publisher report problem
Srini -
How to validate string that contains special characters.
Hi,
I am new to Data Services.I took excel sheet as a data source .Now i have do some validation functions like vendorgroup should not contain special characters ,name cleansing operations etc.. So,please anyone help me redarding this.
Thanks in advanceAnonymous,
No this is not a bug. Working with multi-select lists or any item which stores colon delimited values can be tricky to work with in APEX. There are a few work arounds for this. One is to replace the colons with something else like you described and then replace the colons on the landing page. Another solution is to send the primary key for that record and have an automatic row fetch or a computation pull the colon delimited value.
Cheers,
Tyson Jouglet -
Problem retrieving data that contains special characters in Collections
Hi fellow Apexers,
If I load strings that contain characters such as ":" or "," into a collection and then read the data back off the collection into page items via URL e.g.
f?p=&APP_ID.:4:&SESSION.::&DEBUG.::P4_INJURED_FIRST_NAME,P4_INJURED_OTHER_NAME,P4_INJURED_SURNAME,P4_INJURED_SHOP_NO,P4_INJURED_BUILDING,: #SEQ_ID#,#C001#,#C002#,#C003#,#C004#,#C005#
the data after the ":" or "," gets screwed up and ends up in the wrong fields. How do I escape these characters?
I have tried using a replace statement when inserting into the collection e.g.
BEGIN
IF htmldb_collection.collection_exists('INJURED_PERSON') = FALSE THEN
htmldb_collection.create_collection( p_collection_name => 'INJURED_PERSON');
htmldb_collection.add_member(p_collection_name => 'INJURED_PERSON',
p_C001 => :P4_INJURED_FIRST_NAME,
p_C002 => :P4_INJURED_OTHER_NAME,
p_C003 => :P4_INJURED_SURNAME,
p_C004 => :P4_INJURED_SHOP_NO,
p_C005 => replace(:P4_INJURED_BUILDING,':','')
etc.........
but I just don't want to have nested replace statements. Also I'll loose "," and ":" when I retrieve the back off the collection
Does anyone know of a better workaround?
Regards
Paul PHi Paul,
Apex uses colons in the url to separate the parameters. You could replace these with another character (for example, ~) and then have a Before Header page process on the second page that converts that back again.
However, as a collection is available until you clear it or log out, you could just pass the SEQ_ID and get the second page to retrieve the values directly into the page items
Andy -
Parsing XML with invalid Unicode Character
Hi,
I have developed an application which has an XML as Input. Sometimes the XML I receive has not valid Unicode Characters so I get an Exception as follows for each wrong character.
javax.xml.transform.TransformerException: An invalid XML
character (Unicode: 0xa9) was found in the element content of the document. - Ex
ception
How Can I parse the Input XML for getting only valid characters? Thank you.You are not receiving valid XML. Your parser will assume that the XML file is encoded using UTF-8, unless its header specifies otherwise. Contact the person who sent you the XML and get it fixed. (Often people produce XML containing accented letters from various European languages; in the case the correct encoding is often ISO-8859-1.)
-
How to parse XML tag value having '&' character.
Hi,
I have one XML for which value contains '&'. So when I am trying to get the value of that tag from a PL/SQL package its throuwing error as follows:
XML Parse Error: [line 35:col 38] - The reference to entity "SO" must end with the ';' delimiter.
XML :
[b]<LOCCODE>GECORP,Albany1,CP&SO</LOCCODE>
Please let me know how could i handle this '&'.
Thanks
Debashreehint: How is it handeld in html? (check www.w3cschools.com)
-
Reading a string containing special character from a result set
My Code....
PrintStream p = new PrintStream(fout);
if (connection == null)
connection = getConnection();
CallableStatement proc = connection.prepareCall("{call testing_read()}");
rs = proc.executeQuery();
while ( rs.next() )
String page2 = rs.getString(1);
System.out.println(page2);
rs.getString(1); is a string value eg. 'Rebekah \n Govender' that is being set in a stored procedure.
The output of my program is :'Rebekah \n Govender' , i need for it to read the special characters, and produce this output :
Rebekah
Govender
Without using a result set , it works fine.
eg.
String page2 = 'Rebekah \n Govender'
System.out.println(page2);
Will give an output of :
Rebekah
Govender
I need to read values from the results set, pls help me someone....
Please help....String page2 = rs.getString(1).replace("\\n", "\n"); When you include source code in your posts, please enclose it in CODE tags. There's a button for that above the input textarea.
ThE-MaRaC wrote:
Hi,
you can try something like this:
import java.io.UnsupportedEncodingException;;
* Main class, manages the complete game
public class Main {
public static void main(String[] args) {
String page2 = "Rebekah \n Govender";
try {
page2 = new String(page2.getBytes("ISO-8859-1"), "ETF-8");
} catch (UnsupportedEncodingException e) {}
System.out.println(page2);
}Regards,
Hercog MarioThat is a disgusting hack which you shouldn't be recommending to anyone, and it's totally irrelevant here anyway. Also, as written, it does absolutely nothing because you misspelled "UTF-8" and you swallowed the exception that would have told you so. -
OUTBOUND XML FILE CONTAINS SPECIAL CHARS AFTER SP08 UPGRADE
Experts,
Recently MDM server upgraded to SP08 from SP05.
In our outbound interface scenario we have 1 hierarchy field. The hierarchy field mapped as complete path(parent to Child)
ex: 1,Parent > 11,Child > 111,Child > 1111,Child.
In SP05 XML files are generating correctly & PI also dont have any issues while passing this data to ECC.
After SP08 Server pack upgrade, xml file generating like below:
1??, ??Parent??, ???>?11??, ??Child??, ???>?111??, ??Child??, ???>?1111??, ??Child??, ???
If open the xml file in non ASCC editor I could able to see these special chars. Due to this ISSUE PI could not processing xml files.
All XML files are failing& blocking in PI.
Could you let me know what needs to be done at MDM or PI level.
Appreciate your inputs.
Thanks
AudinarayanaHello,
Please check the Destination preview in the syndicator.
So an syndication on the local machine, open the XML in an Browser, to see check for the special characters.
If every things is ok, then just place the file in the outbound ready folder.
If not then, raise an OSS message with SAP, as this a latest release, error resolution would be best provided by SAP
Regards,
Abhishek -
Hi there,
I am using forms 6i to query on a table whose primary key starts with a # (pound or hash sign). If I do the query trough sqlplus it comes back fine, but if I do trough forms 6i it gives me the following error messages: FRM-40831: Value too long for the field and then ORA-00920: Invalid relation operator.
Well I have followed the instructions on the note 1007499.6 published by metalink. They explaind that when in insert the # into a field forms is thinking that you are actually going to insert a relation operator like WHERE, BETWEEN and etc. So query that is run is somewhere like this:
select rowid
from emp
where (dname research)
In that case dname would be the field that start with the #.
They recommend as a workaround to write a pre-query trigger on the detail block to substr the # and add it the # againg with substr of the rest of characters, on note 1064159.6 by metalink.
I have written one with no success, the trigger seems to never be fired the errors fire first.
Can anyone help with that one ???
Thanks
gleisson silvaTry below in the pre-query, would also need a none DB block and variable :blocka.keyv:
IF substr(:dname,1,1) IN ('#','&','@')
THEN
:blocka.keyv:= substr(:dname,1,1)||:dname;
:dname:=NULL;
Set_block_property('tablename',DEFAULT_WHERE,'dname=:blocka.keyv');
ELSE
Set_block_property('tablename',DEFAULT_WHERE,'');
END IF;
Maybe you are looking for
-
Help to read TKPROF file in correct way
Hi, I need help to understand what is going wrong. I have one query executed with different bind variables values. Case 1: Execution time is about 7.5 hours when :v6=:v3=:v4 (these are date bind variables values) Case 2: Execution time is about 2 min
-
Slow Response Sun ONE 6.1 SP3 Win 2003
My Sun ONE web server is processing my JSP pages very quickly when serving one session at a time. However when there are 4 or more active sessions, it slows right down. Response time goes from 2 seconds (1 active session) to 60 seconds (multiple acti
-
I just got a macbook air but it has no osx on it.
a freind of mine gave me his older macbook air. when i turned it on it went directly to the start up utility. i ask to reinstall osx , add my apple id. then it says i did not buy mountain lion from app store.so i go into disk util;ity and all i have
-
Itunes iphone not there under devices
In fact, the whold "device" catagory isn't there. I need to sync my itunes. I am set up on manuel sync b/c I don't want all of my music synced
-
Hi! Java is my first and only language; and I am very new to Java. This is my first somewhat knowledgeable attempt to get a question answered on a forum of any kind. I put a question in this forum about two weeks ago, but I lost it. So, I am very gra