Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2006-06-15
3
Medium Priority
?
849 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 1000 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

688 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