G Diagnosing APEX Application Errors
This appendix covers HTTP 404 Not Found on the first run of an application or page, and evidence collection for HTTP 400 Bad Request. Use the section matching the error you see.
HTTP 404 Not Found on the First Run
When you first click Run Application or Run Page (the play button), the browser may display HTTP 404 Not Found. One possible cause is an application authentication scheme that has not been configured for the RDS environment.
Check the Application Authentication Scheme
- In App Builder, select the affected application. Open Shared Components - Security - Authentication Schemes and identify the scheme marked Current.
- For an application using the standard RDS HTTP Header authentication configuration, select or create a scheme with Scheme Type set to HTTP Header Variable. The Name can be HTTP Header Authentication.
- If needed, click Create and select Based on
a pre-configured scheme from the gallery. In the APEX 26 Create/Edit form, use these
reference settings:
- HTTP Header Variable Name blank;
- Action if Username is Empty set to Redirect to Built-In URL;
- Verify Username set to Each Request;
- Logout URL of SSO Server blank.
- Save the scheme using Create Authentication Scheme or Apply Changes, as appropriate. Open the saved scheme and click Make Current Scheme if it is not already current. Confirm its Current status on the Authentication Schemes page; creating or editing a scheme alone does not establish that it is active.
- Run the application or page again. If the 404 persists, retain the failing URL, screenshot, application and page IDs, current scheme details and capture time/timezone for the application owner or Support. A 404 alone does not establish the cause.
Workspace and Application Authentication
RDS workspace access uses OCI IAM integration and HTTP Header Variable authentication. The Workspace Administrator configures authentication separately for application end users. Signing in to the workspace does not select the application authentication scheme. See APEX User Management in Chapter 4, Getting Started.
Oracle APEX App Builder User's Guide, HTTP Header Variable: Oracle APEX HTTP Header Variable configuration
Oracle APEX App Builder User's Guide, Changing the Authentication Scheme Associated with an Application: Oracle APEX Changing the application authentication scheme
An Action Returns HTTP 400 Bad Request
An action in your APEX application returns HTTP 400 Bad Request instead of opening the expected page or dialog. Record the screen, selected item and action that produced the error, together with what you expected to happen.
Use the browser Network panel to capture the failed request, response headers and error details. If an APEX debug identifier is available, use it to locate existing APEX messages. This section covers evidence collection for HTTP 400 Bad Request.
Use the application, page and workspace details for your RDS environment. Browser collection is available without database access. Developer and database steps require the corresponding access. A HAR file exports the browser network trace for later investigation.
Before Collecting the Evidence
- Record the application name and release, affected environment, browser version and operating system. Confirm whether the affected environment is Production, Stage, Test or Development.
- Write down the steps leading to the error and any input or selected record. Record the date, time and timezone of the capture. Take a screenshot of the error, including any request ID and timestamp.
- Keep the current browser session and cache settings unchanged for the first capture. Open the browser tools before repeating the action. Reproduce with suitable test data. If the failing action opens a dialog, opening it is sufficient; there is no need to save changes to capture that failure.
- Follow the section for your browser. The Network panel records HTTP requests and responses; it is separate from the JavaScript Console. Menu labels can vary by browser version.
Safari on macOS
- Record the version from Safari - About Safari. If Develop is unavailable, use Safari - Settings - Advanced and enable Show features for web developers. Older versions may say Show Develop menu in menu bar.
- Open Web Inspector with Option+Command+I, then select Network. Enable Preserve Log, choose All resource types and clear the URL filter.
- Right-click the request-table headings and show Name, Domain, Type, Method and Status. Keep timing information visible where available.
- Clear the request list, then repeat the affected action once with Web Inspector open. Capture the unfiltered request list and the displayed error.
- Select the request returning HTTP 400 Bad Request. Capture Headers, including Response Headers, and Preview. Include redirects if shown. Look for apex-debug-id under Find the APEX debug identifier.
- Use Network - Export to save a HAR file. Review the capture before sharing it through the approved support channel.
Chrome on macOS Windows or Linux
- Open chrome://version in another tab and record the full version and operating system, then return to the application.
- Open Developer Tools with Option+Command+I on macOS or Ctrl+Shift+I on Windows/Linux. Select Network and confirm recording is active.
- Enable Preserve log. Select All and clear the filter box. Leave cache and throttling settings unchanged.
- Right-click the request-table headings and show Name, Status, Method, Domain, Type and Initiator. Keep the timing or waterfall columns visible where available.
- Click Clear network log, then repeat the affected action once. Capture the unfiltered request list and the displayed error. Keep document requests visible; a Fetch/XHR-only filter can hide a failing page or dialog request.
- Select the request returning HTTP 400 Bad Request. Capture Headers, including Response Headers, and Response or Preview. Retain any preceding redirects. Look for apex-debug-id under Find the APEX debug identifier.
- Use Export HAR (sanitized), or right-click the request list and choose Copy - Save all [listed] as HAR (sanitized), where available. Keep All selected and filters empty. Review the file before sharing.
Firefox on macOS Windows or Linux
- Open about:support in another tab and record Version and OS under Application Basics, then return to the application.
- Open Network Monitor with Option+Command+E on macOS or Ctrl+Shift+E on Windows/Linux.
- Open the Network toolbar actions menu and enable Persist Logs. Confirm recording is not paused. Select All request types and clear the URL filter; leave cache and throttling settings unchanged.
- Right-click the request-table headings and show Status, Method, Domain, File and Type. File is the request-name column. Keep timing information visible where available.
- Clear the request list, then repeat the affected action once. Capture the unfiltered request list and the displayed error, keeping both document and AJAX requests visible.
- Select the request returning HTTP 400 Bad Request. Capture Headers, including Response Headers, and Response. Retain any redirects. Look for apex-debug-id under Find the APEX debug identifier.
- Use the Network actions menu - Save All as HAR. Review the exported file before sharing it through the approved support channel.
Find the APEX Debug Identifier
- In the request returning HTTP 400 Bad Request, open Headers - Response Headers and look for apex-debug-id. Header names are not case-sensitive.
- Copy the complete header value. Use the value from this capture, together with the Request ID and Request Timestamp shown on the error page, if present.
- If the header is absent, record “apex-debug-id header not present.” Keep the network capture and continue with the missing-identifier steps below.
Collect existing APEX Messages if you have Access
In the affected application’s APEX workspace, open SQL Workshop - SQL Commands to run the queries below. Alternatively, use an approved database connection to the affected environment with the appropriate APEX workspace context. Database login access alone does not guarantee access to these records; APEX_DEBUG_MESSAGES is workspace-scoped. Record access errors or empty results and confirm the connection and workspace before drawing conclusions. These queries read existing records and do not enable debugging.
Extract the numeric identifier from the new header value, excluding any suffix such as level=ERROR. Replace <DEBUG_ID> below with that number before running the query. Do not substitute the application session ID.
select *
from apex_debug_messages
where page_view_id = <DEBUG_ID>
order by message_timestamp;Export all matching rows as CSV with column headings and complete MESSAGE and CALL_STACK values. Avoid screenshots as the only copy of long messages. Read MESSAGE and CALL_STACK around the first relevant error to identify the failing page component, process or database operation. If you already have App Builder access, Application - Utilities - Debug Messages is an alternative; select the matching View Identifier.
If the Debug Identifier is missing
Keep the error screenshot, full request list, HAR, request ID and exact time/timezone. Capture any Console errors visible at the time, without pasting or running commands. Report “No Console errors visible” if none appear.
If you have approved access to existing APEX activity records, use the query below. Replace <APPLICATION_ID> and <PAGE_ID> with your application ID and the page involved in the failure. For a dialog failure, include the dialog page when locating the matching record.
select *
from apex_workspace_activity_log
where application_id = <APPLICATION_ID>
and page_id = <PAGE_ID>
order by view_timestamp desc;Find the entry matching the capture time and affected user. If DEBUG_PAGE_VIEW_ID is populated, use it in the debug-message query above. If it is empty, no matching entry exists, or access is unavailable, record that result. Correlate the browser evidence and available server records using the request ID and timestamp.
An empty result does not establish that APEX was uninvolved. Confirm the environment, workspace and captured identifier. Existing records may be unavailable or purged; these queries cannot recover them. Provide the available evidence to the application owner or Support.
Prepare the Evidence for further Investigation
Provide one capture for the HTTP 400 Bad Request occurrence, with the files, identifiers and any existing APEX records kept together. State which items you could not collect and why. Include the affected page, action and selected record, and any known scope. Use the same material for an application defect record or a request to the application owner or Support.
- Error screenshot and exact steps to reproduce, including the page, inputs and selected record.
- Application name and ID, page ID, release, environment, browser version, operating system, affected user reference and capture date/time/timezone.
- Unfiltered Network request-list screenshot, failed-request Headers and Response/Preview, and a HAR covering the action and error.
- Complete apex-debug-id if present, request/correlation ID and error timestamp. Include the APEX CSV or activity records if collected, with column headings and full messages.
- Any related Console errors, known affected users/items and existing working comparison. Include access/query errors, empty results and any evidence omitted from the export.
Before sharing, review screenshots, HAR files and database output for passwords, authorization values, cookies, tokens, session IDs and sensitive customer data. Chrome’s sanitized HAR option omits some sensitive headers, but URLs, request bodies and response content still need review. Use the approved support upload channel. If policy prevents sharing a HAR, provide the screenshots and response details and explain the limitation.
Summary to include with your Attachments
Application name ID page and release: ______________________________
Environment and Production or nonproduction: ______________________________
Browser version and operating system: ______________________________
Screen and action that failed: ______________________________
Input or selected record if relevant: ______________________________
Date time and timezone of captured error: ______________________________
Expected behavior and HTTP 400 Bad Request details: ______________________________
Request ID and time if present: ______________________________
apex-debug-id or header not present: ______________________________
Consistent or intermittent and known scope: ______________________________
Attachments and unavailable items: ______________________________
Reference Documentation
Safari Web Inspector and Network capture
Chrome DevTools Network features
Firefox Network Monitor toolbar and HAR export
Oracle APEX App Builder User's Guide, Viewing Debug Messages: Oracle APEX Viewing Debug Messages