Error : APP-FND-01926: The custom event WHEN-LOGON-CHANGED raised unhandled exception: ORA-06502: PL

In this Document

  _afrLoop=440418974213449&id=1508865.1&_afrWindowMode=0&_adf.ctrl-state=9tvmuxok_4#SYMPTOM">Symptoms
  Cause
  Solution

APPLIES TO:

Oracle Application Object Library - Version 11.5.9 to 12.1.3 [Release 11.5 to 12.1]
Oracle Applications Technology Stack - Version 11.5.9 to 12.1.3 [Release 11.5 to 12.1]
Information in this document applies to any platform.

SYMPTOMS

Problem Description:
-----------------------
When attempting to launch forms the following error occurs.

APP-FND-01926: The custom event WHEN-LOGON-CHANGED raised unhandled exception: ORA-06502: PL/SQL: numeric or value error

CAUSE

Site level profile option value for profile option: FND: Debug Log Level was incorrect. It was showing as ‘Unexpected‘ in database where as it should show the numeric value 6 instead of ‘Unexpected‘. Once we enable level 12 trace for database then this cause of error can be determined. Profile option value can be checked using below sql.

SQL> SELECT SUBSTR(e.profile_option_name,1,25) PROFILE,DECODE(a.level_id,10001,‘Site‘,10002,‘Application‘,10003,‘Resp‘,10004,‘User‘) L,DECODE(a.level_id,10001,‘Site‘,10002,c.application_short_name,10003,b.responsibility_name,10004,d.user_name) LValue,NVL(a.profile_option_value,‘Is Null‘) Value,SUBSTR(a.last_update_date,1,25) UPDATED_DATE
 2 FROM fnd_profile_option_values a, fnd_responsibility_tl b, fnd_application c,fnd_user d, fnd_profile_options e
 3 WHERE e.profile_option_name = ‘AFLOG_LEVEL‘
 4 AND e.profile_option_id = a.profile_option_id AND a.level_value = b.responsibility_id (+)
 5 AND a.level_value = c.application_id (+) AND a.level_value = d.user_id (+)
 6 ORDER BY profile_option_name;

PROFILE                   L               LVALUE               VALUE                              UPDATED_DATE 
------------------------- -----------     -------------        ------------------                 ---------------------------------
AFLOG_LEVEL               Site            Site                 Unexpected                         Mon DD YYYY HH:MM:SS

Profile option: FND: Debug Log Level should be set correctly. It should not null or should not be showing varchar value in database. It should show the numeric value and this is the reason of error "ORA-06502: PL/SQL: numeric or value error". Default value for this profile option is ‘Unexpected‘ but when it saved in database then it will be save in numeric value which corresponds to 6.

The main cause of the reported error is corrupt or invalid CUSTOM.pll. First we should be making sure that CUSTOM.pll used is able to generate CUSTOM.plx successfully.

For 11i use the below command to generate the CUSTOM.plx from CUSTOM.pll :

f60gen \
module=$AU_TOP/resource/CUSTOM.pll \
userid=APPS/xxx \
output_file=$AU_TOP/resource/CUSTOM.plx \
module_type=library batch=yes compile_all=special

and For R12.0.x and R12.1.x use the below command :

frmcmp_batch \
module=$AU_TOP/resource/CUSTOM.pll \
userid=APPS/xxx \
output_file=$AU_TOP/resource/CUSTOM.plx \
module_type=library batch=yes compile_all=special

If there is any error during generation of CUSTOM.plx then it should be rectified first before checking the profile option value explained above. CUSTOM.pll should be correct one and should able to generate CUSTOM.plx as it is being read during launching of forms. If there will be any uncompiled packages written inside CUSTOM.pll then it will not read correctly during forms launch and will end in error.

SOLUTION

1. Update the profile option value of profile option: FND: Debug Log Level from Unexpected to 6 using below SQL commands.

Connect to SQLPLUS as APPS User :

SQL> create table fnd_profile_option_values_bkup as select * from fnd_profile_option_values;

SQL> select profile_option_id from fnd_profile_options where profile_option_name=‘AFLOG_LEVEL‘;

Take the Profile Option ID.

SQL> select * from fnd_profile_option_values where profile_option_id=3099;

SQL> update fnd_profile_option_values set PROFILE_OPTION_VALUE=‘6‘ where profile_option_id=3099 and level_id=10001;

SQL> commit;

SQL> SELECT SUBSTR(e.profile_option_name,1,25) PROFILE,DECODE(a.level_id,10001,‘Site‘,10002,‘Application‘,10003,‘Resp‘,10004,‘User‘) L,DECODE(a.level_id,10001,‘Site‘,10002,c.application_short_name,10003,b.responsibility_name,10004,d.user_name) LValue,NVL(a.profile_option_value,‘Is Null‘) Value,SUBSTR(a.last_update_date,1,25) UPDATED_DATE
FROM fnd_profile_option_values a, fnd_responsibility_tl b, fnd_application c,fnd_user d, fnd_profile_options e
WHERE e.profile_option_name = ‘AFLOG_LEVEL‘
AND e.profile_option_id = a.profile_option_id AND a.level_value = b.responsibility_id (+)
AND a.level_value = c.application_id (+) AND a.level_value = d.user_id (+)
ORDER BY profile_option_name;

It should show now the correct profile option value as 6.

2. Stop all appsTier services.

3. ‘Regenerate Form Files‘ using adadmin utility. It should be successful.

4. Start all appsTier services.

5. Retest the issue.

版权声明:本文博客原创文章。博客,未经同意,不得转载。

时间: 2024-07-30 06:36:56

Error : APP-FND-01926: The custom event WHEN-LOGON-CHANGED raised unhandled exception: ORA-06502: PL的相关文章

Quartz:ERROR threw an unhandled Exception

详细的错误信息如下: 1 2016-06-28 17:18:13.366 [DefaultQuartzScheduler_Worker-1] ERROR org.quartz.core.JobRunShell:211 - Job group1.job1 threw an unhandled Exception: 2 java.lang.NullPointerException 3 at com.starunion.java.service.timer.JobEndConference.execu

Javascript 自定义事件 (custom event)

Javascript 中经常会用到自定义事件.如何创建一个简单的自定义事件呢?在创建自定义的事件之前,我们应该考虑一下和事件有关的东西.例如 click 事件,首先我们要能注册一个click事件(在一个button上绑定click事件),然后要能够触发这个事件,最后事件不需要的时候要能够移除事件. 我们可以借助JQuery 的方法来实现自定义事件,请看下面的例子: <div id="myDiv">myDiv</div> <script type="

插入图片后R文件变红,报错“Error::app:mergeDebugResources&#39;. &gt; Some file crunching failed, see logs for detail”

本想做一个有爱的小东西,插入图片后发现原本之前运行成功的程序, 出现了报错“:app:mergeDebugResources'. > Some file crunching failed, see logs for detail” 一脸懵逼~~~这是什么鬼,在别人的回答和博客里找找解决办法. 不过对我好像不管用,找了好久才发现是图片的问题. 之前只是简单的在重命名的时候把图片改成“xx.png”,放在了app/src/main/res/drawable文件夹里(ps:目前每次我都是在复制图片再粘

Jni Error(app bug): accessed stale local reference 的另类出现方式

Jni Error(app bug): accessed stale local reference 这个错误平常是 弱全局变量引起的时候 出现的一个错误,但是今天我却在另外一种情况下遇到了 下面是错误截图 出现错误的原因其他很简单 是因为自己的粗心引起的 java层函数声明是这么写的 public native String screenshot(int x,int y,int x1,int y1,byte[] path); jni是这么写的 void Java_java_api_JniUti

AndroidStudio编译error:app:validateReleaseSigning&#39;Keystore file not found for signing config &#39;release

使用AndroidStudio编译时提示error: Error:Execution failed for task ':app:validateReleaseSigning'. > Keystore file not found for signing config 'release'. 从字面意思可以看出是要打发布包缺少keystore签名文件,只需要把build.gradle里的一段代码注释掉即可,当然别忘了打发布包时取消注释. signingConfigs { release { sto

Hadoop Eclipse远程连接出现:Error:Call to /10.10.10.10:9000 failed on local exception: java.io.EOFException

异常截图: 原因很简单,Hadoop对应的eclipse插件jar包版本不对,更换至响应版本即可. Hadoop Eclipse远程连接出现:Error:Call to /10.10.10.10:9000 failed on local exception: java.io.EOFException,布布扣,bubuko.com

Spring Boot报错Error creating bean with name &#39;userRepository&#39;: Invocation of init method failed; nested exception

问题:出现UserRePository注入创建失败,一定先检查所有的@注解是否已经标记 问题发现:entity下的实体类上面没有加注解  任何基于hibernate的实体类一定要加上@Entity注解! Spring Boot报错Error creating bean with name 'userRepository': Invocation of init method failed; nested exception 原文地址:https://www.cnblogs.com/my-prog

C# 如何添加自定义键盘处理事件 如何配置app.config ? | csharp key press event tutorial and app.config

本文首发于个人博客https://kezunlin.me/post/9f24ebb5/,欢迎阅读最新内容! csharp key press event tutorial and app.config Guide MainForm protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { //System.Console.WriteLine("ProcessCmdKey " + cur_image_id

JNI ERROR (app bug): accessed stale local reference 0xbc00021

在android ndk编程时,要使用到.so文件,so文件使用c语言编写的.当我在c文件中调用java类时,第一次调用时没问题的,但第二次调用的时候就失败了.上网搜了很多资料,大概原因是在jni中,使用指针指向某一个java对象的时候,由于android的垃圾回收机制(Garbage Collector),如果java对象被回收的话,那么指针指向的对象就会为空或者不存在,从而提示JNI ERROR:accessed stale(陈旧的,落后的) local reference 大概的意思就是变