Oracle APEX表单创建报错求助:ORA-20001与ORA-00001错误
Hey there, let's work through this error you're stuck on — it's a common one, and we can fix it quickly. First, let's break down what the error is telling us:
ORA-20001: Unable to create query and update page. ORA-20001: Error creating page name="employees Report" id="3" ORA-00001: unique constraint (APEX_200200.WWV_FLOW_STEPS_PK) violated
The root issue here is the ORA-00001 error: the page ID you're trying to use (3) is already taken by another page in your APEX application. The WWV_FLOW_STEPS_PK constraint is a built-in rule that ensures every page in an app has a unique ID, so duplicates aren't allowed.
Here's how to resolve this step by step:
Check for existing pages with ID 3:
Open your app in APEX's App Builder, then click the Pages option in the left sidebar. Scan the list — you'll almost certainly find a page already using ID3. That's the source of the conflict.Use an unused page ID for your form:
When you reach the final step of creating the form page, look for the "Page ID" field. Instead of manually entering3, do one of these:- Pick a number that's not in the existing page list (like
4,5, or any other unused number), or - Check the Auto Assign option (this is the safer default — APEX will automatically pick an unused ID for you, no manual guesswork needed).
- Pick a number that's not in the existing page list (like
Clean up residual page records (if needed):
Sometimes, if a previous page creation failed mid-process, there might be a hidden residual entry for page ID3even if it doesn't show up in the Pages list. Try these quick fixes:- Refresh the Pages list page to load the latest data.
- Log out of APEX and log back in to reset your session, then check the Pages list again.
- If you do find the rogue page ID
3, delete it first, then retry creating your form page.
A quick pro tip: Unless you have a specific requirement to manually set a page ID, always let APEX auto-assign them. This avoids these kinds of unique constraint conflicts entirely.
内容的提问来源于stack exchange,提问作者user14728434

