XPATH select where an attribute doesn't exist
Hi All,
How can I select out an element where an attribute does not exist?
eg:
<Item Block="MYBLOCK">
<Properties>
<Property Name="ScrollbarXPosition">5542</Property>
<Property Name="ScrollbarYPosition">903</Property>
<Property Name="RecordVisualAttributeGroupName">EMPHASIZE</Property>
</Properties>
</Item>
<Item Block="MYBLOCK" Name="ITEM1">
<Properties>
<Property Name="RecordVisualAttributeGroupName">CG$TEXT_ITEM</Property>
<Property Name="VisualAttributeName">CG$TEXT_ITEM</Property>
<Property Name="PromptVisualAttributeName">PROMPT_NORMAL</Property>
</Properties>
</Item> What I would like to do is select the Elment RecordVisualAttributeGroupName from the first elements where the Item Block="MYBLOCK" and Name is NULL. I've had a look through XPATH and can't find the function.
Something along the lines :
Item[@Block='MYBLOCK' and Name IS NULL]/Properties/Property [@Name='RecordVisualAttributeGroupName']/text()"regards,
Steve
Hello Steve,
How about:
Item[@Block='MYBLOCK' and (not(@Name) or @Name='')]/Properties/Property[@Name='RecordVisualAttributeGroupName']/text()You can try it out against the following document:
<root>
<Item Block="MYBLOCK">
<Properties>
<Property Name="ScrollbarXPosition">5542</Property>
<Property Name="ScrollbarYPosition">903</Property>
<Property Name="RecordVisualAttributeGroupName">EMPHASIZE</Property>
</Properties>
</Item>
<Item Block="MYBLOCK" Name="ITEM1">
<Properties>
<Property Name="RecordVisualAttributeGroupName">CG$TEXT_ITEM</Property>
<Property Name="VisualAttributeName">CG$TEXT_ITEM</Property>
<Property Name="PromptVisualAttributeName">PROMPT_NORMAL</Property>
</Properties>
</Item>
<Item Block="MYBLOCK" Name="">
<Properties>
<Property Name="RecordVisualAttributeGroupName">CG$TEXT_ITEM</Property>
<Property Name="VisualAttributeName">CG$TEXT_ITEM</Property>
<Property Name="PromptVisualAttributeName">PROMPT_NORMAL</Property>
</Properties>
</Item>
</root>Using the following code:
import java.io.FileReader;
import oracle.xml.parser.v2.DOMParser;
import oracle.xml.parser.v2.XMLDocument;
import oracle.xml.parser.v2.XMLElement;
import org.w3c.dom.NodeList;
public class Demo {
public static void main(String[] args) throws Exception {
FileReader fileReader = new FileReader("sample.xml");
DOMParser parser = new DOMParser();
parser.parse(fileReader);
XMLDocument document = parser.getDocument();
XMLElement rootElement = (XMLElement) document.getDocumentElement();
NodeList result = rootElement.selectNodes("Item[@Block='MYBLOCK' and (not(@Name) or @Name='')]/Properties/Property[@Name='RecordVisualAttributeGroupName']/text()");
}-Blaise
Similar Messages
-
Adding an element with an attribute to destination schema that doesn't exist on source schema
I have source schema which looks something like below:
source schema
name //attribute
address1 //attribute
address2 //attribute
city //attribute
I need to map it to a destination schema which looks like below:
destination schema
employee //record (repeating element)
fieldname //attribute
type //attribute
After mapping, the xml would look like below:
<employee fieldname= 'name' type='string'>
<employee fieldname= 'address1' type ='string'>
<employee fieldname= 'address2' type ='string'>
<employee fieldname= 'city' type ='string'>
(fieldname exists in source schema, but 'type' doesn't. basing on the fieldname, I add it on the destination schema using ValueMapping functoid )And I am able to do it successfully, but my question is, I need to add a field called 'salary'
of type 'double' to the destination schema similar to the other values
<employee fieldname= 'salary' type ='double'>
But salary doesn't exist in 'source' schema, and it needs to be there in destination schema associated with the attribute 'type='dcouble'' How can I accomplish this? Appreciate any help. thanks!!Hi Anne,
For your requirement, all you need is Table Looping functiod and Table Extractor functiod.
In this example, I am not using the value mapping functiod (you can also use it, but I prefer to make this sample easier for you to understand) so using a “string” as constant.
When you mean by you want
<employee fieldname= 'name' type='string'>
<employee fieldname= 'address1' type ='string'>
<employee fieldname= 'address2' type ='string'> <employee fieldname= 'city' type ='string'>
I assume you’re looking for something like this
<employee fieldname= 'ValueOfName' type='string'>
<employee fieldname= 'ValueOfAddress1' type ='string'>
<employee fieldname= 'ValueOfAddress2' type ='string'>
<employee fieldname= 'ValueOfCity' type ='string'>
Or if you just need field names not the value of the fields, you can still do what you want with the way you do now but using Table Looping functiod and Table Extractor
functiod.
Let me explain this.
Use Table Looping functiod with following parameters:
5 = You need 5 records in output i.e. name, address1,address2,city and salary.
2 = you need 2 columns. i.e. fieldname and type.
Link from 'name' in source schema. Here I have just linked the 'name' from source schema, so this will have VALUE-of-Name element/attribute. Or if you can want just the
field name, you can use the way you’re using to get the field name.
Repeat the above step for all the rest of the fields. I have linked address1, address2 and city.
7<sup>th</sup> parameter is “string” as constant, which I will be passing to “type” attribute in destination. Again you can use value mapping functiod as you
do. If you use value mapping functiod, then rest of the parameter shall be value mapping functiod.
Then I add last two paraters “salary” and “double” as constants, which I will be using to add the new record. Below image show the parameters for Table looping functiond:
Now select the “Configure Table Looping grid” property and map as shown. Give a closer look to the way how this grid has been mapped. Last record in the grid shows the
additional record which you want to add with “salary” and “double”
Now add “Table Extractor functiod”, set its first parameter to “Table looping” and second parameter as “1”
Now another “Table Extractor functiod”, set its first parameter to “Table looping” and second parameter as “2”. Below image show the Table Txtrator functiods parameters:
Now link the Table Looping functiod to “employee” record in destination schema.
Use the above you will get the output as you wanted. Following is the output, note: as mentioned in the fieldName attribute I have the value of the source fields/attributes
since I have used the direct link from soruce in Table Looping functiod parameters, you can use the link which is producing the value for you now for fieldname:
<employee fieldName="name_0" type="string"></employee>
<employee fieldName="address1_1" type="string"></employee>
<employee fieldName="address2_2" type="string"></employee>
<employee fieldName="city_3" type="string"></employee>
<employee fieldName="salary" type="double"></employee>
If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply. -
Where is sign when you call international number, but first you call local number and after connect open keyboard and see that sign doesn't exist only 0
No that is not work. Try to call some number and when is connect click on keyboard and you can see that sign "+" doesn't exist.
So I use local number, when I'm connect I have option to call international number but like "+3193675xxxx" how I can put?
Before on iOS 6 I do it. -
hi when i open my application folder, all the application is shown in trash folder. when i click the application it says this app is in trash first move it out. and when i try to open through finder> go it says this file doesn't exist. can some1 plz help? how can i put all my application through application folder?
Something really odd is going on. In your first screen shot, I noticed that the Applications folder does not have the proper icon displayed in the side bar. Also, in the title bar it lists it as Applications 08-59-29-909.
Not sure where it's picking up that odd name, unless it's because it's still truly within the Trash folder.
Try this. In the Finder > Preferences > General > turn on "Always open folders in a new window". (I have a feeling you have the default setting with this off).
Now, in Finder > Go > move down and open the Applications Folder from there. Now open the folder where you see all your applications that you show in your screen shot, select all, and move them to this true appliactions folder.
This is what you should properly seeing (but with different apps listed):
See how the Applications folder has the icon of the letter A shaped with a pencil, ruler & pen. -
Form doesn't exists after calling driver program
Hi,
I had created a invoice form, and i called through driver program in se38.After executing i m getting as 'Form doesn't exists'.
'zinvoice1' is the name of the smartform.
Code as follows:
REPORT ZINVOICE1.
tables: kna1,vbrp,vbrk.
parameters: p_kunnr like vbrk-kunag,
p_vbeln like vbrk-vbeln.
data : fm_name type rs38l_fnam.
data: t_vbrp like standard table of vbrp,
t_vbrk like standard table of vbrk.
data: fs_kna1 type kna1,
fs_vbrk like line of t_vbrk,
fs_vbrp like line of t_vbrp.
start-of-selection.
select single * from kna1 into fs_kna1
where kunnr eq p_kunnr.
select * from vbrk into table t_vbrk
where kunag eq p_kunnr and vbeln eq p_vbeln.
select * from vbrp into table t_vbrp for all entries in t_vbrk
where vbeln = t_vbrk-vbeln.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'zinvoice1'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = fm_name
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION '/1BCDWB/SF00000050'
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IM_FS_KNA1 = fs_kna1
IM_T_VBRP = t_vbrp
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
IM_T_VBRK = t_vbrk
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'ZINVOICE1'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = fm_name
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3
IF SY-SUBRC 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION fm_name
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IM_FS_KNA1 = fs_kna1
IM_T_VBRP = t_vbrp
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
IM_T_VBRK = t_vbrk
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
IF SY-SUBRC 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. -
Hello,
two of our users get the following error message, when opening two specific reports:
First Report: Cannot find Dimension Scenario.
Second Report: Error executing query: the member null doesn't exist in this application.
Other users can access these reports, and the same users where the problem occurs can access other reports in the same folder.
I set the same rights for me, but i can access the reports without problems.
Somebody encountered the same problem before?Hi there,
I had the same issue a few weeks ago... not sure how it happened but it was related only with my username.
In order to fix it:
1. I created a report which does not require to select the scenario in advance. Try to use the default data-grid that you get when you first create a report for example.
2. When the user runs the report, try to see if he can see the dimension. Do not use the missing dimension on rows or columns. If he can see the dimension, ask him to select one scenario. This will solve the issue.
3. If he cannot see the dimension, try to change the layout of the report.
Regards,
Thanos -
Table 'sitv.a' doesn't exist. vendor code 1146
Post Author: pattyg
CA Forum: Crystal Reports
I need help with a sql statement that I am using in Crystal reports. The table that I am using is sitv and I get an error that
it doesn't exist.
Here is the statement:
SELECT a.UID, a.fid, b.fname , c.lname, d.genderFROM a as profile_values LEFT OUTER JOIN (SELECT uid,fid, cast(value as char (20)) as 'Fname' FROM profile_values WHERE profile_values.fid =1) as bON a.UID = b.UIDLEFT OUTER JOIN(SELECT uid,fid, cast(value as char (20)) as 'lname' FROM profile_values WHERE profile_values.fid =2) as cON a.UID = c.UIDLEFT OUTER JOIN(SELECT uid,fid, cast(value as char (20)) as 'gender' FROM profile_values WHERE profile_values.fid =3) as dON a.UID = d.UID
Any help will be greatly appreciated. Thanks in advance.Post Author: pattyg
CA Forum: Crystal Reports
I figured it out after I went though my statements more closely. The second line was reversed.
FROM a as profile_values
It should be From provile_values as a. -
Schematool : Table '...' doesn't exist on MySQL
I'm trying to use schematool to create the db tables that it has defined in
various jdo files. When I run it I get the following
schematool -action refresh target/classes/net/ajsoft/WebShop/Product/*.jdo
Exception in thread "main" java.sql.Exception: General error, message from
server: "Table 'JDO.Product' doesn't exist"
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1651)
at
com.solarmetric.datasource.PoolConnection$PoolStatement.executeUpdate(PoolConnection.java:112)
I am running with a MySQL DB v4.0.11a, and with its JDBC connector v3.0.8.
There are 3 jdo files being passed in (I assume it can cope with multiple
input files) - the Base class is Product (jdo file attached), with the
other 2 being derived from that.
The database exists, and I can access it (create tables, select etc) using
Triactive JDO (Triactive uses the table PRODUCT, whereas Kodo should be
creating 'Product'). In fact, Kodo has created a table JDO_SEQUENCEX, so
its reaching the DB.
Any ideas what I'm missing ?
AndyI highly recommend using all upper-case in both metadata extensions as
well as in your own SQL scripts. For example, in Oracle, table names are
case-insenstive in SQL scripts, but for retrieval in system tables (e.g.
USER_TABLES), Oracle will reject non-matching cases.
This is good general policy with many databases, if not all.
On Fri, 08 Aug 2003 19:51:33 +0100, Andy Jefferson wrote:
Andy Jefferson wrote:
I'm trying to use schematool to create the db tables that it has defined
in various jdo files. When I run it I get the following
schematool -action refresh target/classes/net/ajsoft/WebShop/Product/*.jdo
Exception in thread "main" java.sql.Exception: General error, message from
server: "Table 'JDO.Product' doesn't exist"
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1651)
at
com.solarmetric.datasource.PoolConnection$PoolStatement.executeUpdate(PoolConnection.java:112)As a followup, I deleted all tables from the DB and re-ran schematool.
Worked fine. Would be nice to understand what happened the first time to
cause that error.
Andy--
Steve Kim
[email protected]
SolarMetric Inc.
http://www.solarmetric.com -
Enhancing existing Abap code: using values that doesn't exist in table
Hi,<br><br>
I would like to enhance this code . My requirement is as follows.<br><br>
I have two tables customer and product<br><br>
<pre>KNVP customer master data table
Customer PF Person
700008 YF 45555
700008 YQ 46666
700008 ZF 46666
700008 YM 49999
700008 ZQ 44444
700008 ZM 43333
T179 product hierarchy table*
product hier PF
1000014000 ZM
1000015000 ZF
1000033000 ZQ
The current extractor is showing YM for all YPF values
Customer Zperson ZPF YPF YPerson
700008 46666 ZF YM 49999
700008 43333 ZQ YM 49999
700008 44444 ZM YM 49999</pre>
<br><br>
Case 1:IF customer doesn't have Partner function value YQ in master data then partner function YF person and partner function should be use.
<br><br>
case 2: IF customer doesn't have Partner function value YF in master data then partner function YQ person and partner function should be use.
<br><br>
case3:IF customer doesn't have Partner function value YQ and YF in master data then partner function YM person and partner function should be use.
<br><br>
The tricky part is that YQ doesn't exist in T179 table
<br><br>
<pre>
LOOP AT T_DATA.
ZIDX = SY-TABIX.
CLEAR T179.
Select partner function, assigned to current
product hierarchy level 2
SELECT * FROM T179
WHERE STUFE = '2'
AND PRODH = T_DATA-PRODH.
ENDSELECT.
Replace value with new partner function.
by replacing first letter to 'Y'
CONCATENATE 'Y' T179-ZZPARVW+1(1) INTO NEWPF.
Try to find new sales employee with this new partner function
CLEAR KNVP.
SELECT * FROM KNVP UP TO 1 ROWS
WHERE KUNNR = T_DATA-KUNNR
AND VKORG = T_DATA-VKORG
AND PARVW = NEWPF.
ENDSELECT.
IF SY-SUBRC EQ 0.
New partner found with this partner function
T_DATA-ZPARVW = NEWPF.
T_DATA-ZPERNR = KNVP-PERNR.
ELSE.
NEWPF = 'YM'.
Try to find new sales employee with partner function 'YM'
CLEAR KNVP.
SELECT * FROM KNVP UP TO 1 ROWS
WHERE KUNNR = T_DATA-KUNNR
AND VKORG = T_DATA-VKORG
AND PARVW = NEWPF.
ENDSELECT.
T_DATA-ZPARVW = NEWPF.
T_DATA-ZPERNR = KNVP-PERNR.
ENDIF.
MODIFY T_DATA INDEX ZIDX TRANSPORTING ZPARVW ZPERNR.
</pre>
<br><br>Edited by: Matt on Aug 24, 2010 9:31 AM - fixed formattingHi,
thanks for your input, I have written it like this and it is working well for YQ and YF partner functions but YM is not showing when both are missing.
LOOP AT T_DATA.
ZIDX = SY-TABIX.
CLEAR T179.
* Select partner function, assigned to current
* product hierarchy level 2
SELECT * FROM T179
WHERE STUFE = '2'
AND PRODH = T_DATA-PRODH.
ENDSELECT.
* Replace value with new partner function.
* by replacing first letter to 'Y'
CONCATENATE 'Y' T179-ZZPARVW+1(1) INTO NEWPF.
IF SY-SUBRC EQ 0.
IF NEWPF EQ 'YF'.
READ TABLE T_KNVP WITH KEY PARVW = 'YF'.
IF SY-SUBRC EQ 0. "YF exists in master data
CLEAR KNVP.
SELECT * FROM KNVP UP TO 1 ROWS
WHERE KUNNR = T_DATA-KUNNR
AND VKORG = T_DATA-VKORG
AND PARVW = 'YF'.
ENDSELECT.
T_DATA-ZPARVW = 'YF'.
T_DATA-ZPERNR = KNVP-PERNR.
ELSE.
READ TABLE T_KNVP WITH KEY PARVW = 'YQ'.
IF SY-SUBRC EQ 0. "YQ exists in master data
CLEAR KNVP.
SELECT * FROM KNVP UP TO 1 ROWS
WHERE KUNNR = T_DATA-KUNNR
AND VKORG = T_DATA-VKORG
AND PARVW = 'YQ'.
ENDSELECT.
T_DATA-ZPARVW = 'YQ'.
T_DATA-ZPERNR = KNVP-PERNR.
ENDIF.
ENDIF.
ENDIF.
IF NEWPF EQ 'YQ'.
READ TABLE T_KNVP WITH KEY PARVW = 'YQ'.
IF SY-SUBRC EQ 0. "YQ exists in master data
CLEAR KNVP.
SELECT * FROM KNVP UP TO 1 ROWS
WHERE KUNNR = T_DATA-KUNNR
AND VKORG = T_DATA-VKORG
AND PARVW = 'YQ'.
ENDSELECT.
T_DATA-ZPARVW = 'YQ'.
T_DATA-ZPERNR = KNVP-PERNR.
ELSE.
READ TABLE T_KNVP WITH KEY PARVW = 'YF'.
IF SY-SUBRC EQ 0. "YF exists in master data
CLEAR KNVP.
SELECT * FROM KNVP UP TO 1 ROWS
WHERE KUNNR = T_DATA-KUNNR
AND VKORG = T_DATA-VKORG
AND PARVW = 'YF'.
ENDSELECT.
T_DATA-ZPARVW = 'YF'.
T_DATA-ZPERNR = KNVP-PERNR.
ENDIF.
ENDIF.
ENDIF.
ELSE.
NEWPF = 'YM'.
* Try to find new sales employee with partner function 'YM'
CLEAR KNVP.
SELECT * FROM KNVP UP TO 1 ROWS
WHERE KUNNR = T_DATA-KUNNR
AND VKORG = T_DATA-VKORG
AND PARVW = NEWPF.
ENDSELECT.
T_DATA-ZPARVW = NEWPF.
T_DATA-ZPERNR = KNVP-PERNR.
ENDIF.
MODIFY T_DATA INDEX ZIDX TRANSPORTING ZPARVW ZPERNR.
ENDLOOP.
thanks
Edited by: Bhat Vaidya on Aug 30, 2010 1:31 PM -
Album that appears in my Web Gallery that doesn't exist in my iPhoto 08?
I posted an Album then tried to delete it and it's still there. Now I have two Albums with the same name. How can I delete it when I can't even see it in iPhoto? URL: http://gallery.mac.com/rickvargas123#gallery
The Tokyo Album with 82 photos is the one that doesn't exist in my iPhoto. The Tokyo Album 112 photos is the one that does exist and is editable.
Anyone know?
RickRick:
Mount your iDisk and go to the Web/Sites/-gallery folder. See how many folders are located in there. You might have to delete them all via the Finder and republish your galleries again.
By the way, your 112 Tokyo gallery is listed at 101 photos when I visit. Wonderful pictures.
Do you Twango?
TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file. -
HTTP-404 \napex: PROCEDURE DOESN'T EXIST\n
I've installed Apex 3.1.1 on 10g release 2.
When I access
http://miller.hhmi.org:7777/pls/apex/
I receive
"The requested URL /pls/apex/apex was not found on this server"
I've triple checked that all the image files in
$ORACLE_HOME/apex/images
are also in
ORACLE_HTTPSERVER_HOME/Apache
The access log shows:
172.18.2.79 - - [13/Aug/2008:16:57:04 -0400] "GET /pls/apex/ HTTP/1.1" 302 5
172.18.2.79 - APEX_PUBLIC_USER [13/Aug/2008:16:57:04 -0400] "GET /pls/apex/apex HTTP/1.1" 404 339
The error log says:
[Wed Aug 13 16:57:04 2008] [error] [client 172.18.2.79] [ecid: 1218661024:192.239.66.81:10078:0:2,0] mod_plsql: /pls/apex/apex HTTP-404 \napex: PROCEDURE DOESN'T EXIST\n
The dads.conf is:
Alias /i/ "/opt/home/as10g/oracle/product/10.2.0/db_1/Apache/Apache/images/"
AddType text/xml xbl
AddType text/x-component htc
<Location /pls/apex>
Order deny,allow
PlsqlDocumentPath docs
AllowOverride None
PlsqlDatabaseConnectString wilson.hhmi.org:1521:webtst10.world ServiceNameFormat
PlsqlNLSLanguage AMERICAN_AMERICA.AL32UTF8
PlsqlAuthenticationMode Basic
SetHandler pls_handler
PlsqlDocumentTablename wwv_flow_file_objects$
PlsqlDatabaseUsername APEX_PUBLIC_USER
PlsqlDefaultPage apex
PlsqlDatabasePassword apex_tst$
Allow from all
</Location>
Interestingly, if I replace
"PlsqlDefaultPage apex"
with
"PlsqlDefaultPage htmldb"
I at least get to the old HTMLDB 1.6 login page, although nothing happens.
I've spent so much time on this, I'm not sure what to do next. Any help would be much appreciated.
--BillIt already had the grant, but I did it again, and also granted execute to APEX_PUBLIC_USER.
SELECT grantor, grantee, table_schema, table_name, privilege
FROM ALL_TAB_PRIVS
WHERE TABLE_NAME = 'APEX'
GRANTOR GRANTEE TABLE_SCHEMA TABLE_NAME PRIVILEGE
FLOWS_030100 APEX_PUBLIC_USER FLOWS_030100 APEX EXECUTE
FLOWS_030100 PUBLIC FLOWS_030100 APEX EXECUTE
I still get the PROCEDURE DOESN'T EXIST error.
When I change the PlsqlDefaultPage in the dads.conf from
PlsqlDefaultPage apex
to
PlsqlDefaultPage flows_030100.apex
,I get the following:
application=4500 workspace=10
Error ERR-1014 Application not found.
Does that shed any light, or is that another issue? Ugh! -
HTTP-404 \napex: PROCEDURE DOESN'T EXIST
Hi,
I have installed Oracle Application Express 3.1.2 and unable to access the admin apex page. 404, page Not Found error message.
In the Apache log file, the error is mod_plsql: /pls/apex/apex HTTP-404 \napex: PROCEDURE DOESN'T EXIST\n
The http server page is responding and the the apex has insatalled successfully in a database. dads.conf configured and http server restarted.
On the databse side, APEX_PUBLIC_USER connected successfully using the password mentioned in the dads.conf.
Since I have another database with apex, I have tested by changing the SID name in the dads.conf and it works. They have same host and port number.
The only differnence between the 2 apex installation is the version, the one which works is 3.0
Thanks for your helpHi:
The URL I suggested that you try returns the APEX login page for my 3.1.2 APEX installation. Could your APEX installation have failed somewhere half way through the installation process ? Do you see any errors in the installation log file ?
What does the query below when run against the database that APEX 3.1.2 was installed in return ?
select version,status from dba_registry where comp_id='APEX';Varad -
How do I know if an update failed because the record doesn't exist
I am updating a row in a table and I want to know if the update didn't work because the record doesn't exist. Is there any way of knowing this? I want to avoid doing a select if at all possible. I am using sqlj with Oracle 9i on Linux and JDK 1.3.1.
...and I want to know if the update didn't work because the record doesn't exist. It is possible that you are looking at the problem wrong. An update doesn't 'fail' if there is nothing to update. So it works whether anything was updated or not. And so it might simply not be possible to see whether zero or more rows were updated. (Returning how many rows were updated might represent an enhancement rather than a necessity.)
I didn't find anything specifically that said this was or wasn't supported by briefly looking at the Oracle docs and searching google.
If nothing else you could always do a select first with the same where clause and then do the update if the select returns a non-empty set. -
Problems with outlook 2010 IMAP it says : Mailbox doesn't exist
I have a problem with my outlook at work.
I am currently using Outlook 2010 as IMAP (excuse me for my bad English)
There is 1 Category "Harderwijk" where I can't take any mail in or out.
Whenever i try to put a new mail in the map I get this error: Cannot move items Response from server was: Mailbox doesn't exist. Whenever I try to put a mail out of the Harderwijk map I get this error: Cannot move item, Cannot select map this could be a cause
of the IMAP-Server or the map is possibly deleted or changed.
Can someone help me with this?
I tried to google the answer, but the only responses I saw is that people are going to other mail servers or had to make a new mail. Since this is a bussiness mail we can't afford to lose our e-mails.
So I need a solution without losing all the mails. Thanks in advance.hi, you can check these two links:
http://www.emaildiscussions.com/showthread.php?p=492312
http://forums.mozillazine.org/viewtopic.php?f=28&t=65807
Regards,
Flynn -
Reg: Table doesn't exist -
Hi Experts,
I'm getting this error - 'Table or View doesn't exist' when the table <tt>DBA_DML_LOCKS</tt> is used inside a (cursor) package but the same works fine when run independently.
I'm quite sure that I'm lacking some knowledge there. Can anybody please help me in that?
CREATE OR REPLACE PROCEDURE dml_locks
AUTHID CURRENT_USER --DEFINER
IS
CURSOR cur_locks
IS
SELECT ROW_NUMBER () OVER (PARTITION BY b.session_id ORDER BY b.name)
"Rno",
a.sid "session_id",
a.schemaname,
b.name "table_name",
b.mode_held "lock_mode_held",
a.osuser,
a.machine,
a.program
FROM v$session a, dba_dml_locks b
WHERE a.sid = b.session_id;
BEGIN
FOR i IN cur_locks
LOOP
--HTP.PRINT (i.rno || '---' || i.session_id);
htp.print('*');
END LOOP;
EXCEPTION
WHEN OTHERS
THEN
HTP.PRINT ('Error - ' || DBMS_UTILITY.format_error_backtrace);
END;Is it something related to the rights - Definer or Current User?
Checked this similar thread but couldn't understand - table/view does not exist using dbms_sql
Help much appreciated!
- Ranit (on Oracle Database 10g Enterprise Edition Release *10.2.0.5.0* - 64bi )ranit B wrote:
Karthick_Arp wrote:
Grant to dictionary objects is assigned through a ROLE to your user. You need to have grant assigned explicitly to your user to access the object from within a PL/SQL code.Ohhh... nice to hear that. Thanks!
Can't I use <tt>AUTHID</tt> to resolve this?
And I'm not getting - what is the difference between Grants through ROLE and explicitly assigned Grants? I mean to say finally all give Grants only right??
Edited by: ranit B on May 6, 2013 12:41 PMhttp://asktom.oracle.com/pls/asktom/ASKTOM.download_file?p_file=6551289900368934430
Maybe you are looking for
-
VPN - can't access internet over VPN
Hi, I have an issue with VPN. For my work I need to be able to log into my office network remotely and then access remote desktop connection from within my work network. This won't work unless I am accessing the internet from inside the VPN. I have g
-
I am a new iPhone 5s user. I like many of the features it offers. I don't like that I cannot talk and use the internet (if I am away from WI-FI) and this phone is too small. I am actually thinking of returning it and going back to an Android. After a
-
Is there a way to prevent airplay from restarting the playback?
Sometimes when I'm out I'll watch a video on my iPad, then when get back home, I decide to continue the video using airplay on my TV. Every time I do this, the playback restarts from 00:00, and not where I left off. Is there a way to prevent this and
-
Need help learning how to update my system
Hey guys! I need to update my system, so I went ot the wiki and learned that I have to type: pacman -Syu in the terminal, but I get a weird output that I am unsure how to answer: replace kernel26-firmware with core/linux-firmware? [Y/n] I am unsure w
-
Silly ERROR! Help Me Fix Plz
I have just successfully got Jdev 9i working again, and I went to compile my project that I was working on and got the following: Error: initialization error: oracle.ojc.symtab.LoadError: file java\lang\Object.class not found I didn't get this last t