Error loading XML file in the column of XMLTYPE through SQL loader
Hi gurus,I am trying to load the XML file into the column of XMLTYPE through SQL Loader but the errors themselves. Here are the details
Databases
SQL*Plus: Release 10.2.0.3.0 - Production on Tue Jul 24 17:17:55 2012
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Release 10.2.0.3.0 - 64bit Production
BANNER
----------------------------------------------------------------
Oracle Database 10g Release 10.2.0.3.0 - 64bit Production
PL/SQL Release 10.2.0.3.0 - Production
CORE 10.2.0.3.0 Production
TNS for Linux: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production
The table structure
CREATE TABLE TH_XML
(
COL_ID_1 VARCHAR2(100 BYTE),
IN_FILE_1 XMLTYPE
)
XMLTYPE IN_FILE_1 STORE AS CLOB (TABLESPACE SMDAT)
XML (simple.xml) file<?xml version="1.0"?>
<catalog>
<book id="bk101">
<author>Some Author1</author>
<title>Some Title1</title>
<genre>Computer</genre>
<price>44.95</price>
<publish_date>2000-10-01</publish_date>
<description>creating applications</description>
</book>
<book id="bk112">
<author>Some Author2</author>
<title>Some Title2</title>
<genre>Computer</genre>
<price>49.95</price>
<publish_date>2001-04-16</publish_date>
<description>Microsoft Visual Studio 7 is explored in depth</description>
</book>
</catalog>
Control fileLOAD DATA
INFILE 'c:\simple.xml'
APPEND
INTO TABLE TH_XML
XMLTYPE(in_file_1)
(
col_id_1 filler CHAR (100),
in_file_1 LOBFILE(CONSTANT "c:\simple.xml") TERMINATED BY EOF
)
LOG fileSQL*Loader: Release 10.2.0.3.0 - Production on Tue Jul 24 16:42:25 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Control File: c:\my_file.ctl
Data File: c:\simple.xml
Bad File: c:\simple.bad
Discard File: none specified
(Allow all discards)
Number to load: ALL
Number to skip: 0
Errors allowed: 50
Bind array: 64 rows, maximum of 256000 bytes
Continuation: none specified
Path used: Conventional
Table TH_XML, loaded from every logical record.
Insert option in effect for this table: APPEND
Column Name Position Len Term Encl Datatype
------------------------------ ---------- ----- ---- ---- ---------------------
COL_ID_1 FIRST 100 CHARACTER
(FILLER FIELD)
IN_FILE_1 DERIVED * EOF CHARACTER
Static LOBFILE. Filename is c:\simple.xml
Record 1: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 2: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 3: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 4: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 5: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 6: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 7: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 8: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 9: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 10: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 11: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 12: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 13: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 14: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 15: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 16: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 17: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 18: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 19: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 20: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 21: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 22: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Record 23: Rejected - Error on table TH_XML.
ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
Table TH_XML:
0 Rows successfully loaded.
23 Rows not loaded due to data errors.
0 Rows not loaded because all WHEN clauses were failed.
0 Rows not loaded because all fields were null.
Space allocated for bind array: 256 bytes(64 rows)
Read buffer bytes: 1048576
Total logical records skipped: 0
Total logical records read: 23
Total logical records rejected: 23
Total logical records discarded: 0
Run began on Tue Jul 24 16:42:25 2012
Run ended on Tue Jul 24 16:42:26 2012
Elapsed time was: 00:00:00.23
CPU time was: 00:00:00.05
I get error ORA-00904: "SYS_NC_ROWINFO$": invalid identifier in the logfile (mentioned above). Could someone help me know where I am doing wrong?Thanks in advance.
Published by: 876991 on 24 July 2012 14:18
Hello
This remove the control file:
XMLTYPE(in_file_1)
It is used only if the target table is an array of XMLType object.
For an XMLType column LOBFILE is sufficient, for example:
LOAD DATA
INFILE *
APPEND INTO TABLE TH_XML
(
col_id_1 CHAR (100),
in_file_1 LOBFILE(CONSTANT "c:\simple.xml") TERMINATED BY EOF
)
begindata
MYID1
It tells SQL * Loader data consisting of one record with COL_ID_1 = "MYID1" and content = "c:\simple.xml" IN_FILE_1
SQL> CREATE TABLE TH_XML
2 (
3 COL_ID_1 VARCHAR2(100 BYTE),
4 IN_FILE_1 XMLTYPE
5 );
Table created.
SQL> host sqlldr control=test.ctl
Username:dev
Password:
SQL*Loader: Release 11.2.0.2.0 - Production on Mer. Juil. 25 01:30:46 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Commit point reached - logical record count 1
SQL> set long 5000
SQL> column col_id_1 format a15
SQL> select * from th_xml;
COL_ID_1 IN_FILE_1
--------------- --------------------------------------------------------------------------------
MYID1
Some Author1
Some Title1
Computer
44.95
2000-10-01
creating applications
Some Author2
Some Title2
Computer
49.95
2001-04-16
Microsoft Visual Studio 7 is explored in depth
Tags: Database
Similar Questions
-
original title: config file error could not open the file column line 0 0
onfig file error cannot open file row 0 column 0 - whenever I try to open my hp game console... I get this error message...
Hello
Was the HP works well before game console? If Yes, then do you remember any hardware/software changes, after which the problem started?
Method 1: I would say you put the computer to boot and then check if the problem is caused by any third-party application.
http://support.Microsoft.com/kb/929135
Note: After troubleshooting, be sure to set the computer to start as usual as mentioned in step 7 in the above article.
Method 2: I would say as you uninstall and reinstall the HP game console and check to see if it helps:
Uninstall or change a program
http://Windows.Microsoft.com/en-us/Windows-Vista/uninstall-or-change-a-program
You can also try posting your question in the HP Support forums.
HP Support Forums - operating systems and software
http://h30434.www3.HP.com/T5/desktop-operating-systems-and/BD-p/OSandSW
-
Approach to analyze the large number of XML files in the relational table.
We are studying the possibility of XML DB to treat a large number of files from same day.
The goal is to parse the XML file and store it in several relational tables. Once in the relational table don't care us about the XML file.
The file cannot be stored on the file server and must be stored in a table before analysing because of security concerns. A third-party system will send the file and it will store in the XML database.
The file size can be between 1 MB to 50MB and high performance is very that much is expected of other wise men, that the solution will be discarded.
Although we have no of XSD, the XML file is well structured. We are 11g Release 2.
Based on the reading, that's what my approach.
1. CREATE THE DONNEES_XML TABLE
(xml_col XMLTYPE)
XMLTYPE xml_col STORE AS BINARY XML NAVIGATION;
2. third will store the data in the donnees_xml table.
3. create XMLINDEX on the unique XML element
4 create XMLTYPE views
CREATE OR REPLACE FORCE VIEW (V_XML_DATA)
SType,
Mtype,
MNAME,
ROT
)
AS
SELECT x."Stype"
x."Mtype."
x."Mname"
x."ROT".
OF data_table t,.
XMLTABLE)
' / SectionMain'
PASSAGE t.data
COLUMNS Stype VARCHAR2 (30) PATH "Stype"
Mtype VARCHAR2 (3) path "Mtype."
MNAME VARCHAR2 (30) PATH "MNAME"
ROT VARCHAR2 (30) PATH "OID") x;
5. loading mass analysis of data in the staging table based on the column in the index.
Please comment on the process that precedes any suggestions that can improve the performance.
Thank you
AnuragTPASSAGE t.xml_col<--WHAT will="" passing="" here="" since="" no="">--WHAT>
If you are using an XMLType Table, instead of an XMLType column reference, you are referring to the contents of XMLType while using the NICKNAME "OBJECT_VALUE" column
If--> t.object_value
-
Export release build, not including data XML files in the apk package
Hi, all.
I have a flash pro project I packed for AIR according to these steps:
There are two differences:
- I am loading XML from right next to the swf files
- The Flash Pro project and the project Mobile share a directory that is outside of these two projects (this was the workflow already established in the public Service, given that several sovereign wealth funds share the same XML file).
When I test this on my phone, it adds the XML files to the apk and everything works great. The problem I have is that the export Release Build does not include XML files, and I don't see anything in the Flash Builder interface that looks like it will allow me to add more files than the swf file and the app.xml.
What Miss me?
Love - your comments helped me to think about this and get to the essential part that missed me. I've marked it useful, because it has shown the way.
I'm not a big fan of scoring own "correct" answers, but I'll do this time so that people can easily find the steps.
The error I thought that the "Debug on the device" was wrong to get an AIR debug version, because the swf file was not a debug swf.
I did not understand that if I clicked on the button run, it would also be a version out to push to the unit, and that this version would not give the message "waiting to connect to the debugger.
The entire process that you get when you click on 'Run' is a little weird (I say this to those who have never tried). It will install the application on the device, but does not launch (I think that this is impossible). Flash Builder crashes and then in "Installation application to the device. If you look at the screen, you will see a new download in your notifications bar, and from here you can launch the application.
To summarize:
- To start your swf Flash Pro package for Air using Flash Builder, follow the steps in Renaun (http://renaun.com/blog/2011/09/using-flash-builders-mobile-workflow-with-flash-professiona l-projects /)
- Doing this work on Mobile, you have probably installed on your phone in debug version. This uninstall using Astro File Manager (https://play.google.com/store/apps/details?id=com.metago.astro&hl=en)
- Instead click the "Debug" button in Flash Builder, click on 'run '. This makes an apk without debugging and pushed back them to your phone (if your Setup allows debugging of the device).
Additional notes: If you have xml files that are packaged in the apk file and you are using URLLoader (because the app originated as a web application), add "app: /" at the beginning of the URL string you use. Thus, "xml/myFile.xml" becomes "app:/xml/myFile.xml". If you need to keep your original web application logic, add a conditional on Capabilities.playerType == "Desktop. »
Hope this helps someone else with the same problems
-
Some files on the server may be missing or incorrect. Clear the cache of the browser, and then try again. If the problem persists, please contact Web site author. But all the content loads correctly, and it just seems to be an annoying error message. Does anyone know how I can get rid of this or that which is the cause. Site is: http://davidkimlaw.com
You solve the symptom and not the problem. If something is to change the files after they are exported from Muse, the consequences could be vast and varied download to download.
Don't the accordion on the 'AREAS' jobs page widget if this file exported (and unaltered) opens in the browser on your local computer? It doesn't seem to work on the online site, which could be linked to the questions of the error was about or may be an offshoot of some hand changes were made after export.
If you empty the re-export of Muse in a folder and then download the same files, I'll take a second look at what's going on. If you wish, you can you could do that in a subfolder so as not to disturb the live site. (When I detected that the index.css file is out of sync I was on my phone and could not go any further.)
There is also more information about the possible causes of this error here "some files on the server may be missing or incorrect" Warning Message>.
-
Massage of error: Update XML file Malformed 200.
After downloading fire 3.4.16, I received a massage of error: Update XML File malformed 200.
I can only do this issue using Windows Internet Explorer.
So my logic says it's software from Firefox and not my machine. But what?
Yours sincerely
DerekThere are a few possible causes of this error, see https://support.mozilla.com/kb/AUS+Update+XML+File+Malformed+200
-
RSS feeds save in the xml file in the device memory
Hello
I'm in the analysis of an RSS feed with SAX parser. Now, I want to record the first RSS an xml file in the memory of the device or on the SD card. Can someone guide me through this process
To write in an XML rss content, start by creating the file with the extension ".xml" with the help of the FileConnection API, then write content (rss data) in the XML file.
You can use code below to write the content in the file. We must give the path as a string & content in byte format.
public boolean writeFile(String path, byte[] data) { javax.microedition.io.Connection c = null; java.io.OutputStream os = null; try { c = javax.microedition.io.Connector.open("file:///" + path, javax.microedition.io.Connector.READ_WRITE); javax.microedition.io.file.FileConnection fc = (javax.microedition.io.file.FileConnection) c; if (!fc.exists()) fc.create(); else fc.truncate(0); os = fc.openOutputStream(); os.write(data); os.flush(); return true; } catch (Exception e) { return false; } finally { try { if (os != null) os.close(); if (c != null) c.close(); } catch (Exception ex) { ex.printStackTrace(); } } }
-
Generate a single XML file of the multiple JDBC result set
Hello
I need to create a single XML file of the multiple result set. The code below is to generate a XML signle leave a single result set, but suppose we have five different tables in the same database and the tables aren't relalted to the other.
for example: select * from SAMPLE_PRODUCT
Select * command
Select * LOGISTICS... and many others.
You can create multiple sets of results by top queries but how can write all values using a JDBC result set in a single xml file? Help, please.
a signle file xml from one generator result
import java.io.StringWriter;
import java.sql.Connection;
to import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
Import javax.xml.parsers.DocumentBuilder;
Import javax.xml.parsers.DocumentBuilderFactory;
Import javax.xml.transform.OutputKeys.
Import javax.xml.transform.Transformer;
Import javax.xml.transform.TransformerFactory;
Import javax.xml.transform.dom.DOMSource;
Import javax.xml.transform.stream.StreamResult;
to import org.W3C.DOM.document;
Import org.w3c.dom.Element;
public class JDBCToXML {}
Public Shared Sub main (string args []) throws Exception {}
DocumentBuilderFactory plant = DocumentBuilderFactory.newInstance ();
DocumentBuilder builder = factory.newDocumentBuilder ();
Doc document = builder.newDocument ();
Element results = doc.createElement ("Results");
doc.appendChild (results);
Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con = DriverManager
.getConnection("jdbc:odbc:RIS","USER","USER");
ResultSet rs = con.createStatement () .executeQuery ("select * from SAMPLE_PRODUCT");
ResultSetMetaData rsmd = rs.getMetaData ();
int colCount = rsmd.getColumnCount ();
While (RS. Next {}
Element line = doc.createElement ("Row");
results.appendChild (row);
for (int i = 1; i < = colCount; i ++) {}
String columnName = rsmd.getColumnName (i);
Object value = rs.getObject (i);
Element node = doc.createElement (columnName);
node.appendChild (doc.createTextNode (value.toString (()));
row.appendChild (node);
}
}
DOMSource domSource = new DOMSource (doc);
TransformerFactory tf = TransformerFactory.newInstance ();
Transformer transformer = tf.newTransformer ();
transformer.setOutputProperty (OutputKeys.OMIT_XML_DECLARATION, 'yes');
transformer.setOutputProperty (OutputKeys.METHOD, "xml");
transformer.setOutputProperty (OutputKeys.ENCODING, "ISO-8859-1");
StringWriter sw = new StringWriter();
StreamResult sr = new StreamResult (sw);
transform. Transform (domSource, sr);
System.out.println (SW. ToString());
con. Close;
RS. Close();
}
}
Thank you
Sumit
Published by: user8687839 on April 4, 2012 23:04
Published by: user8687839 on April 4, 2012 23:09As EJP says, you really want to get the data in a single request, if possible (and I don't see why that shouldn't be the case).
In fact, you really want to get this query to return the data as close the format you need as you can.If you did this on Oracle, for example, I'd get Oracle to produce XML that you can then turn (assuming that you could not itself produce the XML you want directly).
In your case, using some db (access?), and then just get the line structure such as the conversion to XML involves the least amount of faffing about.Rethink the SQL and the rest should be easy.
-
Loading the XML file with the missing elements dynamically by ODI
Hi guys,.
I have the XML with two nodes Employee and address below. On a daily basis, sometimes the address element might not come from the source xml file, but my interface has columns mapped to the elements of the address, and that is why it may fail because of the source element is not found in the file or data could not get charged because the State 'and' in the sql query that is generated between the employee and address elements. Is there a way where I can load the data dynamically where I can search in the file only for items (used) present and dynamically loading data only for these items?
XML file:
<? XML version = "1.0" encoding = "UTF-8"? >
< EMP >
< Empsch >
< employee >
< EmployeeID 12345 > < / EmployeeID >
< original > t < / initials >
John < name > < / LastName >
DOE < FirstName > < / name >
< / employee >
< address >
< > 12345 as WorkPhone < / as WorkPhone >
< WorkAddress > test 234 < / WorkAddress >
< / address >
< / Empsch >
< / EMP >
Thank you
Fabien Tambisetty
I managed to solve it by using left outer joins, and in referring to the structure of the table of the XSD
-
Hi there... How can I sort this problem as this message looks back constantly on google Account... ERROR POSSIBLE WITH GWT. The value of time compilation agent MODULE XML FILE user (ie6) does not match the value of user.agent (ie8) run time
Hello nEve Adam,.
Thanks for the return of the response. Below, I've added some links Google support on this issue. I hope this helps.
ERROR: Problem Possible with your *. GWT.XML file module. The value of compile time user.agent (opera) does not match
http://www.Google.com/support/forum/p/blogger/thread?TID=2d6d9bd1326a07c4&hl=en
In addition,
Message from Web page
-
Static load of the XML file with the list of choices
Hello
So let me explain my problem:
-J' have XML files: (in my < fx:Declaration >)
< fx:XML id = "flexang" source = "xml/flex - ang.xml" / >
< fx:XML id = "flexastro" source = "xml/flex - astro.xml" / >
< fx:XML id = "flexber" source = "xml/flex - ber.xml" / >-J' have a list constructed as follows:
(in my < fx:Declaration >)
< fx: Model id = "anim" >
States <>
< label State = data="animations/flex-ang.swf"/ "Anguinéa" >
< label State = "Retrograde motion" data="animations/flex-astro.swf"/ >
< label State = "Rod of Bérard" data="animations/flex-ber.swf"/ >
< / states >
< / fx: Model >
(and then)< mx:List id = 'source' width = '100% ', color = 'blue '.
dataProvider = "{anim.state}" "
change = "selectedListItem .selectedItem = list (event.currentTarget);" / > "(with public var selectedListItem:Object ;)
My list is designed to load dynamicaly some SWF files< mx:SWFLoader id = "animation".
source = "{selectedListItem.Data}" "
autoLoad = 'true '.
Width="100%"/ >-But now I want to display the correspondent. So I tried to build the string to the XML of the selectedListItem.data id:
private void xmlFile(swf:String):String
{
var pref:String;
var tab = swf.split (".", 2);
Tab = Tab [0]. Split("/",2);
Pref = tab [1];
Pref pref =. Split("-"). Join("");
return of pref;
}This gives me, for example, "flexang" of "animations/flex - ang.swf. But my problem is that I want to put my XML file in my region RichText:
< s:RichEditableText id = 'codeView' editable = textFlow = "{TextFlowUtil.importFromXML (xmlFile (selectedListItem.data)) 'false'}" / > "
But xmlFile returns a string! and I don't know how to specify that it is an XML ID.
I hope I am clear enough.
Thank you if you try to help me
Wait, that wasn't fair. Try:
TextFlow = "{TextFlowUtil.importFromXML (this [xmlFile (selectedListItem.data)])}
"
-
Insert xml files into the table
Hi all
How to create an application, which allows me to download an xml file and insert the file into a table, looking something like what makes the apex, with 'data-> data-> Data Load XML Workshop'.
I tried to create it using this link # 9170494
but when loading the file and send it (current executing the "sp") sends the error "ORA-22285: file for FILEOPEN operation or non-existent directory.
I could slightly auxiliary
concerning
This idea is troubling for me.
The XML file DOES NOT CHANGE. This is the goal. You have a DTD/XST that defines where in the XML hierarchy, a data element is and (so) how to access it. With this information, you can hardcode things.
Therefore, you should have no reason for that functionality 'map the data column in the table column"of the data loader since all mappings will be always the same.
As a simple INSERT... The SELECT statement can (and should) be used.
(use the FUSION if you update / insert data).
I copy + paste some of my code in a procedure that I use.
You will need to replace the parameter name (p_filename) with the value of appropriate link (name of item)
declare l_XML XMLType; begin /* get file from APEX WWV_FLOW_FILES */ begin select XMLType( blob_content, 1 ) -- 1 means that the file is USACII encoded. this may need to be changed. into l_XML from wwv_flow_files where name = p_filename; -- replace this with the appropriate ITEM NAME exception when no_data_found then raise_application_error( -20001, 'not in FLOW: ''' || p_filename || '''' ); end; /* you'll need to figure this one out */ INSERT INTO T (...) SELECT .. FROM XMLTable( '/' pasing l_xml columns
PATH -- repeat for each "column" you want to extract ); delete from wwv_flow_files where name=p_filename; end; -
How can I parse the XML file using the Oracle's Sql query.
Hi all
I have an XML file that must analyze and display the result according to the following example
Can you please recommend me an approach to get the result.
For example, here is my XML:
<? XML version = "1.0" encoding = "UTF-8"? >
< xmlns:pi = "urn:com.workday / picof pi: Extract_Employees" >
< IP: employee >
< Additional_Information: pi > < pi: pi function: PriorValue = "" > Intern - masteri¿½s < / pi: function >
< / pi: Additional_Information >
< / pi: employee >
< / pi: Extract_Employees >
Databases:
Oracle Database 10 g Enterprise Edition release 10.2.0.3.0 - production
SQL > SELECT * FROM NLS_DATABASE_PARAMETERS;
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS.,.
WE8ISO8859P1 NLS_CHARACTERSET
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-RR
NLS_DATE_LANGUAGE AMERICAN
NLS_SORT BINARY
NLS_TIME_FORMAT HH.MI. SSXFF AM
NLS_TIMESTAMP_FORMAT-DD-MON-RR HH.MI. SSXFF AM
NLS_TIME_TZ_FORMAT HH.MI. SSXFF AM TZR
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI. SSXFF AM TZR
NLS_DUAL_CURRENCY $
BINARY NLS_COMP
NLS_LENGTH_SEMANTICS BYTES
NLS_NCHAR_CONV_EXCP FAKE
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_RDBMS_VERSION 10.2.0.3.0
The Xml file above with UTF-8 character sets which is multi bytes.
But in my character database is WE8ISO8859P1 for example ISO-8859-1 (single-byte character set)
SQL > SELECT extractValue (Value (x) ', ' / pi:Employee/pi:Additional_Information/pi:Job_Title','xmlns:pi="urn:com.workday/picof ' ')
TABLE (XMLSequence (extract (XMLType (bfilename('XMLDIR','XML_Issue_227176.xml'), nls_charset_id ('AL32UTF8')),'/ pi: Employee ',' xmlns:pi="urn:com.workday/picof"'))) x;)))
which gives the following error:
Error:
ORA-31011: XML parsing failed
ORA-19202: an error has occurred in the processing of XML
LPX-00200: could not convert from UTF-8 encoding to ISO-8859-1
Error on line 1
ORA-06512: at "SYS." XMLTYPE", line 295
ORA-06512: at line 1
Also I tried with this
SQL > SELECT convert (extractValue (Value (x), ' / pi:Employee/pi:Additional_Information/pi:Job_Title','xmlns:pi="urn:com.workday/picof"'),'WE8ISO8859P1 ', 'UTF8'))
TABLE (XMLSequence (extract (XMLType (bfilename('XMLDIR','XML_Issue_227176.xml'), nls_charset_id ('AL32UTF8')),'/ pi: Employee ',' xmlns:pi="urn:com.workday/picof"'))) x;)))
The same error is according to the above error message.
Please help in this regard.
Thank you and best regards,
SandrineYou know the code of real character behind "" or you receive the file like that?
For the record, "" is the wildcard of UTF-8 (0xEFBFBD), so that the original character of the means has already been replaced and that very probably the file was not coded properly in the first place.
With respect to the resolution of the problem, try another method to read the file:
SQL> select value from nls_database_parameters where parameter = 'NLS_CHARACTERSET'; VALUE ---------------------------------------- WE8ISO8859P15 SQL> SELECT x.* 2 FROM XMLTable( 3 XMLNamespaces(default 'urn:com.workday/picof') 4 , '/Extract_Employees/Employee' 5 passing xmltype( 6 dbms_xslprocessor.read2clob( 7 'COP_DIR' 8 , 'XML_Issue_227176.xml' 9 , nls_charset_id('AL32UTF8') 10 ) 11 ) 12 columns job_title varchar2(30) path 'Additional_Information/Job_Title' 13 ) x 14 ; JOB_TITLE ------------------------------ Intern - Master¿s
-
Manage the XML files in the workspace tool
Hello
I developed a workspace tool that was working until I have add the report XML file IO > XML > XML Parser.
I can't add any VI of this palette to my worksapce tool. I get an error when trying to open the workspace tool if one of these screws is inside my tool.
The error is:
In my workspace tool, I need to open/create/modify and save XML files.
I am in a position to use property nodes and node invoke for this type of files. And I already replace all screws of NI_XML.lvlib for nodes of property and call the nodes. But there are 2 screws that actually, I'm still unable to find the solution for them.
Who are the NI_XML.lvlib:New.vi and the NI_XML.lvlib: Close .vi, because they are protected by Word.
Anyone has idea how to solve this problem?
I noticed a few screws of this palette XML using a dll. For example the first matched NI_XML.lvlib:Get Node.vi this interior uses the DOMUserDefRef.dll.
I saw this dll functions and there is a for close, which might be the one they use inside the Close.vi. The function is DUXDocumentClose.
I need this because you cannot close a XML reference with close Reference.vi.
I need to replace the 3 screws
You can do it in the manner that main vi is only as .vi. Dependencies must go to llb in the same folder as vi main.
You can look at some of the tools here: https://github.com/NIVeriStandAdd-Ons/
-
Reading data from an XML file with the same parent tag
We have the XML file that is stored in a CLOB column. We can typecast the CLOB to XML and access to a particular value. We cannot do the same in the case of same parent tag. We read the amount claimed for LABOUR, the FREIGHT_DUTY and MEALS. Can anyone help us.
SELECT EXTRACTVALUE (XMLTYPE.createXML (CLAIM_SNAPSHOT_STRING),'path / text () ')
IN ln_hl_labor_hrs_on_job
OF TAV_DC_031A_CLAIM_AUDIT_XML
WHERE CLAIM_AUDIT_ID = 3799;
< paymentComponents class = "dΘfinir" >
< company.domain.claim.payment.PaymentComponent >
< id > 30310 / < ID >
< version > 0 < / version >
< forCategory class = "company.domain.claim.payment.CostCategory" >
< id > 6 / < ID >
< version > 1 < / version >
Meals from < name > < / name >
< code > < code > MEALS
< description > meal < / description >
< / forCategory >
< claimedAmount >
< amount > 0.00 < / amount >
"< reference currency ="... /... /.. /.. /.. /serviceInformation/ServiceDetail/laborPerformed/company.domain.claim.LaborDetail/laborRate/currency"/ >
< / claimedAmount >
< /company.domain.claim.payment.PaymentComponent >
< company.domain.claim.payment.PaymentComponent >
< id > 30311 / < ID >
< version > 0 < / version >
< forCategory class = "company.domain.claim.payment.CostCategory" >
< id > 3 < /ID >
< version > 1 < / version >
< name > work < / name >
< code > < code > WORK
< description > work < / description >
< / forCategory >
< claimedAmount >
< amount > 217.00 < / amount >
"< reference currency ="... /... /.. /.. /.. /serviceInformation/ServiceDetail/laborPerformed/company.domain.claim.LaborDetail/laborRate/currency"/ >
< / claimedAmount >
< /company.domain.claim.payment.PaymentComponent >
< company.domain.claim.payment.PaymentComponent >
< id > < /ID > 30312
< version > 0 < / version >
< forCategory class = "company.domain.claim.payment.CostCategory" >
< id > 5 / < ID >
< version > 1 < / version >
< name > point freight and duty < / name >
< code > < code > FREIGHT_DUTY
< description > point freight and duty < / description >
< / forCategory >
< claimedAmount >
< amount > 0.00 < / amount >
"< reference currency ="... /... /.. /.. /.. /serviceInformation/ServiceDetail/laborPerformed/company.domain.claim.LaborDetail/laborRate/currency"/ >
< / claimedAmount >
< /company.domain.claim.payment.PaymentComponent >
< / paymentComponents >
Kind regards
Franck Giri
SQL> with t 2 as 3 ( 4 select 5 xmltype 6 ( 7 '
8 ' 54 ) xml_data 55 from dual 56 ) 57 select t1.* 58 from t 59 , xmltable 60 ( 61 '/paymentComponents/company.domain.claim.payment.PaymentComponent' passing t.xml_data 62 columns 63 code varchar2(20) path 'forCategory/code', 64 amount number path 'claimedAmount/amount' 65 ) t1; CODE AMOUNT -------------------- ---------- MEALS 0 LABOR 217 FREIGHT_DUTY 0 SQL>9 2330310 100 1112 186 131 14Meals 15MEALS
16Meals 1719 220.00 2021 24 3830311 250 2627 333 281 29Labor 30LABOR
31Labor 3234 37217.00 3536 39 5330312 400 4142 485 431 44Item Freight And Duty 45FREIGHT_DUTY
46Item Freight And Duty 4749 520.00 5051
Maybe you are looking for
-
Satellite P200 - option SATA missing after upgrading the BIOS
Hey guys!First sorry for my englichSo I have a toshiba satellite p200 1jy upgrade the version of the bios (Phoenix bios) 2.70, but when I update upward I don't have the option of ahci sata or ide mode, I do not have this option, but I had before upgr
-
How to generate random curves under image control?
Hello I'm still in the learning process LV my current objective is to have a circle drawn in the image optimization to move everything in the path of a curved line. The problem is that whenever I run the VI a new different trajectory is programatical
-
Dynamic drop-down list in the Bay of cluster
I have a table of cluster that contains two drop-down list boxes. The first drop-down list box control which Articles of the second drop-down list box by writing in the node property [StringsAndValues] for the second box. The problem I have is when I
-
Addition of Vista Premium Home Edition basic
I had Vista Premium Home Basic addition with my Toshiba U400. Due to some problems, I had to format my laptop. Now, after the system, I realized that I don't have the recovery disk. I have the genuine cd key, but no operating system. Can you please l
-
BRAVIA tv is not listed as device
I have connectedmy bravia hdtv home network and try to use wmp like server, but won't list tv. whenever I have change it share media files turns itself off and says he is a missing component. What gives?