Loading xml url throws error
Hello,
I'm trying to create iphone app.
When I try to load xml url from desktop emulator it works like a charm.
But when I debug on the iphone device it throws error.
Error #2032
I have setup a crossdomain.xml file but that doesn't fix the issue.
I have no idea what to do from now?
I'm using the latest flash builder 4.5.1 and air 2.7 sdk i think.
Hope someone knows what to do
Thanks.
Sorry everyone.
I pointed to the wrong url.
I was pointing to my local ip and not external url
Thanks again for trying to help me.
Similar Messages
-
[Windows] file.url throw error when application executable in root directory
Here is the bugbase ticked: Bug#3940278 - [Windows] file.url throw error when application executable in root directory
If you launch AIR application packaged as bundle from root directory and try to get url property of any file you get IllegalOperationError.
No matter what file url property you try to get.
It's a big problem when you distribute your application on CD disks or flash drive.
I'd like to ask everyone affected by this issue to take a minute and vote for the following bug.
Thanks.I checked all deployment descriptions and there are no references to t3://localhost:7001. Few months back, I had the complete clustering setup working on 2 machines and now when I deploy my application on same configuration, it fails with t3://localhost:7001 unreachable error. I created a new cluster configuration on one machine with 2 managed server and it deploys fine. Can not figure out what has changed ?
-
Very Urgent .Xml Schema throwing error
XML Schema
Following function is throwing Message : [ORACLE ERROR : [ORA-31085: schema "XDh1jUheYAR5PgNAgAILJCxg==" already registered error
ROCEDURE validateXmlSchema(inp_xmlMsg IN VARCHAR2,
out_isValidDoc IN OUT NUMBER,
inp_xmlSchema IN OUT VARCHAR2,
inp_xmlUrl IN OUT VARCHAR2)IS
xmldoc XMLType;
res number;
-- result boolean;
BEGIN
dbms_xmlSchema.deleteSchema(inp_xmlSchema,4);
xmldoc := XMLtype(inp_xmlMsg);
res := xmldoc.isSchemaValid(inp_xmlSchema);
IF (xmldoc.isSchemaValid = 1) THEN
out_isValidDoc := 1;
ELSE
out_isValidDoc := 0;
END IF;
END validateXmlSchema;
Why is the delete schema throwing that error?My dear friend stop using this word - Urgent.Isn't it txt spk for You are a gentleman?
-
Hi guys & gals,
I am loading basic content through xml and I have a node that
I want to be just URLs. How do I get them to show up as click-able
URLs when I finished publishing the movie? Is there a way to do it
in the XML file itself? Thanks everyone!Haven't tried it yet, but I think this is exactly what I was
looking for.
Thanks.
I also have to repeat that I can't believe how sparse the
information is on this topic. Especially in this age of XML data
transfers. I would think that this would be a somewhat standard
problem. -
Hi,
I'm trying to use the example
load_cell_null_off_shuntcal.vi with a full-bridge load cell (Honeywell
Model 31, unamplified). I am using LabView 8.6, cDAQ-9172 and NI9237. The
load cell is connected to pins 2,3,6 and 7.
The inputs for the VI front panel
are: internal excitation10V; mV/V 2.1492 (calibration sheet); max weight 10
lbs; bridge resistance 350 ohms (Honeywell specs); 9237 internal shunt
resistance 100 kohms; shunt location R4 (default setting). I have selected
"Do offset null" and "Do shunt cal".
This is the error I receive:
Error -200077 occurred at DAQmx
Perform Shunt Calibration (Bridge).vi:1 Possible reason(s):
Measurements: Requested value is not
a supported value for this property.
Property:
AI.Bridge.ShuntCal.GainAdjust
You Have Requested: -61.980405e3
Valid Values Begin with: 500.0e-3
Valid Values End with: 1.500000
If the "Do shunt cal"
green button is not selected, there is no error. I understand that the Gain
adjust value should be approx 1, whereas the one I get is much larger. The subVI DAQmx PerformShuntCalibration
(bridge).vi contains a "Call library function node" which I don't
know how to interrogate.
Has anyone else had experience
with this error? Do you have any advice on:
1)
How to "see" the calculations being
perfomed inside the "call library function node"?
2)
What the correct shunt element
location for a full bridge load cell is? (although changing this location does
not eliminate the error, I can't find this info).
3)
Anything I may be doing wrong with
my inputs to cause this error?
Thanks,
Claire.
Solved!
Go to Solution.Hi Claire,
You have to physically connect the SC terminals to one arm of the bridge (normally R3). The terminal is not provided for connecting external resistors.
See example
C:\Program Files\National Instruments\LabVIEW 8.6\examples\DAQmx\Analog In\Measure Strain.llb\Cont Acq Strain Samples (with Calibration) - NI 9237.vi
"A VI inside a Class is worth hundreds in the bush"
യവന് പുലിയാണു കേട്ടാ!!! -
Error in loading XML data in BW delta queue
Hi All
My requirement is to stage small amount of XML data in SAP BW 3.5. For doing so, i have followed the steps specified in How to send XML data to BW
Link for "How to send XML data to BW"
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/21d8aa90-0201-0010-5e83-a3798b9a5ee0
1. Created File data source
2. Defined data source using file data source with Function module
3. Initialize load process without no data transfer
4. Using SOAP RFC service, Load xml records in delta queue.
Now in step number 4, i have created the following
1. Created the html code
2. On created HTML page, select .CSV file as an input and URL of SOAP service which is pointing out to the application server
3. When i press "XML Send recordset" button, HTML page throws "Java script" error and data is not being pushed to BW delta queue
Any help in this regard will be highly appreciated.
Thanks
YeshwantHi All
My requirement is to stage small amount of XML data in SAP BW 3.5. For doing so, i have followed the steps specified in How to send XML data to BW
Link for "How to send XML data to BW"
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/21d8aa90-0201-0010-5e83-a3798b9a5ee0
1. Created File data source
2. Defined data source using file data source with Function module
3. Initialize load process without no data transfer
4. Using SOAP RFC service, Load xml records in delta queue.
Now in step number 4, i have created the following
1. Created the html code
2. On created HTML page, select .CSV file as an input and URL of SOAP service which is pointing out to the application server
3. When i press "XML Send recordset" button, HTML page throws "Java script" error and data is not being pushed to BW delta queue
Any help in this regard will be highly appreciated.
Thanks
Yeshwant -
Could not load file/URL (file not found) error for JNLP file
I am completely baffled in trying to figure out why I am getting the following error for some JNLP files but not others:
Error: could not load file/URL specified: C:\Users\tom\AppData\Local\Temp\javaws2
java.io.FileNotFoundException: C:\Users\tom\AppData\Local\Temp\javaws2 (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)I have Googled around this forum and elsewhere, and have seen reports that this error is IE-specific, and seems to have something to do with no-cache headers being sent, or with the client browser's cache being full or turned off (which is not my case). I saw the information in the JavaWS FAQ, which recommended turning off security constraints for the JNLP's URI. I tried that, and it didn't help. One of the very baffling things is that I have created several variations of the JNLP file, with varying combinations of jars and property resources, and some combinations always work while other combinations never work. Here's an example:
<jnlp spec="1.0+" codebase="$$codebase">
<information>
<title>demo app</title>
<description>illustrates weird bug</description>
</information>
<resources>
<j2se version="1.5+"/>
<jar href="randomFile.jar"/>
<property name="xxx" value="xxxx"/>
<property name="swing.metalTheme" value="steel"/>
</resources>
</jnlp>The above file always fails with the error shown at the top of this message. However, if I remove either of the two properties, it works fine. And I have created other variations with lots of properties, some of which work. All of these variations are in the same directory in the war file, served by the exact same servlet (a slightly modified version of the jnlp.sample.servlet.JnlpDownloadServlet provided with JDK 1.6.0_3). Assuming that a no-cache header is the problem, what on earth could be causing some JNLP files to always be served with a no-cache header, while others are never served with a no-cache header?
On a related note, any recommended debugging techniques for seeing what headers are being transmitted? I tried adding a simple check for a "debug=true" parameter in the servlet that causes it to set the content type to "text/plain" instead of JNLP, and that allows me to see (rather than execute) the JNLP XML that's being returned, but it doesn't show me the HTTP headers that are being sent back. If any caching headers are being set, I think it must be being set by the servlet container itself, as it's nothing being set in the servlet code that I can see. So I don't see any way on the server side Java code to output or log the actual HTTP response (or is there?). Any tips in that regard much appreciated.
Edited by: TomC125468 on Aug 19, 2009 1:35 PMHi Luca-Sanna,
Thanks for the response. Re browsers, yes, it fails in IE but it succeeds in Firefox. The info on the JavaWS FAQ and other places all seem to indicate that it's an IE issue concerning handling of the cache-control headers.
I should check in my webserver forum (Sun WebServer 7) to see about logging options. Sniffing on the client side is not possible, as my app is required to use HTTPS exclusively, and unfortunately that also precludes a telnet GET request. -
LCDS web service call throwing error for valid XSD URL
Hi,
I am trying to call a web service which is deployed on a J2EE application[ Project name : WebServiceApplication ] through a different LCDS application [ Project name : lcdsTestWebService] But while loading of mxml following error comming into console.
Can any one explain that why Flex application is looking for DocTypeTestService_schema1.xsd into lcdsTestWebService application when this xsd is
present in WebServiceApplication project.
One intresting point which i found that if i place this xsd into root of lcdsTestWebService application so that it is accessable through
url = "http://localhost:9080/lcdsTestWebService/DocTypeTestService_schema1.xsd" than there is no issue and web service call sucessfully
happen.
[2/14/11 16:23:18:208 IST] 0000002c SystemOut O [LCDS]Deserializing AMFX/HTTP request
Version: 3
(Message #0 targetURI=null, responseURI=null)
(Typed Object #0 'flex.messaging.messages.HTTPMessage')
(Object #1)
body = clientId = "A568DF0F-A60A-1473-CDAB-707E4A185812"
contentType = "application/x-www-form-urlencoded"
destination = "testWebservice"
(Object #2)
DSEndpoint = "my-http"
DSId = "A568DE2A-2809-A1FE-0934-D3ECBC19337C"
headers = httpHeaders = null
messageId = "9F6F7661-8FA1-30CA-3F04-23CD91C1AF90"
method = "GET"
recordHeaders = true
timestamp = 0
timeToLive = 0
url = "http://localhost:9080/lcdsTestWebService/DocTypeTestService_schema1.xsd"
[2/14/11 16:23:19:591 IST] 0000002c SystemOut O [LCDS]-- GET : http://localhost:9080/lcdsTestWebService/DocTypeTestService_schema1.xsd
[2/14/11 16:23:19:591 IST] 0000002c SystemOut O [LCDS]-- Cookie in request: domain = 'localhost', path = '/', client name = 'JSESSIONID', endpoint name = 'JSESSIONID', value = '0000Ii8aRUEKjvhE38Bd_dyW3jw:-1
[2/14/11 16:23:19:591 IST] 0000002c SystemOut O [LCDS]-- Header in request: Accept : */*
[2/14/11 16:23:19:591 IST] 0000002c SystemOut O [LCDS]-- Header in request: Accept-Language : en-US
[2/14/11 16:23:19:591 IST] 0000002c SystemOut O [LCDS]-- Header in request: Referer : http://localhost:9080/lcdsTestWebService/SampleWebService.swf/[[DYNAMIC]]/6
[2/14/11 16:23:19:591 IST] 0000002c SystemOut O [LCDS]-- Header in request: x-flash-version : 10,1,102,64
[2/14/11 16:23:19:591 IST] 0000002c SystemOut O [LCDS]-- Header in request: Content-Type : application/xml
[2/14/11 16:23:19:591 IST] 0000002c SystemOut O [LCDS]-- Header in request: User-Agent : Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 3.5.30729; InfoPath.2; .NET CLR 1.1.4322; MS-RTC LM 8; SLCC1; MS-RTC S; USPortal)
[2/14/11 16:23:19:591 IST] 0000002c SystemOut O [LCDS]-- Header in request: Cache-Control : no-cache
[2/14/11 16:23:19:591 IST] 0000002c SystemOut O [LCDS]-- Begin GET request --
[2/14/11 16:23:19:591 IST] 0000002c SystemOut O [LCDS]
[2/14/11 16:23:19:591 IST] 0000002c SystemOut O [LCDS]-- End GET request --
[2/14/11 16:23:20:191 IST] 0000002d FfdcProvider I com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on C:\IBM\WebSphere\Appserver\profiles\AppSrv04\logs\ffdc\server1_1aaf1aaf_11.02.14_16.23.19 .98114899428566798599.txt com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest 573
[2/14/11 16:23:20:391 IST] 0000002c SystemOut O [LCDS]Serializing AMFX/HTTP response
Version: 3
(Message #0 targetURI=/onStatus, responseURI=)
(Typed Object #0 'flex.messaging.messages.ErrorMessage')
body = null
messageId = "A568F5E1-EF0D-DCBC-6AB1-912C2FEAACB2"
extendedData = null
clientId = "A568DF0F-A60A-1473-CDAB-707E4A185812"
headers = (Object #1)
DSStatusCode = 404
rootCause = null
destination = "testWebservice"
faultCode = "Server.Proxy.Request.Failed"
faultString = "HTTP/1.1 404 Not Found"
faultDetail = "HTTP/1.1 404 Not Found"
timeToLive = 0.0
timestamp = 1.297680800351E12
correlationId = "9F6F7661-8FA1-30CA-3F04-23CD91C1AF90"I received a workaround by an internal message.
The how to guide is :
-Download the wsdl file (with bindings, not the one from ESR)
-Correct it in order that the schema corresponds to the answer (remove minOccurs or other things like this)
-Deploy the wsdl file on you a server (java web project for exemple). you can deploy on your local
-Create a new logicial destination that point to the wsdl file modified
-Change the metadata destination in your web dynpro project for the corresponding model and keep the execution desitnation as before.
Then the received data is check by the metadata logical destination but the data is retrieved from the correct server. -
Yum list command throws repomd.xml file damaged error on OEL6.4 client
Hi,
I have an OEL6.4 client and it points to our internal YUM server. When i run yum list command on the client it throws an error given below,
[root@client 6.4]# yum list
Loaded plugins: security
ol6_base | 982 B 00:00
http://server1/yum/6/Latest/patch/x86_64/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for ol6_UEK_latest: Damaged repomd.xml file
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: ol6_UEK_latest. Please verify its path and try again
Can someone help me in fixing this issue.Let me explain a bit about my setup. I have a YUM server which is located in US and clients are located in both US and in UK.
Working server in US and details requested are below,
OS - Oracle Linux Server release 5.7
YUM rpm - yum-3.2.22-37.0.1.el5
# yum clean all
Loaded plugins: rhnplugin, security
Cleaning up Everything
# yum repolist
Loaded plugins: rhnplugin, security
This system is not registered with ULN.
ULN support will be disabled.
ol6_base | 1.9 kB 00:00
ol6_base/primary_db | 4.7 MB 00:00
ol6_patch | 1.9 kB 00:00
ol6_patch/primary_db | 1.7 MB 00:00
repo id repo name status
ol6_base Latest Unbreakable Enterprise Kernel for Oracle Linux (x86_64) 6,245
ol6_patch Latest Unbreakable Enterprise Kernel for Oracle Linux (x86_64) 745
repolist: 6,990
========================================
2 Servers in UK which are not working,
Client 1:-
OS - Oracle Linux Server release 6.4
YUM rpm - yum-3.2.29-40.0.1.el6.noarch
# yum clean all
Loaded plugins: security
Cleaning repos: ol6_base ol6_patch
Cleaning up Everything
YUM repolist:-
#yum repolist
Loaded plugins: security
ol6_base | 984 B 00:00
http://yum-server/yum/6/Latest/base/x86_64/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for ol6_base: Damaged repomd.xml file
Trying other mirror.
repo id repo name status
ol6_base Latest Unbreakable Enterprise Kernel for Oracle Linux (x86_64) 0
ol6_patch Latest Unbreakable Enterprise Kernel for Oracle Linux (x86_64) 0
repolist: 0
Client2:-
OS - Oracle Linux Server release 5.9
YUM rpm - yum-3.2.22-40.0.1.el5
# yum clean all
Loaded plugins: rhnplugin, security
Cleaning up Everything
=====================================
Server in UK which is working,
OS - Oracle Linux Server release 5.8
YUM rpm - yum-3.2.22-39.0.2.el5
# yum clean all
Loaded plugins: rhnplugin, security
Cleaning up Everything
YUM repolist -
yum repolist
Loaded plugins: rhnplugin, security
This system is not registered with ULN.
ULN support will be disabled.
ol6_base | 1.9 kB 00:00
ol6_base/primary_db | 4.7 MB 00:02
ol6_patch | 1.9 kB 00:00
ol6_patch/primary_db | 1.7 MB 00:00
repo id repo name status
ol6_base Latest Unbreakable Enterprise Kernel for Oracle Linux (x86_64) 6,245
ol6_patch Latest Unbreakable Enterprise Kernel for Oracle Linux (x86_64) 745
repolist: 6,990
===================================
YUM server details are below,
OS - Oracle Linux Server release 5.8
YUM rpm - yum-3.2.22-39.0.2.el5
Looks like issue with some of the clients in UK, can you tell me the config files of the clients which i should take a look and that should help us in fixing the problem.
Thank you for your sincere efforts in spending so much of your valuable time to fix this problem. I truly appreciate it. -
Error while loading xml files using JDBC
Hi,
I am trying to load xml files into an xmltype table using JDBC calls and am getting this error for some files
LPX-00200: could not convert from encoding UTF-8 to UCS2
The xml files and our database are both UTF-8 encoded. The version of oracle that we have here is 9.2.0.6
Any suggestions in this matter will be greatly appreciated.
Thanks,
UmaI also experienced this problem and unfortunately this solution didn't work for me given that the tag you suggested was already on the XML file.
-
Error While Loading XMl Doc into Oracle Database 10g
Hi all,
I have a task that , I have to make a utillity by which we can load XML Doc into a Table. While searching on Internet i found following Procedure on ASK Tom
CREATE OR REPLACE
procedure insert_xml_emps(
p_directory in varchar2, p_filename in varchar2, vtableName in varchar2 )
as
v_filelocator bfile;
v_cloblocator clob;
l_ctx dbms_xmlsave.ctxType;
l_rows number;
begin
dbms_lob.createtemporary(v_cloblocator,true);
v_filelocator := bfilename(p_directory, p_filename);
dbms_lob.open(v_filelocator, dbms_lob.file_readonly);
DBMS_LOB.LOADFROMFILE(v_cloblocator, v_filelocator,
dbms_lob.getlength(v_filelocator));
l_ctx := dbms_xmlsave.newContext(vTableName);
l_rows := dbms_xmlsave.insertxml(l_ctx,v_cloblocator);
dbms_xmlsave.closeContext(l_ctx);
dbms_output.put_line(l_rows || ' rows inserted...');
dbms_lob.close(v_filelocator);
DBMS_LOB.FREETEMPORARY(v_cloblocator);
end ;
when i try to run this procedure
BEGIN
insert_xml_emps('XML_LOAD','load.xml','IBSCOLYTD');
END;
it gaves me following Error
ORA-29532: java call terminated by uncaught java exception : Oracle.xml.sql.OracleXMLSQLException:No
rows to modify-- the row enclosing tag missing. Specify the correct row enclosing tag.
ORA-06512: at "SYS.DBMS_XMLSAVE", line 115
ORA-06512: at "EXT_TEST.INSERT_XML_EMPS", line 18
ORA-06512: at line 2
Can anyone describe me this error
Thanks.
Best Regards.SQL> /* Creating Your table */
SQL> CREATE TABLE IBSCOLYTD
2 (
3 ACTNOI VARCHAR2 (8),
4 MEMONOI NUMBER (7,0),
5 MEMODTEI DATE,
6 AMOUNTI NUMBER (8,0),
7 BRCDSI NUMBER (4,0),
8 TYPEI NUMBER (4,0),
9 TRANSMONI NUMBER (6,0)
10 );
Table created.
SQL> CREATE OR REPLACE PROCEDURE insert_xml_emps(p_directory in varchar2,
2 p_filename in varchar2,
3 vtableName in varchar2) as
4 v_filelocator BFILE;
5 v_cloblocator CLOB;
6 l_ctx DBMS_XMLSTORE.CTXTYPE;
7 l_rows NUMBER;
8 v_amount_to_load NUMBER;
9 dest_offset NUMBER := 1;
10 src_offset NUMBER := 1;
11 lang_context NUMBER := DBMS_LOB.DEFAULT_LANG_CTX;
12 warning NUMBER;
13 BEGIN
14 dbms_lob.createtemporary(v_cloblocator, true);
15 v_filelocator := bfilename(p_directory, p_filename);
16 dbms_lob.open(v_filelocator, dbms_lob.file_readonly);
17 v_amount_to_load := DBMS_LOB.getlength(v_filelocator);
18 --- ***This line is changed*** ---
19 DBMS_LOB.LOADCLOBFROMFILE(v_cloblocator,
20 v_filelocator,
21 v_amount_to_load,
22 dest_offset,
23 src_offset,
24 0,
25 lang_context,
26 warning);
27
28 l_ctx := DBMS_XMLSTORE.newContext(vTableName);
29 DBMS_XMLSTORE.setRowTag(l_ctx, 'ROWSET');
30 DBMS_XMLSTORE.setRowTag(l_ctx, 'IBSCOLYTD');
31 -- clear the update settings
32 DBMS_XMLStore.clearUpdateColumnList(l_ctx);
33 -- set the columns to be updated as a list of values
34 DBMS_XMLStore.setUpdateColumn(l_ctx, 'ACTNOI');
35 DBMS_XMLStore.setUpdateColumn(l_ctx, 'MEMONOI');
36 DBMS_XMLStore.setUpdatecolumn(l_ctx, 'MEMODTEI');
37 DBMS_XMLStore.setUpdatecolumn(l_ctx, 'AMOUNTI');
38 DBMS_XMLStore.setUpdatecolumn(l_ctx, 'BRCDSI');
39 DBMS_XMLStore.setUpdatecolumn(l_ctx, 'TYPEI');
40 DBMS_XMLStore.setUpdatecolumn(l_ctx, 'TRANSMONI');
41 -- Now insert the doc.
42 l_rows := DBMS_XMLSTORE.insertxml(l_ctx, v_cloblocator);
43 DBMS_XMLSTORE.closeContext(l_ctx);
44 dbms_output.put_line(l_rows || ' rows inserted...');
45 dbms_lob.close(v_filelocator);
46 DBMS_LOB.FREETEMPORARY(v_cloblocator);
47 END;
48 /
Procedure created.
SQL> BEGIN
2 insert_xml_emps('TEST_DIR','load.xml','IBSCOLYTD');
3 END;
4 /
PL/SQL procedure successfully completed.
SQL> SELECT * FROM ibscolytd;
ACTNOI MEMONOI MEMODTEI AMOUNTI BRCDSI TYPEI TRANSMONI
28004125 251942 05-SEP-92 400 513 1 0
28004125 251943 04-OCT-92 400 513 1 0
SQL> -
IDOC_XML_FROM_FILE Error while loading XML as IDOC to ECC 6.0
I have successfully converted IDOC to XML file.
Getting Error while converting XML back to IDOC in ECC 6.0 using function: IDOC_XML_FROM_FILE
Segment EDI_DS40 is not defined.....I am really not sure about the error as this idoc was previously posted to the same ECC 6.0...
Exception SEGMENT_ERROR
Message ID: EA Message number: 721
Message:
The segment EDI_DS40 is not defined.
Secondly is there a way to load XML file via WE19?
Tx
SalmanThanks alot Oliver for taking a stab...
I created the XML file from within SAP by using the functionailty of this function module:-
IDOC_XML_TRANSFORM
I created my ZIDOC_XML_TRANSFORM and just added file download facility in that the rest is the same as the orignal function.
Is there any way for me to supress generation of ED_DS40 segements in the XML file?? -
Error while loading XML files into scott user
Hi All,
I'm new to xml files. I need to load xml files into database through OWB.
I have xml file in my local machine & am trying to load into table PO of Scott. Scott is registered as repository user.
Followed same steps as specified in userguide.
But, when executing the procedure ( in two ways one as just table name, and other as user.table name) it is showing the below error:
Procedure is:(1)--with username.tablename
begin
wb_xml_load(
'<OWBXMLRuntime>'||
'<XMLSource>'||
'<file>&&SAMPLES_DIR.sample1.xml</file>'||
'</XMLSource>'||
'<targets>'||
'<target dateFormat="yyyy.MM.dd">scott.PO</target>'||
'</targets>'||
'</OWBXMLRuntime>'
end;
ERROR at line 1:
ORA-20006: Error occurred while truncating target database object SCOTT.PO.
Base exception: ORA-01031: insufficient privileges
ORA-06512: at "OWBSYS.WB_XML_LOAD_F", line 12
ORA-06512: at "OWBSYS.WB_XML_LOAD", line 4
ORA-06512: at "SCOTT.SAMPLE1", line 3
ORA-06512: at line 1
Procedure is:(2) with out username
begin
wb_xml_load(
'<OWBXMLRuntime>'||
'<XMLSource>'||
'<file>&&SAMPLES_DIR.sample1.xml</file>'||
'</XMLSource>'||
'<targets>'||
'<target dateFormat="yyyy.MM.dd">PO</target>'||
'</targets>'||
'</OWBXMLRuntime>'
end;
ERROR at line 1:
ORA-20006: Error occurred while truncating target database object PO.
Base exception: ORA-00942: table or view does not exist
ORA-06512: at "OWBSYS.WB_XML_LOAD_F", line 12
ORA-06512: at "OWBSYS.WB_XML_LOAD", line 4
ORA-06512: at line 2
xml file:
<ROWSET>
<ROW>
<ID>100</ID>
<ORDER_DATE>2000.12.20</ORDER_DATE>
<SHIPTO_NAME>Adrian Howard</SHIPTO_NAME>
<SHIPTO_STREET>500 Marine World Parkway</SHIPTO_STREET>
<SHIPTO_CITY>Redwood City</SHIPTO_CITY>
<SHIPTO_STATE>CA</SHIPTO_STATE>
<SHIPTO_ZIP>94065</SHIPTO_ZIP>
</ROW>
</ROWSET>
Note: Everything works fine if I create PO table in OWBSYS user and execute the procedurein OWBSYS user. OWBSYS.PO table will be loaded.
What privileges are missing, what shouldI do if I want to execute the procedure from scott user and load the table of scott.
Thanks in advance for the help.
Regards,
JoshnaHi Joshna,
Please follow below steps to load xml file to oracle database.
1.First connect to owb (Design Center) through your repository owner user (ex : REP_OWNER).
2. Import WB_XML_LOAD procedure . and exit to repository owner.
3. connect to owb design center through your repository user (ex : REP_USER)
Create New mapping and drag one Constant Operator and create one attribute, paste / edit following code
'<OWBXMLRuntime>'||
'<XMLSource>'||
'<file>E:\SOURCE\emp.xml</file>'||
'</XMLSource>'||
'<targets>'||
'<target truncateFirst = "FALSE" dateFormat="yyyy.MM.dd">rep_user.emp</target>'||
'</targets>'||
'</OWBXMLRuntime>'
4. Drag pre mapping operator and select WB_XML_LOAD procedure
5. Connect Constant Operator attribute to pre mapping operator.
6. Drag two dummy tables and connect source to target. (ex : drag t1 (table) tab two times and connect.
7. Validate and deploy the mapping.
8. grant necessary grant command to rep_owner user to rep_user user.
(Note : target truncateFirst = "FALSE" by default truncate the table. So you have to give grant privileges
To rep_user , select ,insert, delete privileges.
9. Execute the mapping , and check EMP table. (Note : before loading EMP table delete all records ).
10 . If you want more description please go through the below link
http://download.oracle.com/docs/html/A95931_01/apf.htm
Regards
Venkat -
Creating new analysis gives "Error loading XML Document from ..."
Trying to create analysis and getting "Error loading XML Document from saw.dll/answers/answersproperties.xml?fmapId=S1clug.
The response given was:" after choosing subject area. Analysis editor is opened but Subject Areas is empty and can't do anything.
The problem is on Mozilla 12 (16.0.2, 17.0.1) and IE 8. Chrome works fine.
My system is Win 7, BI 11.1.1.6.0 is on Oracle Linux (and by the way Mozilla from Linux system works fine)
What could be the reason of this?
Edited by: 898973 on 4/12/2012 15:11Reinstalling Mozilla with "Remove personal data" option checked resolved the problem.
-
Hi
I need to load XML document into a table in Oracle warehouse builder.
I've followed the steps as given in the user guide and I get the following error,
ORA-20011: Error occurred while loading source XML document into the target database object PURCHASE_ORDERS.
Base exception: Start of root element expected.
ORA-06512: at "DC_DWH.WB_XML_LOAD_F", line 12
ORA-06512: at "DC_DWH.WB_XML_LOAD", line 4
ORA-06512: at line 7
The steps are:
DECLARE
CONTROL_INFO VARCHAR2(200);
BEGIN
CONTROL_INFO := '<OWBXMLRuntime> <XMLSource> <file>c:\xml_test\y.xml</file> </XMLSource> <targets> <target XSLFile="c:\xml_test\y.xsl" dateFormat="yyyy.MM.dd">PURCHASE_ORDERS</target> </targets></OWBXMLRuntime>';
DC_DWH.Wb_Xml_Load ( CONTROL_INFO );
COMMIT;
END;
where:
------------- y.xml ----------------
<purchaseOrder>
<id>103123-4</id>
<orderDate>2000-10-20</orderDate>
<shipTo country="US">
<name>Alice Smith</name>
<street>123 Maple Street</street>
<city>Mill Valley</city>
<state>CA</state>
<zip>90952</zip>
</shipTo>
<comment>Hurry, my lawn is going wild!</comment>
<items>
<item>
<partNum>872-AA</partNum>
<productName>Lawnmower</productName>
<quantity>1</quantity>
<USPrice>148.95</USPrice>
<comment>Confirm this is electric</comment>
</item>
<item>
<partNum>845-ED</partNum>
<productName>Baby Monitor</productName>
<quantity>1</quantity>
<USPrice>39.98</USPrice>
<shipDate>1999-05-21</shipDate>
</item>
</items>
</purchaseOrder>
-----------------y.xsl -------------------
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2004/07/xpath-functions" xmlns:xdt="http://www.w3.org/2004/07/xpath-datatypes">
<SHIPTO_NAME>
<xsl:value-of select="purchaseOrder/shipTo/name"/>
</SHIPTO_NAME>
<SHIPTO_STREET>
<xsl:value-of select="purchaseOrder/shipTo/street"/>
</SHIPTO_STREET>
<SHIPTO_CITY>
<xsl:value-of select="purchaseOrder/shipTo/city"/>
</SHIPTO_CITY>
</xsl:stylesheet>
Any help is appreciatedHello,
The error occurs as far as your XSL file has incorrect structure. Your have to transform incoming XML in so-called (by Oracle) canonical form i.e.:
<ROWSET>
<ROW>
<FIELD_1>value-for-field-1</FIELD_1>
<FIELD_N>value-for-field-N</FIELD_N>
</ROW>
</ROWSET>
So, assuming your table has three fields : SHIPTO_NAME, SHIPT_STREET, SHIPTO_CITY, - your XSL file should look like following:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<xsl:template match=/>
<ROWSET>
<xsl:apply-templates select=purchaseOrder/>
</ROWSET>
</xsl:template>
<xsl:template match=purchaseOrder>
<ROW>
<SHIPTO_NAME><xsl:value-of select=shipTo/name/></SHIPTO_NAME>
<SHIPTO_STREET><xsl:value-of select=shipTo/street/></SHIPTO_STREET>
<SHIPTO_CITY><xsl:value-of select=shipTo/city/></SHIPTO_CITY>
</ROW>
</xsl:template>
</xsl:stylesheet>
Hope this will help.
Maybe you are looking for
-
ConfigMgr client no longer installing during task sequence SCCM 2007
I've been trying to create an image and deploy an image of Dell Latitude E6430 laptops that while the deployment of the image works it does not install the SCCM client (configmgr client). This used to work in my environment but no longer does. I ca
-
Creating an image file from cd
Good day, I was wondering how if anyone knows a way to create an ISO image from a cd to run on virtual box. I tried creating one using disk utility, but it did not work. Can this be done through Snow Leopard default programs, or would I need to purch
-
This question involves Adobe Album Starter and Elements 8
I have recently purchased Elements 8 and have started to transfer photos from Album Starter to Elements 8. I was successful with some but there are a great many left with the little red icon in the middle bottom of them. I am unable to do anything wi
-
Currency translation - time reference
Hi It is possible to create custom type of time reference for currency translation? I would like to inplement translation using 0CALDAY with offset (seven days back). There are only "To the exact day". Regards Adam
-
HT1918 My account not accepting the credit cards and tell me to contact iTunes support
Kindly assist me please