Sunday 21 July 2013

How to generate logs for tracing OAF page errors


Whenever an OAF page throws an error it is very difficult to get to the bottom of the error as the messages are quite cryptic and doesn’t clearly mention the root cause of the error. The following steps will show you how to get a trace of the OAF page error so that the issue can be analyzed.

Step 1: Change the profile option values
Login to Oracle
Responsibility: System Administrator
Navigation: Profile > System
Change the values of the following Profile Options:
  • FND: Debug Log Enabled = Yes
  • FND: Debug Log Filename for Middle-Tier = NULL
  • FND: Debug Log Level = Statement
  • FND: Debug Log Module = icx% (Set as per the module name)
Save the changes on the profile option values.

Step 2: Remove the old logs on FND_LOG_MESSAGES table
Log in to APPS schema on the database. Delete all records from the table FND_LOG_MESSAGES.
1
truncate table APPLSYS.FND_LOG_MESSAGES

Step 3: Bounce Apache
Bounce Apache/Web server. You can check this article to do so.
When you log in to Oracle you will see the following message on the home page,

Step 4: Reproduce the error
Now reproduce the error on the OAF page by following the exact steps.

Step 5: Query the error log in FND_LOG_MESSAGES table
After the error has been reproduced query the table FND_LOG_MESSAGES.
1
select * from APPLSYS.FND_LOG_MESSAGES

Now the error messages can be seen in the table and the error can be diagnosed.

How to generate logs for tracing OAF page errors

Whenever an OAF page throws an error it is very difficult to get to the bottom of the error as the messages are quite cryptic and doesn’t clearly mention the root cause of the error. The following steps will show you how to get a trace of the OAF page error so that the issue can be analyzed.

Step 1: Change the profile option values
Login to Oracle
Responsibility: System Administrator
Navigation: Profile > System
Change the values of the following Profile Options:
  • FND: Debug Log Enabled = Yes
  • FND: Debug Log Filename for Middle-Tier = NULL
  • FND: Debug Log Level = Statement
  • FND: Debug Log Module = icx% (Set as per the module name)
Save the changes on the profile option values.

Step 2: Remove the old logs on FND_LOG_MESSAGES table
Log in to APPS schema on the database. Delete all records from the table FND_LOG_MESSAGES.
1
truncate table APPLSYS.FND_LOG_MESSAGES

Step 3: Bounce Apache
Bounce Apache/Web server. You can check this article to do so.
When you log in to Oracle you will see the following message on the home page,

Step 4: Reproduce the error
Now reproduce the error on the OAF page by following the exact steps.

Step 5: Query the error log in FND_LOG_MESSAGES table
After the error has been reproduced query the table FND_LOG_MESSAGES.
1
select * from APPLSYS.FND_LOG_MESSAGES

Now the error messages can be seen in the table and the error can be diagnosed.

1 comment:

  1. Jumbo Casino Tickets | Harrah's Kansas City Hotel & Casino
    Buy tickets for 경기도 출장안마 upcoming events at Jumbo Casino - Harrah's Kansas 안양 출장안마 City Hotel & Casino in Kansas City.Jan 13, 2022The Pink Floyd Laser TagMar 16, 2022The Marshall 동해 출장마사지 Tucker BandMay 22, 2022The Marshall Tucker BandMay 18, 창원 출장안마 2022The 정읍 출장안마 Marshall Tucker Band

    ReplyDelete