Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to show a custom error message from the PUT REST API, for a Page Process

ajmlrMay 12 2025 — edited May 12 2025

In APEX 24.1.5, I am calling a PUT REST API for a Page Process, and am having trouble displaying the returned error text.
e.g. in the attached screenshots:

The Page Process uses "Invoke API" (1) of a REST Source (2), which returns an OUT parameter "errmsg" (4), which it stores in page item P431_ERRMSG. (5)

The Error Message for the Page Process is configured to be &P431_ERRMSG.In testing, when the REST API returns an error (status_code=400, errmsg='some error text"), the apex page doesnt display the expected error, but rather it shows this error:

**1 error has occurred** undefined

I believe this is because P431_ERRMSG is not in the session state.

*** What is the proper way to return and show a custom errormessage from the PUT REST API for a Page Process?

This post has been answered by InoL on May 13 2025
Jump to Answer
Comments
Post Details
Added on May 12 2025
7 comments
5,921 views