IF statement nested resulting in error XML
Hello
I'm having a terrible time, trying to get my report to stop generating errors, when I load on our server. I completed 1 of 2 reports where I used the IF statements nested, and the 1st report runs without any problems, but it gives me a headache and I don't know why.
The source of data for this report is a query that retrieves all the data.
Here is the code that is contained in a table in my RTF model that fails to run:
<? for-each-group: row; /@RowNumber? > <? sorting: current-group () / DEPTID; ' ascending '; type_donnees = "number"? > <? sorting: current-group () / RECEIPT_DT;' ascending '; data-type = "text"? >
<? If: (number (DEPTID) = 8110) or (number (DEPTID) = 9674)? >
<? RECEIPT_ID? >
<? RECEIPT_DT? >
<? LINE_NBR? >
<? DEPTID? >
<? MERCHANDISE_AMT? >
<? end if? >
<? end for each group -? >
I don't know why this is happening, I have another report EXACTLY like this, and it works fine. Let me point out that if I remove the IF statement, the report runs. But there is no reason why I shouldn't be able to use the IF statement inside the loop.
Error message:
"Generating report output error (235,2309)".
Any idea on why it doesn't work?
It was a problem of data type. I used the DEPTID as an expression of 4.0 character instead of the character 10.0 and it worked.
Tags: Business Intelligence
Similar Questions
-
After you generate a table in xml format, how can I save the result in an XML table?
Hi all
I used this feature to create a table in the XML schema:
example:
SELECT xmlelement ("State", xmlattributes (http://www.opengis.net/gml as "xmlns:gml"),)
XMLFOREST (name as "Name", "Population" of the population)) of the State;
result:
< Statexmlns:gml = "http://www.opengis.net/gml" >
< name > Wilkopolska < / name >
the population of 35000 <>< / Population >
< / state >
Now I need to insert the result in an XML table, because I need to save the result to use the latter, I hope someone can help, and if there is other way to do this, it would be great.
Thanks an ot and best regards,
Lama.Just insert in a table...
insert into t SELECT xmlelement("State", xmlattributes( 'http://www.opengis.net/gml' as "xmlns:gml"), xmlforest(name as "Name", population as "Population")) from state;
and a complete example:
SQL> create table t (test xmltype) 2 / Table created. SQL> SQL> create table state 2 (name varchar2(10) 3 ,population number 4 ) 5 / Table created. SQL> SQL> insert into state values ('WI', 35000) 2 / 1 row created. SQL> SQL> SELECT xmlelement("State", xmlattributes( 'http://www.opengis.net/gml' as "xmlns:gml"), 2 xmlforest(name as "Name", population as "Population")) from state; XMLELEMENT("STATE",XMLATTRIBUTES('HTTP://WWW.OPENGIS.NET/GML'AS"XMLNS:GML"),XMLFOREST(NAMEAS"NAME",P ----------------------------------------------------------------------------------------------------
WI 35000 SQL> SQL> SQL> insert into t 2 SELECT xmlelement("State", xmlattributes( 'http://www.opengis.net/gml' as "xmlns:gml"), 3 xmlforest(name as "Name", population as "Population")) from state; 1 row created. SQL> select * 2 from t 3 / TEST ---------------------------------------------------------------------------------------------------- WI 35000 -
Original title: Office of Microsoft Outlook 2000 does not open.
Error message States "A TCP/IP error occurred while trying to send data to the Server Error 0x800ccc13 #
Hi John,.
1. what operating system is installed on your computer?
2 How long have you been faced with this problem?
3. don't you make changes on your computer before this problem?
Reference: Outlook 2000 Solution CenterPlease post back and we do know.
-
Trying to empty the queue through dbms_aqadm resulting in error
Hello
I'm emptying the queue through dbms_adadm in the respective user schema, resulting in error
DECLARE
Po dbms_aqadm.aq$ _purge_options_t;
BEGIN
Po. Block: = FALSE;
() dbms_aqadm.purge_queue_table
Table of the queue = > 'XYZ_QUEUE_TABLE '.
purge_condition = > po);
END;
/
Error:
PLS-00201: identifier 'DBMS_AQADM' must be declared.
Check if the required privilege is granted to your USERS access to the SYS. DBMS_AQADM. Also if a public synonym for DBMS_AQADM is not defined then you will need to prefix SYS during the call to the package.
-
Cannot change the power state of VM: internal error
Hello
I freshly installed OS elementary which is based on Ubuntu.
VMWare Workstation installation worked fine, but after creating my new virtual machine with a Win 10, the same message comes to me:
Cannot change the power state of VM: internal error
I looked a little in the log file, found this dump was set to zero, they changed in etc/security /, but that's all I've managed to find.
Here is my log file
Thanks a lot for your help
PS: I'm leaving a beginner in the Linux world, so explanation would be welcome
Hello
Welcome to the VMware community forums.
I don't think that the problem is related to a beginner linux user, it's a problem triggered by a specific hardware configuration.
If you look at your log file again, there is an error just before the vmware process attempts to core dump. The dump is a reaction to the problem.
vmx| E105: PANIC: VERIFY bora/vmcore/vmx/main/timeTracker_user.c:238 bugNr=148722
If you then put the bug number into google, you get:
Which indicates in return you can set a configuration file to specify the actual frequency of your processor.
Your processor is an Intel (r) Core i5-3570 CPU @ 3.40 GHz
The linux variant of the config.ini file they speak on windows hosts is/etc/vmware/config
--
Wil
-
Hello
Last week, I decided to move from a Windows host based Linux system. So I went through my VMs their power off and copied to another drive. I then installed 7 Centos and reinstalled VMWare Workstation 12 re-imported the virtual machine in VMWare and I tried to start.
I received the following message...
"Cannot change the power state of VM: internal error.
Suspicious, I looked at the folder that contains the machine virtual and noticed it contained snapshots. DOH!
I guess it is pretty bad, not sure where to start?
Any help would be appreciated.
Thank you
James
I copied VM, with and without clichés, without problems. Have a few running on OSX Fusion so
The first thing I would check would be for folders and .lck files. If so, remove them.
Lou
-
Hi all;
I'm changing the dbid of the database, but not able to change it.
SQL > select dbid from v database $;
DBID
1356943142
SQL > shutdown immediate;
The database is closed.
The database is dismounted.
ORACLE instance stops.
SQL > bootable media.
ORACLE instance started.
Total System Global Area 608174080 bytes
Bytes of size 1268920 fixed
188744520 variable size bytes
415236096 of database buffers bytes
Redo buffers 2924544 bytes
Mounted database.
SQL >!
[oracle@oel5 ~] $ which nest
/U01/app/Oracle/product/10.2.0/Db_1/bin/NID
[oracle@oel5 ~] nest target $ = /.
DBNEWID: Release 10.2.0.4.0 - Production on Thu Oct 24 07:41:35 2013
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connected to the database CLONE (DBID = 1356943142)
Connected to the server version 10.2.0
Control of database files:
/ u01/app/oracle/oradata/clone/control01. CTL
/ u01/app/oracle/oradata/clone/control02. CTL
/ u01/app/oracle/oradata/clone/control03. CTL
Change the ID of database CLONE database? (Y / [N]) = > Y
Proceed with the operation
Change the ID of 1356943142 to 1028450799 database
Control file /u01/app/oracle/oradata/clone/control01.ctl - modified
Control file /u01/app/oracle/oradata/clone/control02.ctl - modified
Control file /u01/app/oracle/oradata/clone/control03.ctl - modified
DataFile /u01/app/oracle/oradata/clone/system01.dbf - dbid changed
DataFile /u01/app/oracle/oradata/clone/undotbs01.dbf - dbid changed
DataFile /u01/app/oracle/oradata/clone/sysaux01.dbf - dbid changed
DataFile /u01/app/oracle/oradata/clone/users01.dbf - dbid changed
DataFile /u01/app/oracle/oradata/clone/example01.dbf - dbid changed
DataFile /u01/app/oracle/oradata/clone/temp01.dbf - dbid changed
Control file /u01/app/oracle/oradata/clone/control01.ctl - dbid changed
Control file /u01/app/oracle/oradata/clone/control02.ctl - dbid changed
Control file /u01/app/oracle/oradata/clone/control03.ctl - dbid changed
at least I'm waiting for 20 minutes... then I hit ctrl + c
NEST-00600: internal error - [28] [1013] [0] [0]
Change the database ID failed during validation - database is intact.
DBNEWID - complete with validation errors.
Once you issue the STARTUP SQLPlus MOUNT, OUTPUT of SQLPlus instead open a shell comand using the «!» (the host command) option, then run the command of nest. Your current SQLPlus session probably prevents closing of the database completed.
Kind regards
Bob
-
Error: XML parsing failed because «»
Error: XML parsing failed because «»
I have searched for the meaning of this very confusing error message, but all I can find is comments saying I should put verbose = true in my build.properties file.
I use JDeveloper 11.1.1.5 to build if it uses a file build.properties this isn't one that I created.
When I click on the error it just takes me to the top of the file bpel that I have an error in (or so he claims).
Can someone explain please once and for all what this error message means and then suggest ways to fix this?
Thank you.This error occurs when there is a wsdl file or xsd double in your project. Remove one double and its references... you should be happy to compile your project successfully.
-
Out of shape so result is not xml and pdf
I am new to Adobe Lifecycle Designer ES and have created a simple form, which will be submitted by e-mail. When the form is submitted, the result is an XML file. I need the file to a pdf file, with all the fields list.
I have searched and cannot find the means and the option to do so. I'd appreciate help on this.
I use ver LC Designer ES 8.2.1.
Thank you.
Mark K
Change the button type Email submit button.
Then change the Type as
Change the type of sending in PDF format in the tab submit...
Enter the e-mail address in the section to the URL as mailto:[email protected]
Thank you
Srini
-
Clause of update with a nested select statement, and a weird error
Hi all!
I am trying to execute the following SQL clause:
setting a day of f_kontakti kon set ikaluokka =
(
Select ikal of
(
Select kontakt_ik, ikaluokka_gen(1,ai2.pvm,ai.pvm) as ikal
of f_kontakti k
Join the a on (k.asiakas_ik = a.asiakas_ik) d_asiakas
Join d_aika HERE on (a.synt_aika_ik = ai .aika_ik)
Join d_aika ai2 on (k.aika_ik = ai2.aika_ik)
where k.kontakt_ik = kon.kontakt_ik
) salt
)
It works very well on our test database (10.2.0.1.0), but when I try to run it on our production database (10.2.0.4.0), it gives the following error:
ORA-00904: "KON". "" KONTAKT_IK ": invalid identifier
The nested select works fine when I run it separately (without where clause of course, because then it does not really anywhere point) on two databases, but for some reason, the full update only fails on the production system. Any ideas on what could cause this?
Kind regards
ErikYou can run it without selecting it nesting.
Like this
update f_kontakti kon set ikaluokka= ( select ikaluokka_gen(1,ai2.pvm,ai.pvm) as ikal from f_kontakti k join d_asiakas a on (k.asiakas_ik=a.asiakas_ik) join d_aika ai on (a.synt_aika_ik=ai.aika_ik) join d_aika ai2 on (k.aika_ik=ai2.aika_ik) where k.kontakt_ik=kon.kontakt_ik );
or even shorter
update f_kontakti kon set ikaluokka= ( select ikaluokka_gen(1,ai2.pvm,ai.pvm) as ikal from d_asiakas a on (kon.asiakas_ik=a.asiakas_ik) join d_aika ai on (a.synt_aika_ik=ai.aika_ik) join d_aika ai2 on (kon.aika_ik=ai2.aika_ik) );
-
SQL Server Setup fails due to error XML Serializer
I tried (19 times) to install SQL Server 2008 Express on my Windows XP Home Edition with SP 3. Whenever it produces a "generation of the document XML error". I contacted the support for the software vendor of the program that requires SQL Server must be installed. There were attributed to an error in the XML serializer in Windows, they do not have the expertise to help me fix it. How can I fix it?
I have not messed with the "bowels" of Windows or edited before registry keys (which many solutions to similar questions seem to demand), so I'll need pretty detailed instructions.
The summary of the last attempt log is:
Summary of all:
Final result: failed: see details below
Exit code (decimal):-2068774911
Exit facility code: 1201
Exit error code: 1
Exit message: there was an error generating the XML document.
Start time: 2009-10-15 10:45:31
End time: 2009-10-15 10:45:56
Requested action: RunRulesComputer properties:
The machine processor count: 1
OS version: Windows XP
Operating system service pack: Service Pack 3
Region of the BONE: United States
OS language: English (United States)
Operating system architecture: x 86
Process architecture: 32-bit
Cluster OS: No.The package properties:
Description: SQL Server Database Services 2008
SQLProductFamilyCode: {628F8F38-600E-493D-9946-F4178F20A8A9}
ProductName: SQL2008
Type: RTM
Version: 10
SPLevel: 0
Installation location: c:\3c69b307a229367a4cccd3b804\x86\setup\
Edition of installation: EXPRESSThe user input parameters:
ACTION: RunRules
CONFIGURATIONFILE:
FEATURES: SQL, TOOLS
HELP: false
INDICATEPROGRESS: false
INSTANCENAME: SQLEXPRESS
MEDIASOURCE: c:\3c69b307a229367a4cccd3b804\
QUIET: true
QUIETSIMPLE: false
RULES: GlobalRules
X 86: falseConfiguration file: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20091015_104514\ConfigurationFile.ini
Detailed results:
Rules with failures:
Global rules:
There is no scenario-specific rules.
Carry-over rules file: report of result of rule file is not available.
Exception of summary:
What follows is an exception stack listing the exceptions in outermost to deep order
Inner exceptions are being indentedException type: Microsoft.SqlServer.Chainer.Infrastructure.ChainerInfrastructureException
Message:
There was an error generating the XML document.
Data:
DisableWatson = true
Battery:
at Microsoft.SqlServer.Chainer.Infrastructure.DataStoreService.SerializeObject (String rootPath, Object objectToSerialize, Boolean saveToCache)
at Microsoft.SqlServer.Chainer.Infrastructure.DataStoreService.SerializeObject (object objectToSerialize)
at Microsoft.SqlServer.Chainer.Infrastructure.InputSettingService.SaveInputSettingValueToObject (InputSettingInfo inputSettingInfo, values from list 1)
at Microsoft.SqlServer.Chainer.Infrastructure.InputSettingService.SaveParsedArgumentsIntoInputSettingStore (InputSettingSource source, dictionary 2 parsedArguments, Boolean chainerSetting, Boolean ignoreSettingsForNotAllowedScnearios)
at Microsoft.SqlServer.Chainer.Infrastructure.InputSettingService.ProcessCommandLineArguments (String [] commandLineArguments, Boolean chainerSetting)
at Microsoft.SqlServer.Configuration.BootstrapExtension.ProcessFeatureCommandLineArgumentsAction.ExecuteAction (String actionId)
at Microsoft.SqlServer.Chainer.Infrastructure.Action.Execute (String actionId, TextWriter errorStream)
at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.InvokeAction (WorkflowObject metabase, TextWriter statusStream)
at Microsoft.SqlServer.Setup.Chainer.Workflow.PendingActions.InvokeActions (WorkflowObject metaDb, TextWriter loggingStream)
Type of the internal exception: System.InvalidOperationException
Message:
There was an error generating the XML document.
Battery:
to System.Xml.Serialization.XmlSerializer.Serialize (XmlWriter xmlWriter, Object o, namespaces in XmlSerializerNamespaces, String encodingStyle, string id)
to System.Xml.Serialization.XmlSerializer.Serialize (TextWriter textWriter, Object o, XmlSerializerNamespaces namespaces)
to System.Xml.Serialization.XmlSerializer.Serialize (TextWriter textWriter, Object o)
at Microsoft.SqlServer.Chainer.Infrastructure.DataStoreService.SerializeObject (String rootPath, Object objectToSerialize, Boolean saveToCache)
The inner exception type: System.Security.Cryptography.CryptographicException
Message:
The system cannot find the specified file.
Battery:
at System.Security.Cryptography.ProtectedData.Protect (Byte [], Byte [] optionalEntropy, DataProtectionScope scope userData)
to Microsoft.SqlServer.Common.SqlSecureString.WriteXml (XmlWriter writer)
to System.Xml.Serialization.XmlSerializationWriter.WriteSerializable (serializable IXmlSerializable, String name, String ns, Boolean isNullable, Boolean wrapped)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterSqlEngineSetupPublic.Write6_SqlEngineSetupPublic (String n, String ns, SqlEngineSetupPublic o, Boolean isNullable, Boolean needType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterSqlEngineSetupPublic.Write7_SqlEngineSetupPublic (Object o)The relevant error is:
The inner exception type: System.Security.Cryptography.CryptographicException
Message:
The system cannot find the specified file.
Battery:
at System.Security.Cryptography.ProtectedData.Protect (Byte [], Byte [] optionalEntropy, DataProtectionScope scope userData)
to Microsoft.SqlServer.Common.SqlSecureString.WriteXml (XmlWriter writer)
to System.Xml.Serialization.XmlSerializationWriter.WriteSerializable (serializable IXmlSerializable, String name, String ns, Boolean isNullable, Boolean wrapped)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterSqlEngineSetupPublic.Write6_SqlEngineSetupPublic (String n, String ns, SqlEngineSetupPublic o, Boolean isNullable, Boolean needType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterSqlEngineSetupPublic.Write7_SqlEngineSetupPublic (Object o)Looks like it's either just a missing file or you do not have permission to open it. Are you an administrator on the system you are trying to install this on? Have you tried all the options found here CIW (http://blogs.msdn.com/sqlexpress/archive/2009/06/15/installing-sql-server-2008-guidance.aspx)?
-
Sorry to keep spamming these forums with my stupid mistakes, but I'm trying really hard to learn Flash/AS3 and when I got to wrestling with it, I will definitely love.
I am a rookie flash trying to make a simple computing device and I'm doing me a world of errors, I've never seen before.
My Code (excuse me, but maybe it's my bad syntax):
import flash.ui.Mouse;
var Hnum:String;
var PCnum:String;
var calc:Number = 25;
var Total: Number;
NUM1. Restrict = "0-9";
num2. Restrict = "0-9";
Est_btn.addEventListener (MouseEvent.Click, Calculate);
function PartCount(event:MouseEvent):void {}
PCnum = num2.text;
If (PCnum > 0 & & < 10) {}
parseInt (PCnum) * 10;
}
or if (PCnum > 11 & & < 20) {}
parseInt (PCnum) * 5;
}
or if (PCnum > 21) {}
parseInt (PCnum) * 1;
}
}
Est_btn.addEventListener (MouseEvent.Click, Calculate);
function calculate(event:MouseEvent):void {}
Hnum = num1.text;
PCnum = num2.text;
Total = parseInt (Hnum) * calc + parseInt (PCnum);
Total.toString ();
Total_txt. Text = String (Total);
}
}
I had all this work, I was only calculation Hnum by 25. But when I try to intergrate the fi or statement so bad, and I get these 5 mistakes.
Scene 1, Layer 'Actions', frame 1, line 15 1104: invalid xml name Scene 1, Layer 'Actions', frame 1 1084: syntax error: expected xmltagendend before the end of the program. Scene 1, Layer 'Actions', frame 1 1084: syntax error: expected rightparen before the end of the program. Scene 1, Layer 'Actions', frame 1 1084: syntax error: expecting identifier before the end of the program. Scene 1, Layer 'Actions', frame 1 1084: syntax error: expected rightbrace before the end of the program. I don't understand what these errors are emphasizing? Why XML? What is my variable names?
Here is the code that I had before the second function that worked well:
var Hnum:String;
var PCnum:String;
var calc:Number = 25;
var Total: Number;
NUM1. Restrict = "0-9";
num2. Restrict = "0-9";
Est_btn.addEventListener (MouseEvent.Click, Calculate);
function calculate(event:MouseEvent):void {}
Hnum = num1.text;
PCnum = num2.text;
Total = parseInt (Hnum) * calc;
Total.toString ();
Total_txt. Text = String (Total);
}
Any help would be greatly appreciated! I'll get the hang of this!
MrB
Maybe is a parsing problem
Date of arrival:
PCnum = num2.text;
If (PCnum > 0 &)< 10){ ="">< you're="" comparing="" text="" against="" numbers="" and=""> ><10 es="" comparing="" agaist="" nothing="" this="" can="" be="" a="">10>
Use rather
PCnum = int (num2.text);
If (PCnum > 0 & PCnum)<>
-
Fatal XML parsing error: an invalid document structure, line: 1 file: C:\User\Tyler\AppData\Roaming\Adobe\Dreamweaver CS5\en_US\Configureation\Workspace\Classic.xml
I have crossed former disscussion forums and followed the recommended steps by removing the file .xml corrupted itself (in this case 'Classic.xml') but imidiatly after when I try to open Dreamweaver once again, I am prompted with the same fatal error including the file that I just deleted. Then I deleted the entire file configures and that did not help either.
It is also strange that when I followed the path to find the .xml file corrupted at the prompt, the path is different because I can't find the file 'Classic.xml' through 'en_US\Configuration\Weorkspace' e navigation, but I find the "Classic.xml" file corrupted in the file 'configure' file 'Adobe Dreamweaver CS5.
Im not sure what to do now and I would really like Dreamweaver to the top and running so help please if you can!
Thank you
-Tyler
Step 1: Close DW, go to C:\User\Tyler\AppData\Roaming\Adobe\Dreamweaver CS5\en_US\Configureation\Workspace\ and delete this file Classic.xml
Reopen DW. DW must auto-créer your workspace layout XML file once again. See if it works very well.
GO TO STEP 2, IF STEP 1 DOES NOT RESOLVE THE ISSUE
Step 2: Go to the C:\Users\Tyler\AppData\Roaming\Adobe\Dreamweaver CS5\en-US\Configuration and delete the entire folder "SETUP" . Reopen DW. DW should automatically create your configuration file based on pre-defined schemas and configuration options. This will definitely fix your problem.
Reason for this question: this question would have been caused due to a malformed workspace setup. That can happen due to customizations you have made to the layout / bad permissions of files / bad closing Windows.
See if these patches does not solve your problem and post your results here.
See you soon,.
ST
-
Hello
I was struck with an error by opening the xml file. Thanks for giving me your entries.
I use the pl/sql script for outbounding data in .xml format. But after you create the file successfully, I am not able to open it in Solution Explorer. The data with "&" in a column and it will be available in the data in many areas. Where as if I try to create the same report Oracle using "xml" as output, then I don't get this problem. And I am able to open the same in Explorer perfectly.
Here I am pasting the script that I created
create or replace the 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
OF 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
OF 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 (' no access path is valid for ' | v_filename);
UTL_FILE. FCLOSE_ALL;
WHEN UTL_FILE. INVALID_MODE THEN
dbms_output.put_line (' Mode is not valid for ' | v_filename);
UTL_FILE. FCLOSE_ALL;
WHEN UTL_FILE. INVALID_FILEHANDLE THEN
dbms_output.put_line (' invalid file descriptor ' | v_filename);
UTL_FILE. FCLOSE_ALL;
WHEN UTL_FILE. WRITE_ERROR THEN
dbms_output.put_line (' Error Invalid write ' | 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;
WHILE OTHERS THEN
dbms_output.put_line (' error ' |') SQL CODE: ' | SQLCODE. ' Message: '. SQLERRM);
UTL_FILE. FCLOSE_ALL;
END GETXML_TAG;
/
The file that I am generating at the server level:
EPO150320111915. XML
<? XML version = "1.0" encoding = "UTF-8"? >
< GEBIZ_ACCOUNT_SEGMENT >
< HEADER >
RPO < MINISTRY_CODE > < / MINISTRY_CODE >
< DEPT_CODE > 000 < / DEPT_CODE >
< ENTITY_CODE > < / ENTITY_CODE >
< / Header >
< DETAILS >
< SEGEMENT >
< NUMBER > 1 < / NB >
< CODE > 1 </postcode >
< DESCRIPTION > Republic Polytechnic < / DESCRIPTION >
< START_DATE > < / START_DATE >
< end_date > < / end_date >
A <>STATUS < / STATUS >
< DELETE_FLAG > < / DELETE_FLAG >
< / SEGEMENT >
< / DETAILS >
< DETAILS >
< SEGEMENT >
< NUMBER > 2 < / NB >
< CODE > < code > 2
Operating grant < DESCRIPTION > < / DESCRIPTION >
< START_DATE > < / START_DATE >
< end_date > < / end_date >
A <>STATUS < / STATUS >
< DELETE_FLAG > < / DELETE_FLAG >
< / SEGEMENT >
< / DETAILS >
< DETAILS >
< SEGEMENT >
< NUMBER > 2 < / NB >
< CODE > < code > 2
< DESCRIPTION > Dev Grant-renovation Campus Temp Temp < / DESCRIPTION >
< START_DATE > < / START_DATE >
< end_date > < / end_date >
A <>STATUS < / STATUS >
< DELETE_FLAG > < / DELETE_FLAG >
< / SEGEMENT >
< / DETAILS >
< DETAILS >
< SEGEMENT >
< NUMBER > 2 < / NB >
< CODE > < code > 2
< DESCRIPTION > Dev renovation Grant to hand Campus Temp < / DESCRIPTION >
< START_DATE > < / START_DATE >
< end_date > < / end_date >
A <>STATUS < / STATUS >
< DELETE_FLAG > < / DELETE_FLAG >
< / SEGEMENT >
< / DETAILS >
< DETAILS >
< SEGEMENT >
< NUMBER > 2 < / NB >
< CODE > < code > 2
< DESCRIPTION > Dev Grant-IT for Campus Temp < / DESCRIPTION >
< START_DATE > < / START_DATE >
< end_date > < / end_date >
A <>STATUS < / STATUS >
< DELETE_FLAG > < / DELETE_FLAG >
< / SEGEMENT >
< / DETAILS >
< DETAILS >
< SEGEMENT >
< NUMBER > 2 < / NB >
< CODE > < code > 2
< DESCRIPTION > Dev Grant-Land Premium for Campus Woodlands < / DESCRIPTION >
< START_DATE > < / START_DATE >
< end_date > < / end_date >
A <>STATUS < / STATUS >
< DELETE_FLAG > < / DELETE_FLAG >
< / SEGEMENT >
< / DETAILS >
< DETAILS >
< SEGEMENT >
< NUMBER > 2 < / NB >
< CODE > < code > 2
< DESCRIPTION > Dev-Grant-pre-construction of the Woodlands Campus < / DESCRIPTION >
< START_DATE > < / START_DATE >
< end_date > < / end_date >
A <>STATUS < / STATUS >
< DELETE_FLAG > < / DELETE_FLAG >
< / SEGEMENT >
< / DETAILS >
< DETAILS >
< SEGEMENT >
< NUMBER > 2 < / NB >
< CODE > < code > 2
< DESCRIPTION > Dev Grant-FE < / DESCRIPTION >
< START_DATE > < / START_DATE >
< end_date > < / end_date >
A <>STATUS < / STATUS >
< DELETE_FLAG > < / DELETE_FLAG >
< / SEGEMENT >
< / DETAILS >
< DETAILS >
< SEGEMENT >
< NUMBER > 2 < / NB >
< CODE > < code > 2
< DESCRIPTION > tax exempt student Dev Welfare Fund < / DESCRIPTION >
< START_DATE > < / START_DATE >
< end_date > < / end_date >
A <>STATUS < / STATUS >
< DELETE_FLAG > < / DELETE_FLAG >
< / SEGEMENT >
< / DETAILS >
< DETAILS >
< SEGEMENT >
< NUMBER > 2 < / NB >
< CODE > < code > 2
< DESCRIPTION > funds tax exempt-Dev project < / DESCRIPTION >
< START_DATE > < / START_DATE >
< end_date > < / end_date >
A <>STATUS < / STATUS >
< DELETE_FLAG > < / DELETE_FLAG >
< / SEGEMENT >
< / DETAILS >
< DETAILS >
< SEGEMENT >
< NUMBER > 2 < / NB >
< CODE > < code > 2
< DESCRIPTION > reserved finance < / DESCRIPTION >
< START_DATE > < / START_DATE >
< end_date > < / end_date >
A <>STATUS < / STATUS >
< DELETE_FLAG > < / DELETE_FLAG >
< / SEGEMENT >
< / DETAILS >
< DETAILS >
< SEGEMENT >
< NUMBER > 3 < / NB >
< CODE > < code > 3
Library < DESCRIPTION > < / DESCRIPTION >
< START_DATE > < / START_DATE >
< end_date > < / end_date >
A <>STATUS < / STATUS >
< DELETE_FLAG > < / DELETE_FLAG >
< / SEGEMENT >
< / DETAILS >
< DETAILS >
< SEGEMENT >
< NUMBER > 3 < / NB >
< CODE > < code > 3
< DESCRIPTION > Office of academic affairs < / DESCRIPTION >
< START_DATE > < / START_DATE >
< end_date > < / end_date >
A <>STATUS < / STATUS >
< DELETE_FLAG > < / DELETE_FLAG >
< / SEGEMENT >
< / DETAILS >
< DETAILS >
< SEGEMENT >
< NUMBER > 3 < / NB >
< CODE > < code > 3
< DESCRIPTION > the Corporate Communications Office < / DESCRIPTION >
< START_DATE > < / START_DATE >
< end_date > < / end_date >
A <>STATUS < / STATUS >
< DELETE_FLAG > < / DELETE_FLAG >
< / SEGEMENT >
< / DETAILS >
< DETAILS >
< SEGEMENT >
< NUMBER > 3 < / NB >
< CODE > < code > 3
Office of the Assistant Director of the < DESCRIPTION > < / DESCRIPTION >
< START_DATE > < / START_DATE >
< end_date > < / end_date >
A <>STATUS < / STATUS >
< DELETE_FLAG > < / DELETE_FLAG >
< / SEGEMENT >
< / DETAILS >
< DETAILS >
< SEGEMENT >
< NUMBER > 3 < / NB >
< CODE > < code > 3
< DESCRIPTION > the estates Office < / DESCRIPTION >
< START_DATE > < / START_DATE >
< end_date > < / end_date >
A <>STATUS < / STATUS >
< DELETE_FLAG > < / DELETE_FLAG >
< / SEGEMENT >
< / DETAILS >
< DETAILS >
< SEGEMENT >
< NUMBER > 3 < / NB >
< CODE > < code > 3
< DESCRIPTION > finance < / DESCRIPTION >
< START_DATE > < / START_DATE >
< end_date > < / end_date >
A <>STATUS < / STATUS >
< DELETE_FLAG > < / DELETE_FLAG >
< / SEGEMENT >
< / DETAILS >
< DETAILS >
< SEGEMENT >
< NUMBER > 3 < / NB >
< CODE > < code > 3
< DESCRIPTION > Office of human resources < / DESCRIPTION >
< START_DATE > < / START_DATE >
< end_date > < / end_date >
A <>STATUS < / STATUS >
< DELETE_FLAG > < / DELETE_FLAG >
< / SEGEMENT >
< / DETAILS >
< DETAILS >
< SEGEMENT >
< NUMBER > 3 < / NB >
< CODE > < code > 3
< DESCRIPTION > Office of industrial and international Services < / DESCRIPTION >
< START_DATE > < / START_DATE >
< end_date > < / end_date >
A <>STATUS < / STATUS >
< DELETE_FLAG > < / DELETE_FLAG >
< / SEGEMENT >
< / DETAILS >
< / GEBIZ_ACCOUNT_SEGMENT >
-end of file
I'm able to correctly edit in Notepad, when tried to open, at the level of the Solution Explorer, its not allow me due to '& '.
Pls confirm what could be the problem.
Concerning
Mr. NagendraHi Nagendra,
Pls confirm what could be the problem.
In a document valid XML, characters like <,>, &, "and" must be escaped using entity references if they appear in the text or attribute nodes.
For example, & must be escaped to "& amp;"Did you check my answer on your previous thread on the generation of XML?
http://forums.Oracle.com/forums/thread.jspa?threadID=2184907&TSTART=30The method that you are trying to use is obsolete (since Oracle 9i) and also produces invalid XML content.
Here, I think that the more flexible method is to use the SQL/XML functions.
Try the following, based on the example you posted, it should give you the expected result:,>{code}
DECLAREv_out CLOB.
v_filename VARCHAR2 (300): = 'GEBIZ_EPO ' | TO_CHAR (sysdate, 'DDMMYYYYHH24MI'): '. XML';
v_prolog VARCHAR2 (40): = '';BEGIN
SELECT xmlserialize (document
XmlElement ("GEBIZ_ACCOUNT_SEGMENT"
xmlagg)
XMLCONCAT (hdr, dtls)
)
)
as dash clob size = 2
)
IN v_out
DE)
SELECT xmlelement ("HEADER"
xmlelement ("MINISTRY_CODE", ministry_code)
xmlelement ("DEPT_CODE", dept_code)
xmlelement ("ENTITY_CODE", entity_code)
) hdr
xmlagg)
XmlElement ("DETAILS"
xmlelement ("SEGMENT"
xmlelement ("NUMBER", seg_no)
xmlelement ('CODE', seg_no)
xmlelement ("DESCRIPTION", seg_description)
xmlelement ("START_DATE", start_date)
xmlelement ("end_date", end_date)
xmlelement ("STATUS", status)
xmlelement ("DELETE_FLAG", disable_flag)
)
)
) dtls
OF xgbz_fin_stage_acs
WHERE tx_timestamp is null
GROUP OF ministry_code, dept_code, entity_code
)
;DBMS_XSLPROCESSOR.clob2file (v_prolog | v_out, 'TEST_DIR', v_filename, nls_charset_id ('AL32UTF8'));
END;
/
{code}-A single SQL query to retrieve data and format in XML (necessary character escape is automatically supported).
-A single call to DBMS_XSLPROCESSOR.clob2file to create the file in the directory TEST_DIR.Hope that helps.
-
11g - save customizations fails with the error XML
I have two guests of dashboard on my dashboard. One is a simple drop-down list. The other is a Variable presentation guest (number). I selected/entered two values normal, click on apply, and the dashboard has answered correctly. Then I chose 'save the current customization. After you have entered the name MYSTUFF as saved personalization and clicking on OK, I get this error:
The current XML is not valid with the following errors: Bad xml instance! <? XML version = "1.0"? "" ' > < sawsel:dashboardSelections xmlns:sawsel="com.siebel.analytics.web/dashselections/v1" xmlns:sawst="com.siebel.analytics.web/state/v1" xmlns:sawx="com.siebel.analytics.web/expression/v1.1" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" version = "0.7" > < sawst:envState xmlVersion = "200811100" > < sawst:container cid = "d: dashboard" xsi: type = "sawst:topLevelStateContainer" > < sawst:container cid = 'f: dpstate"xsi: type ="sawst:dashpromptstate"statepoolId ="phn95bo9nflsvfr362fcakclb2"> < sawst: container cid = 'f' ': dpstate ' xsi: type = "sawst:dashpromptstate" statepoolId = "qkautlal0g0v511mfq72b30lai" / > < / sawst:container > < sawst:container cid = "p:bp8ao515lc33ru6u" xsi: type = "sawst:page" inDashboardPage = "true" > < sawst:container cid = "r: 2cnfc2145q1uiqcd" xsi: type = "sawst:report" links = defaultView "d" = "compoundView. 1"folder = ' / shared/training" itemName = "Sales and Profits" / > < sawst:container cid = "r: kbqpoefb9v4au3up" xsi: type = "sawst:report" defaultView = "compoundView!" 2"folder = ' / shared/training" itemName = "Declining sales" / > < sawst: container cid = "r: hj81v17v5fvsaeto" xsi: type = "sawst:report" defaultView "compoundView =! 2"folder = ' / shared/training" itemName = "Sales and Profits" / > < sawst:container cid = "s:5l6q89h71pmlb85t" xsi: type = "sawst:section" > < sawst:container cid = "a: isdndle4j7uru0uv" xsi: type = "sawst:actionlink" > < sawst:container cid = 'condition: n' xsi: type = "sawst:navigation" conditionEvalStatus = "full" / > < / sawst:container > < sawst:container cid = "n: condition" xsi: type = "sawst:navigation" conditionEvalStatus = "complete" / > < / sawst "" : container > < sawst:container cid = "s:3pt4biahbrdfsbke" xsi: type = "sawst:section" / > < sawst:container cid = "s:j40b1k5eh77c4i4o" xsi: type = "sawst:section" / > < sawst:container cid = "s:g2dns9sm7grqui3k" xsi: type = "sawst:section" / > < sawst:container cid = "s:rrdjna562b7qqomk" xsi: type = "sawst:section" / > < sawst:container cid = s ": ihgv7i7i0ch05gn2" xsi: type = "sawst:section" / > < sawst:container cid = "s:4t8lq8sfpv26qok8" xsi " : type = "sawst:section" / > < sawst:container cid = "s:sv6uv7de99eaa9l4" xsi: type = "sawst:section" / > < sawst:container cid = "s:839isfiqie8i751a" xsi: type = "sawst:section" / > < / sawst:container > < / sawst:container > < / sawst:envState > < sawsel:xmlStatesReferredTo > < sawsel:ref refId = "phn95bo9nflsvfr362fcakclb2" > < sawsel: appliedStates > < sawsel:filter > < sawx:expr xsi: type = "sawx ': logic "op = 'and' > < sawx:expr xsi: type ="sawx:list"="en"setVariable op ="dashboard.variables [& #39; Change_Pct & #39;] ' > < sawx:expr xsi: type = "sawx:sqlExpression" > 1 < / sawx:expr > < sawx:expr container = "http://www.w3.org/2001/XMLSchema" xsi: type = "xsd: Decimal" >-10 < / sawx:expr > < / sawx:expr > < sawx:expr xsi: type = "sawx:list" = "en" setVariable op = 'requestVariables [& #39; '. Selected_Month & #39;] ' > < sawx:expr xsi: type = "sawx:sqlExpression" > & quot; Times & quot;. & quot; Month & quot; < / sawx:expr > < sawx:expr container = "http://www.w3.org/2001/XMLSchema" xsi: type = "xsd: String" > may-09 < / sawx:expr > < / sawx:expr > < / sawx:expr > < / sawsel:filter > < sawsel:variables > < sawx:expr xsi: type = "sawx:list" = "en" setVariable op = "dashboard.variables [& #39; Change_Pct & #39;] ' > < sawx:expr xsi: type = "sawx:sqlExpression" > 1 < / sawx:expr > < sawx:expr container = "http://www.w3.org/2001/XMLSchema" xsi: type = "xsd: Decimal" >-10 < / sawx:expr > < / sawx:expr > < / sawsel:variables > < / sawsel:appliedStates > < / sawsel:ref > < / sawsel:xmlStatesReferredTo > < / sawsel:dashboardSelections > line: 2, Col: 1383, attribute 'conditionEvalStatus' is not declared for the 'container' Line item : 2, col: 1496, the 'conditionEvalStatus' attribute is not declared for the element "container".
The error occurs in IE 8 and Firefox 3.6.13.
Is this a known bug?It is a bug - if you have an article on a page and the Section has an associated illness, the link 'Save the current customization' will throw this error. In addition, the link 'Create the bookmark link' will throw the same error. If you remove the Condition, you will be able to save customizations/create bookmark links.
Maybe you are looking for
-
How to transfer emails in an Inbox not assets replaced to the local files.
I changed servers and cancelled my old server (courier service). I want to transfer all my old old my Inbox emails into folders, so I can delete the old account. I have a new account and a new Inbox that works very well. When I try to transfer emails
-
HP Active Pen J4R51AA: HP Active Pen J4R51AA works with new spectrum x 360 13D set Lake?
The HP Active Pen J4R51AA worked fine with my x 360 Broadwell 13 spectrum. Is is officially supported on the last generation (Lake set) of this 2 in 1?
-
Cannot sync iTunes to my iPod model MA477LL purchases. Help!
I have an iPod model MA477LL about 10 years; and have not had any problems buying iTunes songs and then just plug iPod into my MacBook Pro (2012), but my last purchase (appears on my computer) but doesn't sync not on iPod. After playing with it all
-
ITunes game includes Radio Apple?
By subscribing to iTunes game includes Radio Apple?
-
BlackBerry Smartphones Twitter on blackberry
Y at - it a Twitter app like facebook for "BOLD" or something like that? I'd find more inviting than going online whenever I want to go on Twitter. What app download? If you know, please can you give me a link if possible... Thank you Angela