oracle apex Error handling function not working properly - oracle

I am trying to use the oracle's apex_error package to implement error handling in my app.
test app: https://apex.oracle.com/pls/apex/f?p=145329:2:11482099171656::NO:::
table created: constraint_lookup
function provided by oracle "apex_error_handling_example". https://docs.oracle.com/database/apex-18.1/AEAPI/Example-of-an-Error-Handling-Function.htm#AEAPI2216
The solution works fine except when you click on the error it gives error in console instead of taking you to the tab of the IR report.
Now click on the message so it should take you to the duplicate DeptID, but it just gives you error in the console.
I have tried to handle this at page level, application level also I tried to set the column_alias manually so I don't have to use the APEX_ERROR.AUTO_SET_ASSOCIATED_ITEM but all in vain.
Any help and your time will be much appreciated.

Related

GraphQL Elixir/Phoenix API: Socket hang up with large json response

New to Elixir/Phoenix and GraphQL. I have created a simple API that retrieves "drawings" from a PostgreSQL database. The table consists of an "id" (uuid) and "drawing_json" (text). In the table is one row with a json string of about 77Kb. My schema and queries are defined using Absinthe. I have 1 query called "all_drawings" which resolves and reaches out to the Repo and pulls in all drawings. When using postman to call this API, the following query works fine:
{
allDrawings
{
id
}
}
However, when I try to return the json field as well the postman request times out and I get a "socket hang up" error.
Looking at the Debug Console in Visual Studio Code, I can see the query gets the data from the db just fine and almost immediately. Something seems to be happening though in returning it to the client that I can't detect. No errors are thrown. Any ideas? Not sure what information will help but happy to provide more.
A colleague helped me find the fix. Not sure why this is (maybe someone can elaborate), but the issue was with trying to run it in Visual Studio Code. Previously, I set up the run task in launch.json and would click the run button to start debugging my application. This would cause the aforementioned crash every time. When I went to the terminal and ran the "mix phx.server" command, everything worked fine. Not sure if the hang up is with Visual Studio Code or the ElixirLS extension when using the IDE to debug. But starting the application through the command line allowed me to use postman to hit the api and retrieve the data just fine. I'm very new to the Elixir/Phoenix world so I'm unable to draw a more intelligent conclusion as to why this happens.

why Oracle Apex stops working with Google captcha after migration from 4 to 19?

After migrating Oracle Apex from 4 to 19, google's catptcha service stopped working. When I try to log in, it gives the message ERR-1002 The item ID "g-recaptcha-response" could not be found. The validation with google seems to be ok, but Apex is not managing to handle the return.
I researched a lot but found only one topic on the subject, but there is no answer.
Does anyone have any idea what it might be?
Thank you!
We have the same error on APEX 19.2 and 20.1. It seems like APEX thinks the invisible g-recaptcha-response div added by the Google reCAPTCHA callback function is a page or application item.
We reached this conclusion because the debug log says "Unexpected error, unable to find item name at application or page level,” which is an error raised by "WWV_FLOW_META_DATA.FIND_ITEM_BY_NAME" from "WWV_FLOW.PARSE_PAGE_ITEMS_JSON_OBJECT."
This shows that g-recaptcha-response is being incorrectly passed as an application/page item on page submission and the internal APEX processing fails because it cannot find the item’s id.
We worked around this error by removing the g-recaptcha-response div before submitting the page. We concluded it was safe to do so after validating the client response against the Google API.
Try adding a true action to Execute JavaScript Code with $( "#g-recaptcha-response" ).remove(); before submitting your page. That should eliminate the error.

Oracle Forms Global Exit in JNLP

I've the following problem:
I have an Oracle forms Application where the User can call multiple Forms.
I also have an Menu with an Logout button, that should close all open Forms.
When this button is pressed I set :GLOBAL.LOGOFF to 'TRUE'. And in WHEN_WINDOW_ACTIVATED I have placed the following code.
DEFAULT_VALUE('FALSE','GLOBAL.LOGOFF');
IF (:GLOBAL.LOGOFF = 'TRUE') THEN
COMMIT;
DO_KEY('EXIT_FORM');
END IF;
This whole thing also works when the Oracle Forms Application is called from a browser.
But when I call it via JNLP it crashes the application. I get the following errors:
FRM-40735: WHEN-FORM-NAVIGATE
FRM-40735: WHEN-NEW-ITEM-INSTANCE
FRM-40735: WHEN-WINDOW-DEACTIVATED
All with:
ORA-06508
I don't understand how the Forms Application is reacting differently depending on if it is executed via JNLP or from a Browser.
Although I question why you are doing logoff handling in a WHEN_WINDOW_ACTIVATED trigger, it is possible what you are seeing is related to a known issue. Refer to these Oracle bugs that all map together. You may need to work with Oracle Support as some of the bugs and/or their content may not be visible to you. 9764631, 22724515, 26996652
Also, if you are not already using 12.2.1.3, you will need to update your version in order to get the fix I mentioned.
Helpful resource:
https://community.oracle.com/community/development_tools/forms

BIRT Viewer randomly fails to open report

I'm running birt 3.7.2 using the Birt Web Viewer and have recently been encountering an error when opening my reports / changing the report parameters.
The error is as follows:
An error occurred while getting report parameters. The specified report: /$$$Transient/acfile20.rptdocument was not found. The report may have expired or may not have been generated.
It also throws a "Get page count failed." error message too. I'm sure it's related to the message above.
It's not happening on all of the different instances of BIRT that I'm using. I've checked what I think is the Transient folder and it is not generating these files, yet sometimes, if I refresh the report, it will run.
What might be causing this?
If you are using either a dynamic parameter or computed column, try disabling either. For example if there is a dynamic parameter make it static, if there is a computed column try removing it.

Connecting to Oracle with PowerQuery - UI not working but SQL works fine

I´m trying to connect to an Oracle database using PowerQuery. The connection works fine when I specify my own SQL (even something like select * from table); however when I select any table using the UI, PowerQuery just keeps trying to query the data, but the information is never displayed. I don´t get any error message or anything.
I´m interested in using the UI, because it´s easier and to take advantage of query folding.
I appreciate your thoughts on how to get this working properly. Thanks!
Try turning off "Include relationship columns" (under advanced options, when creating the connection).
If that doesn't work, you can "Send a frown" to the product team.

Resources