Error in xml format
hi all,
i am using Forms [32 Bit] Version 6.0.8.24.1 (Production)
Oracle Database 10g Release 10.2.0.1.0 - Production
i have to generate a file in xml format.
but i between the file i am getting the following error
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
Whitespace is not allowed at this location. Error processing resource but before this error, i am the data what i suppose to get.
what this error means?
pleas help me to sort it out.
Thanks..
Edited by: GD on Apr 4, 2011 1:33 AM
hi,
the error is due to the special character('&') which is present in the data. so these special characters has to be replaced.
the list of special characters are
& -&
< -<
->" -quot
' -'
so that special characters has to be replaced in xml conversion.
if any other special characters also involved then please let me know.
Thanks..
Similar Messages
-
Hi All,
We have a scenario of FTP-->PI---> Webservice. While triggering the data in the FTP, it is failing in the PI with the below error
SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Server was unable to read request. ---> There is an error in XML document (1, 447). ---> Input string was not in a correct format.
Can you please help?Hi Raja- It seems to be a data quality issue.
Check for the value @ 1447 position in the xml message that you are trying to send to web service..
may be a date filed/decimal value which is not in expected format. -
Error in outputting xml formatted data
Hello,
I'm trying to output xml formatted data using apex.
At about 70% into the formatted output I get this in the browser:
<descript>punct= & > < /,() &</descript>
</row>
- <row The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
Only one top level element is allowed in an XML document. Error processing resource 'http://apex.oracle.com/pls/otn/f?p=158...
<script language="JavaScript1.1" type="text/javascript">
-^
m">>
<DIVI have a 600 row table (dml below) with identical string in each row of the descript column. (I put in some special characters just to push it through the escape function for html. It is displaying the text correctly.)
The page has one report region (plsql below).
The page template is stripped down.
My local results are identical to the otn hosted workspace.
I did dump the table in xml format and displayed the dump file in browser without a problem, so I'm missing something in the code.
Thank you.
Albert
On OTN webspace, go to http://apex.oracle.com/pls/otn/f?p=15866:1:1291425545573680200:::::
plsql
declare
xdescript varchar2(4000);
begin
-- xml preface is in the page template
-- htp.p('<?xml version="1.0"?>');
htp.p('<rowset>');
begin
for item in
(select descript,cid from receipts order by cid)
loop
htp.p ('<row>');
xdescript := htf.escape_sc(item.descript);
htp.p('<cid>' || item.cid || '</cid>');
htp.p('<descript>'|| xdescript || '</descript>');
htp.p('</row>');
end loop;
end;
htp.p ('</rowset>');
end;
dml
CREATE TABLE "RECEIPTS"
( "CID" NUMBER,
"AMOUNT" NUMBER NOT NULL ENABLE,
"CLEARED" DATE,
"DESCRIPT" VARCHAR2(80),
"DATEENTERED" DATE DEFAULT SYSTIMESTAMP,
"CHECKNBR" NUMBER,
"CLEARSEQ" NUMBER DEFAULT 0,
CONSTRAINT "RECEIPTS_PK" PRIMARY KEY ("CID") ENABLE
CREATE SEQUENCE "RECEIPTS_SEQ" MINVALUE 1 MAXVALUE 999999999999999999999999999
INCREMENT BY 1 START WITH 4319 CACHE 20 NOORDER NOCYCLE
CREATE OR REPLACE TRIGGER "BI_RECEIPTS"
BEFORE INSERT ON "RECEIPTS"
FOR EACH ROW
BEGIN
SELECT "RECEIPTS_SEQ".NEXTVAL INTO :NEW.CID FROM DUAL;
END;
ALTER TRIGGER "BI_RECEIPTS" ENABLE
/May be it helps you. I use SQL/XML and APEX Application Process to generate XML succesfully
Here is the result:
http://htmldb.oracle.com/pls/otn/f?p=9774:101:0:APPLICATION_PROCESS=RSSNEWEVENTS
and here is the Process Text source:
declare
a clob;
begin
owa_util.mime_header( ccontent_type => 'text/xml', bclose_header => TRUE, ccharset => 'utf-8');
htp.prn('<?xml version="1.0" encoding="UTF-8"?>');
select
XMLTYPE.getStringVal(
XMLElement("rss",
XMLAttributes('2.0' as version),
XMLElement("channel",
XMLConcat(
XMLElement("title",'iActiveLife - novinky'),
XMLElement("link",'http://www.iactivelife.cz/'),
XMLElement("description",'iActiveLife - Zajímavý ivot snadněji'),
XMLElement("language",'cs'),
XMLElement("pubdate",''),
XMLAgg(
XMLElement("item",
XMLConcat(
XMLElement("title",event_name),
XMLElement("link",'http://htmldb.oracle.com/pls/otn/f?p=' || v('APP_ID') || ':37:' || v('SESSION') || '::NO::P37_EVENT_ID:' || event_id),
XMLElement("description",'')
) into a
from (
select event_id,event_name,issue_date, last_update_order
from (
select events.event_id, events.event_name, events.issue_date, rank () over (order by events.issue_date desc) as last_update_order
from events
where exists ( select * from opportunities where events.event_id=opportunities.event_id and opportunities.user_id is not null)
order by events.issue_date desc)
where last_update_order<=10
htp.prn(a);
end; -
Error: Conversion of complete file content of 'filename here' to XML format
"Error: Conversion of complete file content of 'filename here' to XML format failed"
We process inbound files every hour, we now got this message we have never seen. But every hour, for three hours, one in many files that are processed get this error. But the file ends with success, and after spot checking the file looks like it made it into SAP.
What is happening? Anybody know?
Thank-You.hey
did u see any adapter with red button?
i m pretty sure there will some sender adapter with red button(meaning error)
also whatever message failed,can u copy that payload from sxmb_moni and test the message mapping under test tab in IR
thanx
ahmad -
Error in back up with xml format
Hi
when i was getting to backup the database with xml format . iam getting this type of errors..
The 'DimensionID' required element is missing under Envelope/Body/Execute/Command/Alter/ObjectDefinition/Cube/Dimensions/Dimension
at line 21, column 28 (namespace 'http://schemas.microsoft.com/analysisservices/2003/engine.
how to solve the issues ..
please help me..
thanksHi Sheshu,
According to your description, you are experiencing the issue "The 'DimensionID' required element is missing under....." when back up you databased using XML format, right?
After investigate this issue, the underlying cause is not fully known. You can process the database and then backup it again. Here are blogs that describe how to backup SQL Server Analysis Services using XMLA, please see:
http://www.sqlservergeeks.com/sql-server-backing-up-analysis-services-database-automatically-part-1/
http://www.ssas-info.com/analysis-services-scripts/2679-script-to-backup-ssas-database-and-delete-old-backup-files
If the issue persists, please provide us more information about it, so that we can make further analysis.
Regards,
Charlie Liao
TechNet Community Support -
Hello
if I in Integration Directory with one Communication Channel in the menu service
display xml format clicks comes to this error message;
com.sap.aii.ibdir.sbeans.misc.DirSpecMiscServicesRemote_Stub.wsapi_getApiXmlForXiReference(Lcom/sap/aii/ib/bom/gen/XiReference;Z)Ljava/lang/String;
Internal problem occurred (INTERNAL_PROBLEM)
MESSAGE ID: com.sap.aii.utilxi.swing.framework.rb_exceptions.INTERNAL_PROBLEM
STACKTRACE:
com.sap.aii.utilxi.swing.framework.FrameworkException: Internal problem occurred
at com.sap.aii.utilxi.swing.toolkit.ExceptionDialog.init(ExceptionDialog.java:116)
at com.sap.aii.utilxi.swing.toolkit.ExceptionDialog.(ExceptionDialog.java:93)
at com.sap.aii.utilxi.swing.toolkit.Guitilities.showExceptionDialog(Guitilities.java:1137)
at com.sap.aii.utilxi.swing.framework.ExecutionContext.executeSafe(ExecutionContext.java:162)
at com.sap.aii.utilxi.swing.framework.CommandAction.actionPerformed(CommandAction.java:69)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at com.sap.plaf.frog.FrogMenuItemUI$MouseInputHandler.mouseReleased(FrogMenuItemUI.java:833)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
com.sap.aii.ibdir.sbeans.misc.DirSpecMiscServicesRemote_Stub.wsapi_getApiXmlForXiReference(Lcom/sap/aii/ib/bom/gen/XiReference;Z)Ljava/lang/String;
STACKTRACE:
java.lang.AbstractMethodError: com.sap.aii.ibdir.sbeans.misc.DirSpecMiscServicesRemote_Stub.wsapi_getApiXmlForXiReference(Lcom/sap/aii/ib/bom/gen/XiReference;Z)Ljava/lang/String;
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187)
at $Proxy10.wsapi_getApiXmlForXiReference(Unknown Source)
at com.sap.aii.ibdir.clsif.misc.DirSpecMiscServices.wsapi_getApiXmlForXiReference(DirSpecMiscServices.java:177)
at com.sap.aii.ibdir.gui.convxmlviewer.XMLViewerDialog.initGui(XMLViewerDialog.java:97)
at com.sap.aii.ibdir.gui.convxmlviewer.XMLViewerCommand.execute(XMLViewerCommand.java:75)
at com.sap.aii.utilxi.swing.framework.ExecutionContext.execute(ExecutionContext.java:196)
at com.sap.aii.utilxi.swing.framework.ExecutionContext.executeSafe(ExecutionContext.java:134)
at com.sap.aii.utilxi.swing.framework.CommandAction.actionPerformed(CommandAction.java:69)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at com.sap.plaf.frog.FrogMenuItemUI$MouseInputHandler.mouseReleased(FrogMenuItemUI.java:833)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Version INFO
Runtime Environment
Java version:
1.4.2_11
Version
Service pack:
12
Release:
645_VAL_REL
Latest change:
399837
Sync time:
${sync.time}
please they help me
Yours sincerely
Köse
Message was edited by:
Levent KöseHi
I think the problem is with your Java package
try again by closing ID and reopening again
if this doesnt work try to reinstall Java
or it may occure due to overflow of Java stack.
Just check
Ranjit -
Oracle reports in xml format end with stat_low = 6 stat_high = 0
hi
i have a problem with my reports
i have oracle application 11.5.10.2 on linux 32 redhat 4 update 5
after apply the RUP 6
my character_set is :American_America.AR8MSWIN1256
base lang American
install lang ARABIC
when i generate the reports in xml format i get:
Inventory: Version : 11.5.0
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
ZMCINVTRREG1 module: ZMC Transaction Register Report
Current system time is 04-AUG-2009 14:32:30
+-----------------------------
| Starting concurrent program execution...
+-----------------------------
Arguments
P_BREAK_ID='1'
P_RPT_UOM='2'
P_ORG='223'
P_QTY_PRECISION='3'
P_GLCC_STRUCT_NUM='50289'
P_TXN_DATE_LO='2009/08/04 00:00:00'
P_TXN_DATE_HI='2009/08/04 00:00:00'
P_AUDIT_DETAIL='2'
P_REASON_DETAIL='2'
P_LOC_DETAIL='2'
P_CATEGORY_DETAIL='2'
P_SERIAL_DETAIL='2'
P_LOT_DETAIL='2'
P_CATG_SET_ID='1'
P_CATG_STRUCT_NUM='101'
-- Start of Reports Command --
ar60runb
P_CONC_REQUEST_ID=373985
P_BREAK_ID='1'
P_RPT_UOM='2'
P_ORG='223'
P_QTY_PRECISION='3'
P_GLCC_STRUCT_NUM='50289'
P_TXN_DATE_LO='2009/08/04 00:00:00'
P_TXN_DATE_HI='2009/08/04 00:00:00'
P_AUDIT_DETAIL='2'
P_REASON_DETAIL='2'
P_LOC_DETAIL='2'
P_CATEGORY_DETAIL='2'
P_SERIAL_DETAIL='2'
P_LOT_DETAIL='2'
P_CATG_SET_ID='1'
P_CATG_STRUCT_NUM='101'
report=/oraapp/prodappl/inv/11.5.0/reports/US/INVTRREG.rdf
batch=yes
destype=file
desname=/oraapp/prodcomn/admin/out/PROD_apps/o373985.out
desformat=XML
-- End of Reports Command --
Request language is :
AMERICAN
Request territory is :
AMERICA
XML_REPORTS_XENVIRONMENT is set to:
/oraapp/prodora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
Enabling XML_REPORTS_ENVIRONMENT based environment switching
The Character-Set of the System is:
AR8MSWIN1256
Environment will now switch to UTF-8 code-set.
Parts of this log file may not display correctly
as a result. This is an expected behavior.
Converting parameters to UTF-8
-- Start of Reports Command Converted to UTF-8 --
ar60runb
P_CONC_REQUEST_ID=373985
P_BREAK_ID='1'
P_RPT_UOM='2'
P_ORG='223'
P_QTY_PRECISION='3'
P_GLCC_STRUCT_NUM='50289'
P_TXN_DATE_LO='2009/08/04 00:00:00'
P_TXN_DATE_HI='2009/08/04 00:00:00'
P_AUDIT_DETAIL='2'
P_REASON_DETAIL='2'
P_LOC_DETAIL='2'
P_CATEGORY_DETAIL='2'
P_SERIAL_DETAIL='2'
P_LOT_DETAIL='2'
P_CATG_SET_ID='1'
P_CATG_STRUCT_NUM='101'
report=/oraapp/prodappl/inv/11.5.0/reports/US/INVTRREG.rdf
batch=yes
destype=file
desname=/oraapp/prodcomn/admin/out/PROD_apps/o373985.out
desformat=XML
-- End of Reports Command --
XML_REPORTS_XENVIRONMENT is :
/oraapp/prodora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
XENVIRONMENT is set to /oraapp/prodora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
Previous NLS_LANG Environment Variable was :
American_America.AR8MSWIN1256
Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
American_America.UTF8
stat_low = 6
stat_high = 0
emsg:was terminated by signal 6
*** glibc detected *** double free or corruption (!prev): 0x08bf6a78 ***
Report Builder: Release 6.0.8.25.0 - Production on Tue Aug 4 14:32:30 2009
(c) Copyright 1999 Oracle Corporation. All rights reserved.
Enter Username:
Reset original NLS_LANG in environment as :
American_America.AR8MSWIN1256
Program was terminated by signal 6
Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 373985.
Review your concurrent request log and/or report output file for more detailed information.
Executing request completion options...
------------- 1) PUBLISH -------------
Beginning post-processing of request 373985 on node APPS at 04-AUG-2009 14:32:37.
Post-processing of request 373985 completed at 04-AUG-2009 14:32:38.
Finished executing request completion options.
Concurrent request completed
Current system time is 04-AUG-2009 14:32:38
can any one help me with it????hi,,,
it seems OS package version conflict
Please check glibc and openmotif version (its responsible for reports)
and
Set the environment variable MALLOC_CHECK_=0 and bounce the Concurrent Managers
MALLOC_CHECK_ can be changed in two places :-
1. Add this to the $APPL_TOP/custom<TWO_TASK>_<HOSTNAME>.env
MALLOC_CHECK_=0
Then restart the concurrent managers and retest
2. Change it in the adovars.env file
Again bounce the concurrent managers and retest
THANKS (ZzZ)
Edited by: zzz on Aug 5, 2009 8:59 AM
Edited by: ZzZ on Aug 5, 2009 9:00 AM -
Concurrent Program Open in XML format Instead of PDF in R12
Hi ,
I register 1 concurrent program and set its output in "XML" also attach this CP with XML template , when i run CP it show warning but output show in XML format instead of PDF format which is define in XML Template .
Below text is log file of CP
When i run concurrent program from oracle r12
Custom Application: Version : UNKNOWN
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
XXSGHAPCPV module: SGH Payment Voucher Report
Current system time is 18-SEP-2012 10:12:50
+-----------------------------
| Starting concurrent program execution...
+-----------------------------
Arguments
P_ORG_ID='88'
P_VOUCHER_NUMBER='60000001'
P_VOUCHER_NUMBER_TO='60000001'
Forcing NLS_NUMERIC_CHARACTERS to: '.,' for XDO processing
Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
AMERICAN_SAUDI ARABIA.AR8MSWIN1256
Enter Password:
REP-0004: Warning: Unable to open user preference file.
Report Builder: Release 10.1.2.3.0 - Production on Tue Sep 18 10:12:51 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Start of log messages from FND_FILE
End of log messages from FND_FILE
Executing request completion options...
Output file size:
1703
------------- 1) PUBLISH -------------
Beginning post-processing of request 1218186 on node ERPPRDAS1 at 18-SEP-2012 10:12:53.
Post-processing of request 1218186 failed at 18-SEP-2012 10:16:53 with the error message:
The Output Post-processor is running but has not picked up this request.
No further attempts will be made to post-process this request, and the request will be marked
with Warning status.
Setting the profile option Concurrent: OPP Response Timeout to a higher value may be necessary.
------------- 2) PRINT -------------
Not printing the output of this request because post-processing failed.
Finished executing request completion options.
Concurrent request completed
Current system time is 18-SEP-2012 10:16:53
Thanks ,
Zulqarnainplz see
R12: Request Logs Contain the Message "REP-0004: Warning: Unable to open user preference file" [ID 1120529.1]
Concurrent Processing - Concurrent Reports Failing With Errors REP-0004,REP-0082 and REP-0104 [ID 844976.1]
R12: Executing a Report fails with REP-0004: Warning: Unable to open user preference file. [ID 1303903.1]
also
- xml output is correct?
- what type of execution method for cp?
- when you run cp the template picked up for cp? -
Hi,
I am struck with one error in opening the xml file. Pls provide me your inputs.
I am using the pl/sql script for outbounding the data in .xml format. But after creating the file successfully I am not able to open it in the explorer. The data having '&' in one of the columns and it will be available in data in many areas. Where as if I try to create it the same with Oracle report by using 'xml' as output, then I am not getting this issue. And I am able to open the same in explorer perfectly.
Here I am pasting the script which I've created
create or replace PROCEDURE GETXML_TAG(ERRBUT OUT VARCHAR2,
RETCODE OUT VARCHAR2,
P_DIR_NAME VARCHAR2)
IS
v_record_data varchar2(4000) := null;
v_order_id varchar2(50) := null;
v_order_date varchar2(50) := null;
v_order_mode varchar2(50) := null;
v_order_total varchar2(50) := null;
v_file_dir varchar2(100):= '/usr/tmp';
CURSOR cur_hdr IS
SELECT DISTINCT MINISTRY_CODE, DEPT_CODE, ''ENTITY_CODE
FROM XGBZ_FIN_STAGE_ACS
WHERE tx_timestamp IS NULL;
CURSOR cur_line(p_min_code IN VARCHAR2,
p_dept_code IN VARCHAR2) IS
SELECT seg_no,
seg_code,
to_char(seg_description) seg_description,
start_date,
end_date,
status,
disable_flag
FROM xgbz_fin_stage_acs
WHERE tx_timestamp IS NULL
AND ministry_code =p_min_code
AND dept_code = p_dept_code;
BEGIN
v_filename := 'GEBIZ_EPO'||TO_CHAR(SYSDATE,'DDMMYYYYHH24MI')||'.xml';
f_xml_file := UTL_FILE.FOPEN(v_file_dir, v_filename, 'W');
v_record_data := '<?xml version="1.0" encoding="UTF-8"?>';
UTL_FILE.put_line(f_XML_FILE, v_RECORD_DATA);
UTL_FILE.put_line(f_XML_FILE, '<GEBIZ_ACCOUNT_SEGMENT>');
dbms_output.put_line('step 1 '||v_file_dir||'-'||v_filename);
FOR cur_hdr_rec IN cur_hdr
LOOP
dbms_output.put_line('step 2 ');
UTL_FILE.put_line(f_XML_FILE, '<HEADER>');
UTL_FILE.put_line(f_XML_FILE,'<MINISTRY_CODE>' || cur_hdr_rec.ministry_code || '</MINISTRY_CODE>');
UTL_FILE.put_line(f_XML_FILE,'<DEPT_CODE>' || cur_hdr_rec.dept_code || '</DEPT_CODE>');
UTL_FILE.put_line(f_XML_FILE,'<ENTITY_CODE>' || cur_hdr_rec.entity_code || '</ENTITY_CODE>');
UTL_FILE.put_line(f_XML_FILE, '</HEADER>');
FOR cur_line_rec IN cur_line(cur_hdr_rec.ministry_code, cur_hdr_rec.dept_code)
LOOP
dbms_output.put_line('step 3 ');
UTL_FILE.put_line(f_XML_FILE, '<DETAILS>');
UTL_FILE.put_line(f_XML_FILE, '<SEGEMENT>');
UTL_FILE.put_line(f_XML_FILE,'<NUMBER>' || cur_line_rec.seg_no|| '</NUMBER>');
UTL_FILE.put_line(f_XML_FILE,'<CODE>' || cur_line_rec.seg_no|| '</CODE>');
UTL_FILE.put_line(f_XML_FILE,'<DESCRIPTION>' || cur_line_rec.seg_description|| '</DESCRIPTION>');
UTL_FILE.put_line(f_XML_FILE,'<START_DATE>' || cur_line_rec.start_date|| '</START_DATE>');
UTL_FILE.put_line(f_XML_FILE,'<END_DATE>' || cur_line_rec.end_date|| '</END_DATE>');
UTL_FILE.put_line(f_XML_FILE,'<STATUS>' || cur_line_rec.status|| '</STATUS>');
UTL_FILE.put_line(f_XML_FILE,'<DELETE_FLAG>' || cur_line_rec.disable_flag|| '</DELETE_FLAG>');
UTL_FILE.put_line(f_XML_FILE, '</SEGEMENT>');
UTL_FILE.put_line(f_XML_FILE, '</DETAILS>');
END LOOP;
END LOOP;
dbms_output.put_line('step 4 ');
UTL_FILE.put_line(f_XML_FILE, '</GEBIZ_ACCOUNT_SEGMENT>');
UTL_FILE.FCLOSE(f_XML_FILE);
EXCEPTION
WHEN UTL_FILE.INVALID_OPERATION THEN
dbms_output.put_line('Invalid Operation For '|| v_filename);
UTL_FILE.FCLOSE_ALL;
WHEN UTL_FILE.INVALID_PATH THEN
dbms_output.put_line('Invalid Path For '|| v_filename);
UTL_FILE.FCLOSE_ALL;
WHEN UTL_FILE.INVALID_MODE THEN
dbms_output.put_line('Invalid Mode For '|| v_filename);
UTL_FILE.FCLOSE_ALL;
WHEN UTL_FILE.INVALID_FILEHANDLE THEN
dbms_output.put_line('Invalid File Handle '|| v_filename);
UTL_FILE.FCLOSE_ALL;
WHEN UTL_FILE.WRITE_ERROR THEN
dbms_output.put_line('Invalid Write Error '|| v_filename);
UTL_FILE.FCLOSE_ALL;
WHEN UTL_FILE.READ_ERROR THEN
dbms_output.put_line('Invalid Read Error '|| v_filename);
UTL_FILE.FCLOSE_ALL;
WHEN UTL_FILE.INTERNAL_ERROR THEN
dbms_output.put_line('Internal Error');
UTL_FILE.FCLOSE_ALL;
WHEN OTHERS THEN
dbms_output.put_line('Other Error '||'SQL CODE: '||SQLCODE||' Messg: '||SQLERRM);
UTL_FILE.FCLOSE_ALL;
END GETXML_TAG;
The file I am generating at the server level:
EPO150320111915.xml
<?xml version="1.0" encoding="UTF-8"?>
<GEBIZ_ACCOUNT_SEGMENT>
<HEADER>
<MINISTRY_CODE>RPO</MINISTRY_CODE>
<DEPT_CODE>000</DEPT_CODE>
<ENTITY_CODE></ENTITY_CODE>
</HEADER>
<DETAILS>
<SEGEMENT>
<NUMBER>1</NUMBER>
<CODE>1</CODE>
<DESCRIPTION>Republic Polytechnic</DESCRIPTION>
<START_DATE></START_DATE>
<END_DATE></END_DATE>
<STATUS>A</STATUS>
<DELETE_FLAG></DELETE_FLAG>
</SEGEMENT>
</DETAILS>
<DETAILS>
<SEGEMENT>
<NUMBER>2</NUMBER>
<CODE>2</CODE>
<DESCRIPTION>Operating Grant</DESCRIPTION>
<START_DATE></START_DATE>
<END_DATE></END_DATE>
<STATUS>A</STATUS>
<DELETE_FLAG></DELETE_FLAG>
</SEGEMENT>
</DETAILS>
<DETAILS>
<SEGEMENT>
<NUMBER>2</NUMBER>
<CODE>2</CODE>
<DESCRIPTION>Dev Grant-Renovation to Temp Campus Temp</DESCRIPTION>
<START_DATE></START_DATE>
<END_DATE></END_DATE>
<STATUS>A</STATUS>
<DELETE_FLAG></DELETE_FLAG>
</SEGEMENT>
</DETAILS>
<DETAILS>
<SEGEMENT>
<NUMBER>2</NUMBER>
<CODE>2</CODE>
<DESCRIPTION>Dev Grant-Renovation to Temp Campus Main</DESCRIPTION>
<START_DATE></START_DATE>
<END_DATE></END_DATE>
<STATUS>A</STATUS>
<DELETE_FLAG></DELETE_FLAG>
</SEGEMENT>
</DETAILS>
<DETAILS>
<SEGEMENT>
<NUMBER>2</NUMBER>
<CODE>2</CODE>
<DESCRIPTION>Dev Grant-IT for Temp Campus</DESCRIPTION>
<START_DATE></START_DATE>
<END_DATE></END_DATE>
<STATUS>A</STATUS>
<DELETE_FLAG></DELETE_FLAG>
</SEGEMENT>
</DETAILS>
<DETAILS>
<SEGEMENT>
<NUMBER>2</NUMBER>
<CODE>2</CODE>
<DESCRIPTION>Dev Grant-Land Premium for Woodlands Campus</DESCRIPTION>
<START_DATE></START_DATE>
<END_DATE></END_DATE>
<STATUS>A</STATUS>
<DELETE_FLAG></DELETE_FLAG>
</SEGEMENT>
</DETAILS>
<DETAILS>
<SEGEMENT>
<NUMBER>2</NUMBER>
<CODE>2</CODE>
<DESCRIPTION>Dev Grant-Pre-construction of Woodlands Campus</DESCRIPTION>
<START_DATE></START_DATE>
<END_DATE></END_DATE>
<STATUS>A</STATUS>
<DELETE_FLAG></DELETE_FLAG>
</SEGEMENT>
</DETAILS>
<DETAILS>
<SEGEMENT>
<NUMBER>2</NUMBER>
<CODE>2</CODE>
<DESCRIPTION>Dev Grant-FE</DESCRIPTION>
<START_DATE></START_DATE>
<END_DATE></END_DATE>
<STATUS>A</STATUS>
<DELETE_FLAG></DELETE_FLAG>
</SEGEMENT>
</DETAILS>
<DETAILS>
<SEGEMENT>
<NUMBER>2</NUMBER>
<CODE>2</CODE>
<DESCRIPTION>Tax Exempt-Student Dev Welfare Fund</DESCRIPTION>
<START_DATE></START_DATE>
<END_DATE></END_DATE>
<STATUS>A</STATUS>
<DELETE_FLAG></DELETE_FLAG>
</SEGEMENT>
</DETAILS>
<DETAILS>
<SEGEMENT>
<NUMBER>2</NUMBER>
<CODE>2</CODE>
<DESCRIPTION>Tax Exempt-Dev Project Fund</DESCRIPTION>
<START_DATE></START_DATE>
<END_DATE></END_DATE>
<STATUS>A</STATUS>
<DELETE_FLAG></DELETE_FLAG>
</SEGEMENT>
</DETAILS>
<DETAILS>
<SEGEMENT>
<NUMBER>2</NUMBER>
<CODE>2</CODE>
<DESCRIPTION>For Finance Use ONLY</DESCRIPTION>
<START_DATE></START_DATE>
<END_DATE></END_DATE>
<STATUS>A</STATUS>
<DELETE_FLAG></DELETE_FLAG>
</SEGEMENT>
</DETAILS>
<DETAILS>
<SEGEMENT>
<NUMBER>3</NUMBER>
<CODE>3</CODE>
<DESCRIPTION>Library</DESCRIPTION>
<START_DATE></START_DATE>
<END_DATE></END_DATE>
<STATUS>A</STATUS>
<DELETE_FLAG></DELETE_FLAG>
</SEGEMENT>
</DETAILS>
<DETAILS>
<SEGEMENT>
<NUMBER>3</NUMBER>
<CODE>3</CODE>
<DESCRIPTION>Office of Academic Affairs</DESCRIPTION>
<START_DATE></START_DATE>
<END_DATE></END_DATE>
<STATUS>A</STATUS>
<DELETE_FLAG></DELETE_FLAG>
</SEGEMENT>
</DETAILS>
<DETAILS>
<SEGEMENT>
<NUMBER>3</NUMBER>
<CODE>3</CODE>
<DESCRIPTION>Office of Corporate Communications</DESCRIPTION>
<START_DATE></START_DATE>
<END_DATE></END_DATE>
<STATUS>A</STATUS>
<DELETE_FLAG></DELETE_FLAG>
</SEGEMENT>
</DETAILS>
<DETAILS>
<SEGEMENT>
<NUMBER>3</NUMBER>
<CODE>3</CODE>
<DESCRIPTION>Office of Deputy Principal</DESCRIPTION>
<START_DATE></START_DATE>
<END_DATE></END_DATE>
<STATUS>A</STATUS>
<DELETE_FLAG></DELETE_FLAG>
</SEGEMENT>
</DETAILS>
<DETAILS>
<SEGEMENT>
<NUMBER>3</NUMBER>
<CODE>3</CODE>
<DESCRIPTION>Office of Estates</DESCRIPTION>
<START_DATE></START_DATE>
<END_DATE></END_DATE>
<STATUS>A</STATUS>
<DELETE_FLAG></DELETE_FLAG>
</SEGEMENT>
</DETAILS>
<DETAILS>
<SEGEMENT>
<NUMBER>3</NUMBER>
<CODE>3</CODE>
<DESCRIPTION>Office of Finance</DESCRIPTION>
<START_DATE></START_DATE>
<END_DATE></END_DATE>
<STATUS>A</STATUS>
<DELETE_FLAG></DELETE_FLAG>
</SEGEMENT>
</DETAILS>
<DETAILS>
<SEGEMENT>
<NUMBER>3</NUMBER>
<CODE>3</CODE>
<DESCRIPTION>Office of Human Resource</DESCRIPTION>
<START_DATE></START_DATE>
<END_DATE></END_DATE>
<STATUS>A</STATUS>
<DELETE_FLAG></DELETE_FLAG>
</SEGEMENT>
</DETAILS>
<DETAILS>
<SEGEMENT>
<NUMBER>3</NUMBER>
<CODE>3</CODE>
<DESCRIPTION>Office of Industrial & International Services</DESCRIPTION>
<START_DATE></START_DATE>
<END_DATE></END_DATE>
<STATUS>A</STATUS>
<DELETE_FLAG></DELETE_FLAG>
</SEGEMENT>
</DETAILS>
</GEBIZ_ACCOUNT_SEGMENT>
------ end of file
I am able to edit it correctly in notepad, when tried to open at explorer level its not allowing me because of '&'.
Pls confirm what might be the issue.
Regards
NagendraThis is the output:
<?xml version="1.0" encoding="UTF-8" ?>
- <GEBIZ_PO_FUND_STATUS>
- <HEADER>
<ORDER_CODE>RPO000EPO03000086</ORDER_CODE>
<EXTERNAL_SYSTEM_CODE>E</EXTERNAL_SYSTEM_CODE>
<AMENDMENT_NUMBER>0</AMENDMENT_NUMBER>
<VARIATION_NUMBER>0</VARIATION_NUMBER>
- <TOTAL_AMOUNT>
<CURRENCY_CODE>SGD</CURRENCY_CODE>
<CURRENCY_AMOUNT>306</CURRENCY_AMOUNT>
</TOTAL_AMOUNT>
<MINISTRY_CODE>RPO</MINISTRY_CODE>
<DEPARTMENT_CODE>000</DEPARTMENT_CODE>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
</HEADER>
- <ITEMS>
- <ITEM>
<LINE_NUMBER>1</LINE_NUMBER>
<UNIT_OF_MEASURE>RM</UNIT_OF_MEASURE>
<QUANTITY>100</QUANTITY>
<TOTAL_AMOUNT>306</TOTAL_AMOUNT>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
- <LOCATIONS>
- <LOCATION>
<LINE_NUMBER>1</LINE_NUMBER>
<QUANTITY>100</QUANTITY>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
- <DISTRIBUTIONS>
- <DISTRIBUTION>
<LINE_NUMBER>1</LINE_NUMBER>
<QUANTITY>100</QUANTITY>
<CHART_OF_ACCOUNT>1/G01/1ODP/000/220702/0000/0000/0000</CHART_OF_ACCOUNT>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
</DISTRIBUTION>
</DISTRIBUTIONS>
</LOCATION>
</LOCATIONS>
</ITEM>
</ITEMS>
- <HEADER>
<ORDER_CODE>RPO000EPO03000090</ORDER_CODE>
<EXTERNAL_SYSTEM_CODE>E</EXTERNAL_SYSTEM_CODE>
<AMENDMENT_NUMBER>0</AMENDMENT_NUMBER>
<VARIATION_NUMBER>0</VARIATION_NUMBER>
- <TOTAL_AMOUNT>
<CURRENCY_CODE>SGD</CURRENCY_CODE>
<CURRENCY_AMOUNT>4950</CURRENCY_AMOUNT>
</TOTAL_AMOUNT>
<MINISTRY_CODE>RPO</MINISTRY_CODE>
<DEPARTMENT_CODE>000</DEPARTMENT_CODE>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
</HEADER>
- <ITEMS>
- <ITEM>
<LINE_NUMBER>1</LINE_NUMBER>
<UNIT_OF_MEASURE>CQ</UNIT_OF_MEASURE>
<QUANTITY>9000</QUANTITY>
<TOTAL_AMOUNT>4950</TOTAL_AMOUNT>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
- <LOCATIONS>
- <LOCATION>
<LINE_NUMBER>1</LINE_NUMBER>
<QUANTITY>3000</QUANTITY>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
- <DISTRIBUTIONS>
- <DISTRIBUTION>
<LINE_NUMBER>1</LINE_NUMBER>
<QUANTITY>3000</QUANTITY>
<CHART_OF_ACCOUNT>1/G01/1OCC/000/221001/0000/0000/0000</CHART_OF_ACCOUNT>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
</DISTRIBUTION>
</DISTRIBUTIONS>
</LOCATION>
- <LOCATION>
<LINE_NUMBER>2</LINE_NUMBER>
<QUANTITY>3000</QUANTITY>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
- <DISTRIBUTIONS>
- <DISTRIBUTION>
<LINE_NUMBER>1</LINE_NUMBER>
<QUANTITY>3000</QUANTITY>
<CHART_OF_ACCOUNT>1/G01/1OCC/000/221001/0000/0000/0000</CHART_OF_ACCOUNT>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
</DISTRIBUTION>
</DISTRIBUTIONS>
</LOCATION>
- <LOCATION>
<LINE_NUMBER>3</LINE_NUMBER>
<QUANTITY>3000</QUANTITY>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
- <DISTRIBUTIONS>
- <DISTRIBUTION>
<LINE_NUMBER>1</LINE_NUMBER>
<QUANTITY>3000</QUANTITY>
<CHART_OF_ACCOUNT>1/G01/1OCC/000/221001/0000/0000/0000</CHART_OF_ACCOUNT>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
</DISTRIBUTION>
</DISTRIBUTIONS>
</LOCATION>
</LOCATIONS>
</ITEM>
- <ITEM>
<LINE_NUMBER>1</LINE_NUMBER>
<UNIT_OF_MEASURE>CQ</UNIT_OF_MEASURE>
<QUANTITY>9000</QUANTITY>
<TOTAL_AMOUNT>4950</TOTAL_AMOUNT>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
- <LOCATIONS>
- <LOCATION>
<LINE_NUMBER>1</LINE_NUMBER>
<QUANTITY>3000</QUANTITY>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
- <DISTRIBUTIONS>
- <DISTRIBUTION>
<LINE_NUMBER>1</LINE_NUMBER>
<QUANTITY>3000</QUANTITY>
<CHART_OF_ACCOUNT>1/G01/1OCC/000/221001/0000/0000/0000</CHART_OF_ACCOUNT>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
</DISTRIBUTION>
</DISTRIBUTIONS>
</LOCATION>
- <LOCATION>
<LINE_NUMBER>2</LINE_NUMBER>
<QUANTITY>3000</QUANTITY>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
- <DISTRIBUTIONS>
- <DISTRIBUTION>
<LINE_NUMBER>1</LINE_NUMBER>
<QUANTITY>3000</QUANTITY>
<CHART_OF_ACCOUNT>1/G01/1OCC/000/221001/0000/0000/0000</CHART_OF_ACCOUNT>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
</DISTRIBUTION>
</DISTRIBUTIONS>
</LOCATION>
- <LOCATION>
<LINE_NUMBER>3</LINE_NUMBER>
<QUANTITY>3000</QUANTITY>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
- <DISTRIBUTIONS>
- <DISTRIBUTION>
<LINE_NUMBER>1</LINE_NUMBER>
<QUANTITY>3000</QUANTITY>
<CHART_OF_ACCOUNT>1/G01/1OCC/000/221001/0000/0000/0000</CHART_OF_ACCOUNT>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
</DISTRIBUTION>
</DISTRIBUTIONS>
</LOCATION>
</LOCATIONS>
</ITEM>
- <ITEM>
<LINE_NUMBER>1</LINE_NUMBER>
<UNIT_OF_MEASURE>CQ</UNIT_OF_MEASURE>
<QUANTITY>9000</QUANTITY>
<TOTAL_AMOUNT>4950</TOTAL_AMOUNT>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
- <LOCATIONS>
- <LOCATION>
<LINE_NUMBER>1</LINE_NUMBER>
<QUANTITY>3000</QUANTITY>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
- <DISTRIBUTIONS>
- <DISTRIBUTION>
<LINE_NUMBER>1</LINE_NUMBER>
<QUANTITY>3000</QUANTITY>
<CHART_OF_ACCOUNT>1/G01/1OCC/000/221001/0000/0000/0000</CHART_OF_ACCOUNT>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
</DISTRIBUTION>
</DISTRIBUTIONS>
</LOCATION>
- <LOCATION>
<LINE_NUMBER>2</LINE_NUMBER>
<QUANTITY>3000</QUANTITY>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
- <DISTRIBUTIONS>
- <DISTRIBUTION>
<LINE_NUMBER>1</LINE_NUMBER>
<QUANTITY>3000</QUANTITY>
<CHART_OF_ACCOUNT>1/G01/1OCC/000/221001/0000/0000/0000</CHART_OF_ACCOUNT>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
</DISTRIBUTION>
</DISTRIBUTIONS>
</LOCATION>
- <LOCATION>
<LINE_NUMBER>3</LINE_NUMBER>
<QUANTITY>3000</QUANTITY>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
- <DISTRIBUTIONS>
- <DISTRIBUTION>
<LINE_NUMBER>1</LINE_NUMBER>
<QUANTITY>3000</QUANTITY>
<CHART_OF_ACCOUNT>1/G01/1OCC/000/221001/0000/0000/0000</CHART_OF_ACCOUNT>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
</DISTRIBUTION>
</DISTRIBUTIONS>
</LOCATION>
</LOCATIONS>
</ITEM>
</ITEMS>
- <HEADER>
<ORDER_CODE>RPO000EPO03000097</ORDER_CODE>
<EXTERNAL_SYSTEM_CODE>E</EXTERNAL_SYSTEM_CODE>
<AMENDMENT_NUMBER>0</AMENDMENT_NUMBER>
<VARIATION_NUMBER>0</VARIATION_NUMBER>
- <TOTAL_AMOUNT>
<CURRENCY_CODE>SGD</CURRENCY_CODE>
<CURRENCY_AMOUNT>160</CURRENCY_AMOUNT>
</TOTAL_AMOUNT>
<MINISTRY_CODE>RPO</MINISTRY_CODE>
<DEPARTMENT_CODE>000</DEPARTMENT_CODE>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
</HEADER>
- <ITEMS>
- <ITEM>
<LINE_NUMBER>1</LINE_NUMBER>
<UNIT_OF_MEASURE>EA</UNIT_OF_MEASURE>
<QUANTITY>2</QUANTITY>
<TOTAL_AMOUNT>80</TOTAL_AMOUNT>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
- <LOCATIONS>
- <LOCATION>
<LINE_NUMBER>1</LINE_NUMBER>
<QUANTITY>2</QUANTITY>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
- <DISTRIBUTIONS>
- <DISTRIBUTION>
<LINE_NUMBER>1</LINE_NUMBER>
<QUANTITY>2</QUANTITY>
<CHART_OF_ACCOUNT>1/G01/3SIT/000/221103/0000/0000/0000</CHART_OF_ACCOUNT>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
</DISTRIBUTION>
</DISTRIBUTIONS>
</LOCATION>
</LOCATIONS>
</ITEM>
</ITEMS>
- <HEADER>
<ORDER_CODE>RPO000EPO03000097</ORDER_CODE>
<EXTERNAL_SYSTEM_CODE>E</EXTERNAL_SYSTEM_CODE>
<AMENDMENT_NUMBER>0</AMENDMENT_NUMBER>
<VARIATION_NUMBER>0</VARIATION_NUMBER>
- <TOTAL_AMOUNT>
<CURRENCY_CODE>SGD</CURRENCY_CODE>
<CURRENCY_AMOUNT>240</CURRENCY_AMOUNT>
</TOTAL_AMOUNT>
<MINISTRY_CODE>RPO</MINISTRY_CODE>
<DEPARTMENT_CODE>000</DEPARTMENT_CODE>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
</HEADER>
- <ITEMS>
- <ITEM>
<LINE_NUMBER>2</LINE_NUMBER>
<UNIT_OF_MEASURE>EA</UNIT_OF_MEASURE>
<QUANTITY>3</QUANTITY>
<TOTAL_AMOUNT>120</TOTAL_AMOUNT>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
- <LOCATIONS>
- <LOCATION>
<LINE_NUMBER>1</LINE_NUMBER>
<QUANTITY>3</QUANTITY>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
- <DISTRIBUTIONS>
- <DISTRIBUTION>
<LINE_NUMBER>1</LINE_NUMBER>
<QUANTITY>3</QUANTITY>
<CHART_OF_ACCOUNT>1/G01/3SIT/000/221103/0000/0000/0000</CHART_OF_ACCOUNT>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
</DISTRIBUTION>
</DISTRIBUTIONS>
</LOCATION>
</LOCATIONS>
</ITEM>
</ITEMS>
- <HEADER>
<ORDER_CODE>RPO000EPO03000099</ORDER_CODE>
<EXTERNAL_SYSTEM_CODE>E</EXTERNAL_SYSTEM_CODE>
<AMENDMENT_NUMBER>0</AMENDMENT_NUMBER>
<VARIATION_NUMBER>0</VARIATION_NUMBER>
- <TOTAL_AMOUNT>
<CURRENCY_CODE>SGD</CURRENCY_CODE>
<CURRENCY_AMOUNT>1000</CURRENCY_AMOUNT>
</TOTAL_AMOUNT>
<MINISTRY_CODE>RPO</MINISTRY_CODE>
<DEPARTMENT_CODE>000</DEPARTMENT_CODE>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
</HEADER>
- <ITEMS>
- <ITEM>
<LINE_NUMBER>1</LINE_NUMBER>
<UNIT_OF_MEASURE>EA</UNIT_OF_MEASURE>
<QUANTITY>1000</QUANTITY>
<TOTAL_AMOUNT>1000</TOTAL_AMOUNT>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
- <LOCATIONS>
- <LOCATION>
<LINE_NUMBER>1</LINE_NUMBER>
<QUANTITY>1000</QUANTITY>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
- <DISTRIBUTIONS>
- <DISTRIBUTION>
<LINE_NUMBER>1</LINE_NUMBER>
<QUANTITY>1000</QUANTITY>
<CHART_OF_ACCOUNT>1/G01/1OCC/000/221001/0000/0000/0000</CHART_OF_ACCOUNT>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
</DISTRIBUTION>
</DISTRIBUTIONS>
</LOCATION>
</LOCATIONS>
</ITEM>
</ITEMS>
- <HEADER>
<ORDER_CODE>RPO000EPO03000112</ORDER_CODE>
<EXTERNAL_SYSTEM_CODE>E</EXTERNAL_SYSTEM_CODE>
<AMENDMENT_NUMBER>0</AMENDMENT_NUMBER>
<VARIATION_NUMBER>0</VARIATION_NUMBER>
- <TOTAL_AMOUNT>
<CURRENCY_CODE>SGD</CURRENCY_CODE>
<CURRENCY_AMOUNT>7450</CURRENCY_AMOUNT>
</TOTAL_AMOUNT>
<MINISTRY_CODE>RPO</MINISTRY_CODE>
<DEPARTMENT_CODE>000</DEPARTMENT_CODE>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
</HEADER>
- <ITEMS>
- <ITEM>
<LINE_NUMBER>1</LINE_NUMBER>
<UNIT_OF_MEASURE>EA</UNIT_OF_MEASURE>
<QUANTITY>50</QUANTITY>
<TOTAL_AMOUNT>7450</TOTAL_AMOUNT>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
- <LOCATIONS>
- <LOCATION>
<LINE_NUMBER>1</LINE_NUMBER>
<QUANTITY>50</QUANTITY>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
- <DISTRIBUTIONS>
- <DISTRIBUTION>
<LINE_NUMBER>1</LINE_NUMBER>
<QUANTITY>50</QUANTITY>
<CHART_OF_ACCOUNT>1/D03/1OIS/000/220308/0000/0000/0000</CHART_OF_ACCOUNT>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
</DISTRIBUTION>
</DISTRIBUTIONS>
</LOCATION>
</LOCATIONS>
</ITEM>
</ITEMS>
- <HEADER>
<ORDER_CODE>RPO000EPO03000115</ORDER_CODE>
<EXTERNAL_SYSTEM_CODE>E</EXTERNAL_SYSTEM_CODE>
<AMENDMENT_NUMBER>0</AMENDMENT_NUMBER>
<VARIATION_NUMBER>0</VARIATION_NUMBER>
- <TOTAL_AMOUNT>
<CURRENCY_CODE>SGD</CURRENCY_CODE>
<CURRENCY_AMOUNT>175</CURRENCY_AMOUNT>
</TOTAL_AMOUNT>
<MINISTRY_CODE>RPO</MINISTRY_CODE>
<DEPARTMENT_CODE>000</DEPARTMENT_CODE>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
</HEADER>
- <ITEMS>
- <ITEM>
<LINE_NUMBER>1</LINE_NUMBER>
<UNIT_OF_MEASURE>LT</UNIT_OF_MEASURE>
<QUANTITY>1</QUANTITY>
<TOTAL_AMOUNT>175</TOTAL_AMOUNT>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
- <LOCATIONS>
- <LOCATION>
<LINE_NUMBER>1</LINE_NUMBER>
<QUANTITY>1</QUANTITY>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
- <DISTRIBUTIONS>
- <DISTRIBUTION>
<LINE_NUMBER>1</LINE_NUMBER>
<QUANTITY>1</QUANTITY>
<CHART_OF_ACCOUNT>1/G01/1OPT/000/220702/0000/0000/0000</CHART_OF_ACCOUNT>
<FUND_STATUS>COMMITTED</FUND_STATUS>
<FUND_REJECT_REASON />
</DISTRIBUTION>
</DISTRIBUTIONS>
</LOCATION>
</LOCATIONS>
</ITEM>
</ITEMS>
</GEBIZ_PO_FUND_STATUS>
<FUND_REJECT_REASON /> is one of the element where some times I can have data and some times I won't.
This is the script I used for generating that data
SELECT xmlserialize(document
xmlelement("GEBIZ_PO_FUND_STATUS"
, xmlagg(
xmlconcat(hdr, dtls)
as clob indent size = 2
INTO lv_out
FROM (
SELECT xmlelement("HEADER"
, xmlelement("ORDER_CODE", po_cont_code)
, xmlelement("EXTERNAL_SYSTEM_CODE", ext_system_code)
, xmlelement("AMENDMENT_NUMBER", amendment_no)
, xmlelement("VARIATION_NUMBER", variation_no)
, xmlelement("TOTAL_AMOUNT"
, xmlelement("CURRENCY_CODE", currency_code)
, xmlelement("CURRENCY_AMOUNT", total_amount)
, xmlelement("MINISTRY_CODE",ministry_code)
, xmlelement("DEPARTMENT_CODE",dept_code)
, xmlelement("FUND_STATUS", hdr_fund_status)
, xmlelement("FUND_REJECT_REASON", hdr_fund_reject_res)
) hdr
, xmlagg(
xmlelement("ITEMS"
, xmlelement("ITEM"
, xmlelement("LINE_NUMBER", line_no)
, xmlelement("UNIT_OF_MEASURE", uom_code)
, xmlelement("QUANTITY", line_quantity)
, xmlelement("TOTAL_AMOUNT", line_total_amount)
, xmlelement("FUND_STATUS", line_fund_status)
, xmlelement("FUND_REJECT_REASON", line_fund_reject_res)
,xmlelement("LOCATIONS"
,xmlelement("LOCATION"
,xmlelement("LINE_NUMBER", shipment_num)
,xmlelement("QUANTITY",line_location_quantity)
,xmlelement("FUND_STATUS",loc_fund_status)
,xmlelement("FUND_REJECT_REASON",loc_fund_reject_res)
,xmlelement("DISTRIBUTIONS"
,xmlelement("DISTRIBUTION"
,xmlelement("LINE_NUMBER", distribution_num)
,xmlelement("QUANTITY", quantity_ordered)
,xmlelement("CHART_OF_ACCOUNT",chart_account)
,xmlelement("FUND_STATUS", dist_fund_status)
,xmlelement("FUND_REJECT_REASON", dist_fund_reject_res)
) dtls
FROM xgbz_fin_stage_pof_v
GROUP BY po_cont_code,ext_system_code,amendment_no,variation_no,currency_code,total_amount,
ministry_code, dept_code, hdr_fund_status,hdr_fund_reject_res);
When ever, for any of the above columns does not have data that time it is coming like this for eg:
<FUND_REJECT_REASON />
instead of this can I have output like this
<FUND_REJECT_REASON > </FUND_REJECT_REASON>
for those non data elements.
Is that possible .
Thanks for your help.
Regards
Nagendra -
XML reports show in XML format instead of Defult output PDF in R12
I am facing a problem in XML report in oracle R12 ,
when I am running the report ,it through warning msg and output is coming in XML format instead of PDF .
Please let me know the solution.
ZulqarnainI am facing a problem in XML report in oracle R12 ,
when I am running the report ,it through warning msg and output is coming in XML format instead of PDF .What is the warning message?
Please let me know the solution.Please check the OPP log file for any errors. Also, please post the contents of the concurrent request log file here.
https://forums.oracle.com/forums/search.jspa?threadID=&q=XML+AND+Output+AND+PDF&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
Thanks,
Hussein -
Deliver a report in XML format and save it to local file system on the server
We have OBIEE 10.1.3.4 on Redhat linux. We want to have generate a report in XML format and saved it to the server's file system. Did not realize this is s difficult task. Basically
1) How to create a XML report? It is not listed in the output items of a layout template.
2) How to deliver XML the report to local file system. Look into the Delivery section of Admin page. FTP should be the best choice, but does that means that one need to install and run ftp server on the BI server box?
ThanksHi,
Since I still have problems on this subject, I would like to share on how it progresses.
Currently I have a problem of timeout in step "Truncate XML Schema" with the URL that I mentioned above.
The exact error is the following : 7000 : null : com.sunopsis.sql.l: Oracle Data Integrator TimeOut : connection with URL [...]
The connection test is still OK.
I tried to increase the value in the user's pref but there's no change. -
Converting String To XML Format and send as attachment
Hi
My requirement is to convert String into XML Format and that XML File i have to send as an attachment
can any one one give solution for this Problem.
Thank you
Venkatesh.Khi,
i m filling the itab first and converting to xml
itab contaning these data
GS_PERSON-CUST_ID = '3'.
GS_PERSON-FIRSTNAME = 'Bill'.
GS_PERSON-LASTNAME = 'Gates'.
APPEND GS_PERSON TO GT_PERSON.
GS_PERSON-CUST_ID = '4'.
GS_PERSON-FIRSTNAME = 'Frodo'.
GS_PERSON-LASTNAME = 'Baggins'.
APPEND GS_PERSON TO GT_PERSON.
after conversion data is coming like that
#<?xml version="1.0" encoding="utf-16"?>
<CUSTOMERS>
<item>
<customer_id>0003</customer_id>
<first_name>Bill</first_name>
<last_name>Gates</last_name>
</item>
<item>
<customer_id>0004</customer_id>
<first_name>Frodo</first_name>
<last_name>Baggins</last_name>
</item>
</CUSTOMERS>
but errors are 1) # is coming at the first
2)for 'encoding="utf-16"?>', it is not coming perfectly, some other data (iso-8859-1) should come here
can anybody plz solve it.
regards,
viki -
Error converting XML to String
I'm trying to use getXMLString() to put my XML document in a String variable. I get the following when I try to output the String:
<?xml version = '1.0'?>
<ERROR>oracle.xml.sql.OracleXMLSQLException: This object has been closed. If the close() was implicit, and you would like the object not to be closed between calls, see the keepCursorAlive() method</ERROR>
If I just output the XML doc without putting it into a String variable it works fine.
System.out.println(q.getXMLString()); //OK
// get the XML document in string format
String xmlString = q.getXMLString(); //NOT OK
System.out.println(xmlString);
What am I doing wrong? Any help would be great!
Thanks,
MelaniHi,
SMUM_XML_PARSE is a simplified, unreleased and undocumented version of the powerful, released and documented iXML
If you look at the GET_ELEMENT subroutine in that function module, you'll see that the nodes of type CO_NODE_CDATA_SECTION are simply ignored.
The simpliest thing for you, maybe, is to duplicate the code of SMUM_XML_PARSE (as it is rather easy to handle), and add a section to GET_ELEMENT. You'll have also to use IF_IXML_CDATA_SECTION interface and ixml_iid_cdata_section constant.
Documentation is here: [SAP Library: Interface if_ixml_cdata_section|http://help.sap.com/saphelp_nw70/helpdata/en/bb/576658dca511d4990b00508b6b8b11/frameset.htm ]
Best regards,
Sandra -
Error in XML file generation :240416
Hi All,
I am facing problem with XML file generation.
Steps:
1. Source-->Query Transform and maintained Nested Stucture
2. Generated XML fomat from query transform
3. Created XML format file
4. Make XML format as target and given XML generate path
source table-->Query(nested structure)-->XML Format
when I validate the job no errors found.
Note: XSD file is in Local mechine and XML file will be generated in SFTP.
Prooblems:
1. Getting below error
The input XML refers to file which is not part of the definition of this XML Schema format. Check your schema and XML files,
and check that the root element in the XML file corresponds to the root element in the XML Schema
Validate your XML Schema using external schema validators (found at w3.org)
Thanks,
DeepaHi,
I think issue Because in your Query Transform output the Root element is Query and XML target is having some other root element. Make the Query trasform name similar to root element and try... -
Ack file date and time format is same as in source xml format
Hi...All,
1) my scenario is file-rfc-file using BPM,
we are getting file in xml format from source along with timestamp and this data will be going to R/3 and the acknowledgement (success or failure) file will be sending back to source system.
in this sceneario we have to fulfill in the follwing client requirement
File1.<same File1 date and time>.XML
Is it possible to make it as the following? if it is possible
could u please let me know how to fulfill the follwing requirement.
ACK File1.<same File1 date and time>.XML
Where <same File1 date and time> format = u2018YYYYMMDDhhmmssu2019 .
2) Is the XML file name visible in the SAP-XI monitoring screen and will it help to trace the messages?
thanks in advance,
Pasi.Hi,
I didnot under stand your first question coulf you be more specfic.
2. Ans : In general , we will follow the below steps
--First we we check for the file is picked or no, if not see the Sender side CC parameters like mode and path details
--If file was picked then we need to check whether we are using the File content conversion parameters or not if yes we need to check the FCC parameters ,
Goto RWB-Channelmonitoring by the following link
http://host:port/mdt/channelmonitorservlet
select the sender side CC name and check for errors
If no errors in above, goto SXMB_MONI for Integration Engine xml processing , check for successful or error occured black or red color
--if success in SXMB_MONI then we need to check in RWB as above channel monitor now select the receiver side CC
If no errors then check for output file is placed intarget or not
Please reward points if it helps
Thanks
Vikranth
Maybe you are looking for
-
Dynamically passing the values to search help
hi can I pass some values dynamically to search help input field. If I select a profit centre value from a drop down in separate field it should reflect the corresponding values in search help which is cost centre input field ( i/p fields is in a col
-
ORA-01031: insufficient privileges despite oracle belonging to DBA group
DB Version : 10.2.0.4.0 OS Version : Solaris 5.10 Os user oracle already belongs to DBA group. $ id -a uid=1001(oracle) gid=1100(oinstall) groups=1100(oinstall),1800(dba)But, i get the following error $ sqlplus / as sysdba SQL*Plus: Release 10.2.0.4.
-
How to edit an iPhoto 11 photo in PSE10 editor
When I choose Preferences...Advanced, my only choices to edit a photo are in iPhoto or in Photoshop Elements 10 ORGANIZER. I want to edit the photo in PSE10 EDITOR, but that's not a choice. I don't understand how to change that. Any ideas? Thanks,K
-
Modify IT0001 record using dynamic actions
Hello Folks, I have a requirement to modify the data i.e., P0001-VDSK1=P0001-KOSTL+4(6), Whenever Coscenter data changes OrgKey also should be updated with same data. KOSTL 06 0 COST CENTER COPY TO VDSK1-- KOSTL 06 5 P
-
Few Question about components - first project
hello everyone, this is my first Flash Builder php web based and i would like to know if any of these below is possible, if so how? And will it be able to pass the data over to the Database. I already generated a form from the database but i would li