Solved

Using Delphi 7 to insert XML into an Oracle 10g XMLTYPE field gives ora_21500 Internal Error

Posted on 2006-06-15
3
839 Views
Last Modified: 2010-07-07
Hi Experts,

We have an urgent one here:

Using Delphi 7 with Direct Oracle Access 4.0.7.1, we are trying to insert an XML string into an Oracle 10g XMLTYPE data field and it is returning the errors:
"ORA-21500 Internal Error" and then it gives "OCI-21500 Internal Error".

Your immediate help would be very much appreciated.

Cheers,
Alex
0
Comment
Question by:alexapostolou
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 27

Accepted Solution

by:
kretzschmar earned 500 total points
ID: 16919485
well no experience using this via doa,

but i usual do prestore the xml-doc into a clob-field,
there is included a after insert-trigger on the table,
which does then a validation of the doc against a schema
and transfers it, if valid, into the xmltype-field,
otherwise a invalid-flag will be set on the table

of course this is only a workaround in your case

meikl ;-)
0
 

Author Comment

by:alexapostolou
ID: 16932032
We have found that Oracle's XMLTYPE field (10g) does not permit ascii chars 17 through 22 so these have to be removed from the XML before trying an insert into the field. Thanks for your time.

Alex
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 16932049
glad you got it solved :-))

never guessed this with this special charcters

meikl ;-)
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question