Clear cache page after deletion to avoid errors ora-1403 Apex 5.01
Hi all
Always 'new' at Apex!
I'm getting ORA-01403: no data available error after deleting a line in a 5.01 Apex form created from the interactive report + model form.
After searching the forum, I found a direct reference to this situation:
ORA-01403: no data available on the deletion of a record
--------------------------------------------------------------------------------
After deleting a record, you must clear the page cache. If you do not have the primary key item session state can keep the old value of the deleted record. The page loading process will try to retrieve this value from the table and meet no data found.
---------------------------------------------------------------------------------
Unfortunately, I do not know where or how to " " " clear the cache of the page ' after deleting a record.
I saw the reverence to APEX_UTIL. CLEAR_PAGE_CACHE but I don't know where to use
Others say still set the value of the key null column.
The documentation of the Apex is said to use the URL:
2.9.3.2.2 example: clear cache on a Page and passing an element value
This example shows how to implement a form of update. It erases the existing information and sets the value of the element (usually a primary key).
f?p=6000:6003:&APP_SESSION.::NO:6003:MY_ITEM:1234
This example:
- Runs the application 6003 6000 page and uses the ID of the current session
- Specifies to not show debug information (
NO
)
- Clears all values maintained by the current session for the items on page 6003 cache
- Sets the State of an element called session
MY_ITEM
value1234
But I do not know where or how to do that in the context of the key Suppr.
Can someone point me in the right direction? I'm learning the Apex using as many integrates native as possible features.
If clearing the cache of the page, that's what needs to be done after the removal of a line, would not these features have been integrated to the Delete key?
Thank you
Mason
OK, after wandering in the desert for a while, I tried this approach to clear the cache once you press the button Delete and it doesn't seem to work.
I created a new process called "Clear the cache" after the process of "line process of...» »
The process to clear the cache was of type PL/SQL Code with the section of Code PL/SQL, the value 'APEX_UTIL. CLEAR_PAGE_CACHE (2); »
I don't know if it's a good way to do this, or if the accepted practices, or what side effects will rain down on me that they are, but at least I got a result that has solved my immediate problem.
So nice to click on delete and not greeted with an ORA-01403 error!
Thanks to everyone who helped me in on it!
Mason
Tags: Database
Similar Questions
-
Error ORA - 01858 Apex report working / valid underlying the request
After two days of searching for these forums and AskTom, I think I need to put the following problem.
I have what seems to be a valid view of certain data that is created as follows (with apologies for the formatting - doesn't seem to be a way to use a fixed font here):
CREATE OR REPLACE VIEW "PRICING_CAPABILITY" OF THE FORCE. "" POW_EXEC_SUMM010 "("Item",
"Jul-09", "Aug-09", "Ms-09", "Oct-09", "Nov-09", "Dec-09", "Jan-10", "" "" "
'Feb-10', '10-Mar', 'Apr-10', '10-may', 'Jun-10', 'CDA')
AS
SELECT
"Item."
Sum (decode("ItemMonth",'Jul-09',"ItemValue",0)) "Jul - 09,
Sum (decode("ItemMonth",'Aug-09',"ItemValue",0)) "Aug - 09,
Sum (decode("ItemMonth",'Sep-09',"ItemValue",0)) "Sep - 09,
Sum (decode("ItemMonth",'Oct-09',"ItemValue",0)) "Oct - 09,
Sum (decode("ItemMonth",'Nov-09',"ItemValue",0)) "Nov - 09,
Sum (decode("ItemMonth",'Dec-09',"ItemValue",0)) "Dec - 09,
Sum (decode("ItemMonth",'Jan-10',"ItemValue",0)) "Jan - 10,
Sum (decode("ItemMonth",'Feb-10',"ItemValue",0)) "Feb - 10,
Sum (decode("ItemMonth",'Mar-10',"ItemValue",0)) "Mar - 10,
Sum (decode("ItemMonth",'Apr-10',"ItemValue",0)) "Apr - 10,
Sum (decode("ItemMonth",'May-10',"ItemValue",0)) "may-10,
Sum (decode("ItemMonth",'Jun-10',"ItemValue",0)) "Jun - 10."
Sum ("ItemValueOptional") AS "CDA".
Of
(
SELECT
"Received new proposals" AS "Item."
To_char(T1.scope_received,'Mon-RR') AS "ItemMonth."
Count (*) AS "Valeurelement."
10. AS 'SortOrder '.
Of
PRICING_CAPABILITY. POW_DATA t1
WHERE
T1.scope_received IS NOT NULL
AND extract it (FROM AN t1.scope_received) IN (2009,2010)
' AND t1.scope_received > = July 1, 2009.
GROUP BY
«New proposals received.»
To_char(T1.scope_received,'Mon-RR'),
10
UNION
SELECT
"New proposals complΘtΘ' AS"Item. "
To_char(T2.pricing_approval,'Mon-RR') AS "ItemMonth."
Count (*) AS "Valeurelement."
20. AS 'SortOrder '.
Of
PRICING_CAPABILITY. POW_DATA t1
JOIN PRICING_CAPABILITY. POW_LAST_HISTORY t2
WE
T1. POW_DATA_ID = t2. POW_DATA_ID
WHERE
T2.pricing_approval IS NOT NULL
AND extract it (FROM AN t2.pricing_approval) IN (2009,2010)
' AND t2.pricing_approval > = July 1, 2009.
GROUP BY
"End of new proposals."
To_char(T2.pricing_approval,'Mon-RR')
)
GROUP BY
"Item."
'SortOrder '.
ORDER BY
"SortOrder";
This view works, IE produced good results by operating (i.e. select * from...) with SQL Developer and SQL Workshop of the Apex section.
But when I try to produce an Apex report, use it as a data source, I get the following error:
ORA-01858: a non-digit character was found here where was waiting for a digital
The error is displayed before that appear part any report itself, that is to say the header of the region is displayed and then the error message.
So far, everything I could find on the forums or AskTom suggests that this is probably due to a problem. But the goal here is to summarize records dated by month, so I've extracted the elements year and date values, convert them to strings (using TO_CHAR) and then using the resulting chains of "MON - YY" to group the results.
If there is a better way, I'm interested.
But I do not understand why the Apex seems to be rejecting what appears to be valid results from a query of valid work.
Any ideas? Suggestions?
See you soon,.
PeterYou hit some implicit date conversion problem, probably caused by the preferred language of the browser in combination with the use of literals in the query.
It's a bad idea to use literals as July 1, 2009"in an environment like Apex, which may have different date forrmats according to the preferences of the user.At the beginning of the rendered page Apex performs a SESSION of ALTER to change various NLS parameters.
You can see this by turning on debugging, look for NLS in the resulting output and take a look at the settings that the Apex is application.
The literal 1 July 2009"means the format DD-MON-YYYY mask, but regional settings applied through Apex may involve a different date format mask.Flavio
------
http://oraclequirks.blogspot.com -
Make the page tabs to come back on the same page after deletion
I have a page with three tabs.
When the user clicks on Delete on any page. A warning page comes. And after the user selects Yes or no on the warning page,
original page is displayed. But he's always the first tab. I want to keep the tab also.
How can I do?
I used setForwardUrl to move between pages.Hello
When delete event is raised, in the PFR capture the details of the selected tab
tabBean.getSelectedIndex (pageContext);
store it in session
then
send to the warning dialog page.
view the results of the calling page warning page
in the request form of the calling page process capture the event
use
tabBean.setSelectedIndex (pageContext, value)
get value from session
pageContext.getSessionValue () API
Concerning
Ivar -
Even after the erasure of history (FireFox 6.0.2) the sidebar history contains a story of friends.
After you remove each item individually and say things to forget to each site, they all return.
Any ideas on how to clear the history sidebar?
One possible cause is a problem with the places.sqlite file that stores the bookmarks and history.
-
To clear all pages after the first page
Hi all!
First off I use Adobe 9 standard v9.5.5. Some information about the document: it opens on a single page that contains several fields and four buttons. Two of the buttons submit the document to e-mail addresses. One touch, add another, creates a new page based on a hidden template and mostly reflects the first page. It seems the same but only replicates a button; Add another. These three buttons work exactly as expected.
Low and this is the fourth box, that's what I'm stuck. Essentially, I want to reset the entire document. This means that the fields at page 1 of compensation and the removal of all pages having engineered if the user click on the button Add another. Not for the life of me I can find a thread that helps.
For all those who read this; Thank you!!
This code will do:
this.deletePages (1, this.numPages - 1);
this.resetForm ();
-
Error ORA-01422 apex: exact fetch returns more than the required number of line
Hi people,
Apex 4.1
I have a page that works like a charm.
Based on my application I need I have to perform the same operation for the different regions. As a quick and better method, I copied the page and branched, it inspires tab for this region.
The problem is that the original page works fine.
I haven't changed anything except the parent set to this copied page tab and works that I find with the above error.
It allows me to make the first entry on this page, but when I try to access the page again it gives me this error.
The error in detail is as below:
is_internal_error: false
ora_sqlcode:-1422
ora_sqlerrm: ORA-01422: exact fetch returns more than number of lines
Component.type: APEX_APPLICATION_PAGE_PROCESS
Component.ID: 214936714355373108
Component.Name: EMP_LEAVE_INFO line
error_backtrace:
ORA-06512: at line 1
ORA-06512: at "SYS." DBMS_SYS_SQL", line 1926
ORA-06512: at "SYS." WWV_DBMS_SQL', line 973
ORA-06512: at "SYS." WWV_DBMS_SQL', line 999
ORA-06512: at "APEX_040200.WWV_FLOW_DYNAMIC_EXEC", line 806
ORA-06512: at "APEX_040200.WWV_FLOW_DML", line 336
ORA-06512: at "APEX_040200.WWV_FLOW_PROCESS", line 332>
As a quick and better method, I copied the page and branched, it inspires tab for this region.
>Copy paste is never advisable. It can be fast in some cases, there is an anti-pattern.
Be aware that the automatic extraction of the APEX line is based on a component of demand.
It is possible that your automatic rowfetch is based on the element of your previous page. If you for example to change the name of the table, but do not change the reference is the primary key value, then you can pass a value to your table that was not unique. This would result in ORA-01422.
Find the value of the session element and run your query.
Concerning
Nico
-
The use of Javascript in the button Clear Cache
Hi all
I created a button and under optional URL redirection of the clear Cache, I wrote the page number to clear cache pages, but now I use target as "URL" and the target URL under: -.
JavaScript:XYZ();
and JS in HTML header is: -.
< script language = "JavaScript" type = "text/javascript" >
function xyz()
{
var response = confirm ("are you sure?")
If (response)
{
Window.Location = ' f? p = & APP_ID.:9: & APP_SESSION. »
}
on the other
{
do something else
}
}
< /script >
I am therefore able to redirect the user to page 9, but with what I want also to clear cache certain pages (say for ex:-page 5, 6 and 7), so how can I write under URL
can someone help me?
Thank you
DeepHello
Page 27 of clearing cache to be directly, using the good f? setting clear cache p. Using the value of the claim is to do it manually the APEX motor is done for you, automatically.
It seems to me that something doesn't work correctly with your specific page. After answering the question of why Larry you think that the page cache is net clear, you should try to rebuild your situation on apex.oracle.com.
Kind regards
Arie. -
RMAN Duplicate Database Error error ORA-00201
Hello
I tried to create the restore scenario backup in vmware. I have 2 similar server in Oracle Linux 6.2 (64-bit) where 11.2.0.4 has been installed. In my source server I orcl database and in the destination, there is no database. I took RMAN backup of database in the Source. Then I tried to Clone of Destination on Backup-based database without connection to the target and the catalog. Backup Destination and issued the command as follows:
1 has created a pfile.ora with db_name = "orcl" only
2. in the sqlplus command line: Startup nomount pfile = 'pfile.ora'
Then
started with RMAN, auxiliary
Auxiliary RMAN.
RMAN > duplicated to the backup location "orcl" database "/ home/Oracle/tmp";
After some progress appears error ORA-00201 control file not compatible with 11.2.0.0.0 . Attempted to solve all day but failed. In trying so I even uninstalled and reinstalled several times oracle.
Help, please
Hasan Al Mamun
Hello
The problem is resolved. I added a line in the pfile.ora, i.e. * full = '11.2.0.4.0' then it's OK, Clone of database was complete.
-
application gives an error ORA-20901:
Hello Hello,
I have problems with one of my application pages, I get the following error
ORA-20901: last update of data column "IMAGE_LAST_UPDATE" datatype "VARCHAR2" used to follow the updates of 'INSTRUCTOR_IMAGE' must be a date data type
Error Impossible to process INSTRUCTOR table row.
This happens when I try to add a new employee.
I really don't understand what has gone wrong, because everything worked very well. INSTRUCTOR_IMAGE currently has a BLOB data type that contains a photo of an instructor.
I am currently using APEX 3.2.1.
any help will be greatly appreciatedWhat is the data type for your image_last_update column? That seems to be the problem - it must be a date for blob support work properly.
-Sharon
-
Error ORA-20987 creating users with apex_util.create_user.
Hello. I need to copy users from one summit to the other.
@apex4 is a DBlink apex 4 initial installation, I need to create users on a new server apex4, where I am loged and run this script:
declare
users of cursor is
Select *.
of apex_040100.wwv_flow_fnd_user@apex4
where user_name <>'ADMIN ';
Start
for you in a loop users
(. Create_user) APEX_UTIL
p_user_id = > u.user_id,.
p_user_name = > u.user_name,
p_first_name = > u.first_name,
p_last_name = > u.last_name,
p_description = > u.description,
p_email_address = > u.email_address,
p_web_password = > '1234'.
p_web_password_format = > 'CLEAR_TEXT');
end loop;
end;
I tried to connect with apex_public_user and sys as sysadmin, but I still get the same error:
ORA-20987: APEX - unauthorized access (package for the undefined security group variable). -Contact your administrator of the application.
ORA-06512: en "APEX_040100.WWV_FLOW_ERROR", line 704
ORA-06512: en "APEX_040100.WWV_FLOW_ERROR", line 1008
ORA-06512: en "APEX_040100.WWV_FLOW_FND_USER_API", line 24
ORA-06512: en "APEX_040100.WWV_FLOW_FND_USER_API", line 617
ORA-06512: en "APEX_040100.HTMLDB_UTIL", linea 1395
ORA-06512: in linea 8
Thanks in advance and sorry for my English.
Published by: Andres Vilallave on 2012-ene-31 12:48
Published by: Andres Vilallave on 31-ene-2012 12:49Hello
When you run this code?
If you run this code in SQL client like SQL * Plus or SQL Developer this post might help
Re: installation of the runtime: how to create users?Kind regards
Jarihttp://dbswh.webhop.NET/dbswh/f?p=blog:Home:0
-
After having encountered an error, I followed a recommendationand delete my cache overview my catalog can't find photos. what should I do to get it back?
Hi moshek1955,
Greetings.
- If you only deleted the cache of the preview I doubt that there is a possibility of missing images.
- Please make sure you are in the right/most recent catalog.
- However if please check below link and follow the instructions.
Adobe Photoshop Lightroom Help | Locate missing photos
Concerning
Rohit
-
I can't clear the permission and get the following error message:
Cannot clear permission. Please try again after some time.
I want to be able to allow so I can transfer files to my torchlight Nook more
Macintosh:
- exit the Adobe Digital Editions software.
- Navigate to / Users / / Library/Application Support/Adobe/Digital Editions and drag the activation.dat file to the trash.
If you use 10.7, see library access hidden files. Mac OS 10.7 and later. - Open Adobe Digital Editions and reauthorize.
Windows:
- Close all applications.
- Click Start > run.
- Open, type regedit in the text box and press ENTER. The Registry Editor opens.
- In the left pane of the registry editor, locate the following registry key: HKEY_CURRENT_USER\Software\Adobe\Adept
- Select the key of the follower.
- Choose file > export.
- In the export registry file dialog box, select the branch selected under export range. Enter a name and location for the backup registry key, and then click Save.
- Right click on the key to the follower, and then choose Remove.
- In the dialog box confirm the key deletion, click OK.
- Close the registry editor.
- Open Adobe Digital Editions and reauthorize.
-
DeskJet 930c: avoid the aliignment page after each page
Hello, since I changed the black ink cartridge the printer prints an alignment with full black rectangles header page after each page I need to print. Is there a way to stop this behavior unconditionally
Hi @guy_c,
Welcome to the Forums of HP Support! I read your post and see that the alignment is printing after each page, after changing the cartridge. I will do my best to help you with this problem. If this helps you to find a solution, please click on the button "Accept as Solution" down below in this message. If you want to say thanks for my effort to help, click on the 'Thumbs Up' to give me a Kudos.
This problem occurs for one or two reasons, a problem of power, recharged cartridges or dirty contacts.
I would like to do a hard reset to see if that will solve the problem.
Let the printer and disconnect the printer cable and the wall socket for 60 seconds.
Reconnect the power cable to the output of the printer and the wall, and not a surge protector.
This ensures that the printer is full on and can help this situation.Reinstall the cartridges.
I have provided a document for the cleaning of the cartridge and printer contacts, to see if that can help in this situation. Supplies HP inkjet - printing cartridge errors.
You use genuine HP cartridges?
If the problem persists, please Contact the HP Support for help. Check the model number and the form to receive a file number for faster assistance.
Please let me know the results. Thank you.
-
Redirect to a different page after the delete operation in the shape of APEX
Hello guys,.
I have a problem with the redirection to another page after a deletion of form data. Here's the scenario. I have a parent page and a model page to change the contents of the data source. Delete the operation works quite well. but once it deletes and it is up to the parent page. I want that redirect to a completely different page. Is there a way that can be used here? I tested the process of branching, it redirects the page, however, it does not remove the record from the table in this case.
I tested the process of branching, it redirects the page, however, it does not remove the record from the table in this case.
It should work. Check the properties of the branch. 'Point' should be after treatment when you press the button Delete:
I forgot to say about it:
> but once it deletes it and it is up to the parent page
Remove the dynamic action of dialog closed, or make it conditionally.
-
Alternative page for ' after deleting, go to:
Hello!
Got a dynamic list of PHP page that lists the records from two tables in the MySql database, the tables got a column named "gk", which makes them different from each other. In a single table gk is allways 'ÖGK' and in the other table gk allways "PGA".
Now, there are a number of buttons that links to insert, update, and delete pages in the list page. These pages are duplicated for each of the two tables, for example, there is a record page to delete a record in the table with OGK in the column of gk (delete_user.php) and another delete a registration page in the table with the PGA in the column of gk (delete_user_pga.php). In fact there are two pages of lilies at, a list_users.php mentioned above, this is the page from the main list with the problem. And a list_users_pga.php that lists only the records from the table on the PGA TOUR, no problem here.
I got this job up to now that I get to the right page to delete record (the one that removes the table corect OGK or PGA), and the record will be deleted whith this home grown code:
input name = "Button2" type = "button" class = "miniknapp" onclick = "MM_goToURL ('parent',' <?)" PHP if ($row_listUsers ['gk'] == "ÖGK") {echo "delete_user.php" ;} elseif ($row_listUsers ['gk'] == 'PGA') {echo 'delete_user_pga.php' ;} else {echo ' ' ;}?}}} >? ID = <? PHP echo $row_listUsers ['id'];? (> '); return document. MM_returnValue' value = 'delete '.
There is no problem if I list the page main going to a page, the deletion or update a record in the table OGK couse he follows the link "after deletion, go to" who is specified in the record dialoge to remove. No problem if I go to a page deletion or update of the 'list only PGA records' for the same reason.
But if I'm deleting a record from the table of the PGA it erase the file correctly but the redirect to the page of list of PGA. as it is supposed to do if you got to the list_users_pga.php page. BUT if you got there from the list main page list_users.php I want to be redirected to this page where I came from. Takes it place the problem even if I have to cancel the delete (cancel script of the book of David Powers 'The Essential Guide to Dreamweaver CS4... Hello David)
Well, tried it with a lot of pudding House armed code without success:
<? PHP
If ($row_getUsers ['gk'] == 'ÖGK') {/ / show if gk = ÖGK}
? >
<? PHPIf (array_key_exists ('Cancel', $_POST)) {}
Header ('Location: http://teeview.se/analys_kund/list_users.php');
"exit";
}
If ((isset($_POST['id'])) & & ($_POST ['id']! = "")) {}
$deleteSQL = sprintf ("DELETE from analys_kund_pga WHERE id = %s",
GetSQLValueString ($_POST ['id'], "int"));@mysql_select_db ($database_connect, $connect);
$Result1 = mysql_query ($deleteSQL, $connect) or die (mysql_error ());$deleteGoTo = "list_users.php";
If (isset {}
$deleteGoTo. = (strpos ($deleteGoTo, '?'))? « & » : « ? » ;
$deleteGoTo. = $_SERVER ['QUERY_STRING'];
}
header (sprintf ("location: %s", $deleteGoTo));
}
? >
<? PHP} / / end of show if gk = OGK? >
<? PHPIf ($row_getUsers ["gk"] == "PGA") {/ / show if gk = PGA}
? >
<? PHPIf (array_key_exists ('Cancel', $_POST)) {}
Header ('Location: http://teeview.se/analys_kund/list_users_pga.php');
"exit";
}
If ((isset($_POST['id'])) & & ($_POST ['id']! = "")) {}
$deleteSQL = sprintf ("DELETE from analys_kund_pga WHERE id = %s",
GetSQLValueString ($_POST ['id'], "int"));@mysql_select_db ($database_connect, $connect);
$Result1 = mysql_query ($deleteSQL, $connect) or die (mysql_error ());$deleteGoTo = "list_users_pga.php";
If (isset {}
$deleteGoTo. = (strpos ($deleteGoTo, '?'))? « & » : « ? » ;
$deleteGoTo. = $_SERVER ['QUERY_STRING'];
}
header (sprintf ("location: %s", $deleteGoTo));
}
? >
<? PHP} / / end of show if gk = PGA? >Of course, the same will of scenario happens I register and uppdate pages, but the solution will be also the same I guess
Too many question marks, maybe?
Yes, you can have only one point mark in a URL. He created what is called the query string, which must contain all the variables. Separate the variables with an ampersand:
delete_user_pga.php?id=21&returnPage=list_users
Maybe you are looking for
-
random freezes for hp Pavilion 15 n042sl
Hi, as the topic I have a laptop hp Pavilion 15 n042sl with Win 8.1 bought in may 2014. My laptop freeze randomly in a different situation without any nails, start a game or just also in windows folders and only solution is to reboot the entire syste
-
I have many passwords for multiple files on my internet. I would like to implement a document or other thing so that I could store all these passwords in one place so that they are available when needed. Needless to say that this document must be a
-
focus - automatic merging in CR2 battery
Hello everyoneAnyone knows if its possible to melt the focus (focus stacking) directly from the images of CR2, or is it always necessary to save the images in jpg or tif and then make the "photomerge" and the "auto-merge layers'. .Photoshop CC / brid
-
SSO e OpenLDAP ADC Autenticazione
Buongiorno,Ho tried an information search in sia giro delle coesistenza sulla due type di autenticazione sia sulla configurazione della prima, perche quando provo a configurarla mi riporta error LDAP: error code 34 - invalid DN my non riesco a find n
-
Hi guys!I created a Web site vertical slide you can see here...When you click a navigation button, when it takes you to the relevant slide, the active State should move the Home button to the relevant slide. It works fine without the 3 links on the e