{"id":11657,"date":"2014-09-18T08:08:32","date_gmt":"2014-09-18T08:08:32","guid":{"rendered":"http:\/\/erpschools.com\/?p=11657"},"modified":"2014-09-18T08:46:51","modified_gmt":"2014-09-18T08:46:51","slug":"how-to-debug-oaf-page-errors-or-how-to-generate-logs-for-tracing-oaf-page-errors","status":"publish","type":"post","link":"https:\/\/erpschools.com\/erps\/oracle-application-framework-articles\/how-to-debug-oaf-page-errors-or-how-to-generate-logs-for-tracing-oaf-page-errors","title":{"rendered":"How to Debug OAF page Errors (or) How to generate logs for tracing OAF page Errors"},"content":{"rendered":"<p>Steps to Debug OAF page Errors (or) How to generate logs for tracing OAF page Errors.<\/p>\n<p>Step:1<\/p>\n<p>You can see the log by using the below code in the Controller Syntax: pageContext.writeDiagnostics(Object,String,int);<\/p>\n<p>Example: pageContext.writeDiagnostics(this,&#8221;Enter into CO:=&#8221;+assnum,OAFwkConstants.STATEMENT);<\/p>\n<p>For bc4j objects(AM, View Object Impl ,Entity Object Impl)<\/p>\n<p>use the below code as Syntax: getOADBTransaction().writeDiagnostics(Object,String,int);<\/p>\n<p>Example: getOADBTransaction().writeDiagnostics(this,&#8221;customerid in AM =&#8221;+customerid,1);<\/p>\n<p>&nbsp;<\/p>\n<p>Step:2<\/p>\n<p>Set the profile Option Values Go to System Administrator responsibility and set the profile options to enable the log.<\/p>\n<p>Navigation : System Administrator-Profile-System Set FND: Debug Log Enabled to Yes<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/1.png\" alt=\"\" \/><\/p>\n<p>Save the Record. Set FND: Debug Log Level to Statement<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/2.png\" alt=\"\" \/><br \/>\nSave the Record. Bounce the Apache. When you login to EBS you can see Logging is enabled.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/4.png\" alt=\"\" \/><\/p>\n<p>Step:3<\/p>\n<p>Query FND_LOG_MESSAGES in the database for all the debugging messages.<\/p>\n<p>Select * from FND_LOG_MESSAGES<\/p>\n<p>Now the log messages can be seen in the table. You can also see the log on sreen by selecting the Diagonastic link on OAF Page Select Show Log on Screen Option.<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/5.png\" alt=\"\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Steps to Debug OAF page Errors (or) How to generate logs for tracing OAF page Errors. Step:1 You can see the log by using the below code in the Controller Syntax: pageContext.writeDiagnostics(Object,String,int); Example: pageContext.writeDiagnostics(this,&#8221;Enter into CO:=&#8221;+assnum,OAFwkConstants.STATEMENT); For bc4j objects(AM, View Object Impl ,Entity Object Impl) use the below code as Syntax: getOADBTransaction().writeDiagnostics(Object,String,int); Example: getOADBTransaction().writeDiagnostics(this,&#8221;customerid in [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[111],"tags":[340,341,342,343,532,45],"class_list":["post-11657","post","type-post","status-publish","format-standard","hentry","category-oracle-application-framework-articles","tag-debug","tag-error","tag-log","tag-messages","tag-oracle-application-framework-articles","tag-trace"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>oaf debug profile controller<\/title>\n<meta name=\"description\" content=\"oaf debug profile controller\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/erpschools.com\/erps\/oracle-application-framework-articles\/how-to-debug-oaf-page-errors-or-how-to-generate-logs-for-tracing-oaf-page-errors\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ganesh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/erpschools.com\/erps\/oracle-application-framework-articles\/how-to-debug-oaf-page-errors-or-how-to-generate-logs-for-tracing-oaf-page-errors#article\",\"isPartOf\":{\"@id\":\"https:\/\/erpschools.com\/erps\/oracle-application-framework-articles\/how-to-debug-oaf-page-errors-or-how-to-generate-logs-for-tracing-oaf-page-errors\"},\"author\":{\"name\":\"Ganesh\",\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/person\/14661fd5012531b326571be61b96f9f2\"},\"headline\":\"How to Debug OAF page Errors (or) How to generate logs for tracing OAF page Errors\",\"datePublished\":\"2014-09-18T08:08:32+00:00\",\"dateModified\":\"2014-09-18T08:46:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/erpschools.com\/erps\/oracle-application-framework-articles\/how-to-debug-oaf-page-errors-or-how-to-generate-logs-for-tracing-oaf-page-errors\"},\"wordCount\":201,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#organization\"},\"image\":{\"@id\":\"https:\/\/erpschools.com\/erps\/oracle-application-framework-articles\/how-to-debug-oaf-page-errors-or-how-to-generate-logs-for-tracing-oaf-page-errors#primaryimage\"},\"thumbnailUrl\":\"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/1.png\",\"keywords\":[\"Debug\",\"Error\",\"log\",\"messages\",\"OAF\",\"trace\"],\"articleSection\":[\"OAF\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/erpschools.com\/erps\/oracle-application-framework-articles\/how-to-debug-oaf-page-errors-or-how-to-generate-logs-for-tracing-oaf-page-errors#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/erpschools.com\/erps\/oracle-application-framework-articles\/how-to-debug-oaf-page-errors-or-how-to-generate-logs-for-tracing-oaf-page-errors\",\"url\":\"https:\/\/erpschools.com\/erps\/oracle-application-framework-articles\/how-to-debug-oaf-page-errors-or-how-to-generate-logs-for-tracing-oaf-page-errors\",\"name\":\"oaf debug profile controller\",\"isPartOf\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/erpschools.com\/erps\/oracle-application-framework-articles\/how-to-debug-oaf-page-errors-or-how-to-generate-logs-for-tracing-oaf-page-errors#primaryimage\"},\"image\":{\"@id\":\"https:\/\/erpschools.com\/erps\/oracle-application-framework-articles\/how-to-debug-oaf-page-errors-or-how-to-generate-logs-for-tracing-oaf-page-errors#primaryimage\"},\"thumbnailUrl\":\"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/1.png\",\"datePublished\":\"2014-09-18T08:08:32+00:00\",\"dateModified\":\"2014-09-18T08:46:51+00:00\",\"description\":\"oaf debug profile controller\",\"breadcrumb\":{\"@id\":\"https:\/\/erpschools.com\/erps\/oracle-application-framework-articles\/how-to-debug-oaf-page-errors-or-how-to-generate-logs-for-tracing-oaf-page-errors#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/erpschools.com\/erps\/oracle-application-framework-articles\/how-to-debug-oaf-page-errors-or-how-to-generate-logs-for-tracing-oaf-page-errors\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/erpschools.com\/erps\/oracle-application-framework-articles\/how-to-debug-oaf-page-errors-or-how-to-generate-logs-for-tracing-oaf-page-errors#primaryimage\",\"url\":\"https:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/1.png\",\"contentUrl\":\"https:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/1.png\",\"width\":614,\"height\":171,\"caption\":\"OAF_Debug_Msg-1\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/erpschools.com\/erps\/oracle-application-framework-articles\/how-to-debug-oaf-page-errors-or-how-to-generate-logs-for-tracing-oaf-page-errors#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/erpschools.com\/erps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Debug OAF page Errors (or) How to generate logs for tracing OAF page Errors\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/erpschools.com\/erps\/#website\",\"url\":\"https:\/\/erpschools.com\/erps\/\",\"name\":\"erpSchools\",\"description\":\"Oracle Apps\",\"publisher\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/erpschools.com\/erps\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/erpschools.com\/erps\/#organization\",\"name\":\"erpSchools\",\"url\":\"https:\/\/erpschools.com\/erps\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/erps_logo7.png\",\"contentUrl\":\"https:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/erps_logo7.png\",\"width\":250,\"height\":60,\"caption\":\"erpSchools\"},\"image\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"http:\/\/facebook.com\/erpschools\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/person\/14661fd5012531b326571be61b96f9f2\",\"name\":\"Ganesh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7d39bceb78ce873b40f466b4b9bb7fe766ad79c153a1d694d39263beb82bc70e?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/7d39bceb78ce873b40f466b4b9bb7fe766ad79c153a1d694d39263beb82bc70e?s=96&d=blank&r=g\",\"caption\":\"Ganesh\"},\"url\":\"https:\/\/erpschools.com\/erps\/author\/ganesh\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"oaf debug profile controller","description":"oaf debug profile controller","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/erpschools.com\/erps\/oracle-application-framework-articles\/how-to-debug-oaf-page-errors-or-how-to-generate-logs-for-tracing-oaf-page-errors","twitter_misc":{"Written by":"Ganesh","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/erpschools.com\/erps\/oracle-application-framework-articles\/how-to-debug-oaf-page-errors-or-how-to-generate-logs-for-tracing-oaf-page-errors#article","isPartOf":{"@id":"https:\/\/erpschools.com\/erps\/oracle-application-framework-articles\/how-to-debug-oaf-page-errors-or-how-to-generate-logs-for-tracing-oaf-page-errors"},"author":{"name":"Ganesh","@id":"https:\/\/erpschools.com\/erps\/#\/schema\/person\/14661fd5012531b326571be61b96f9f2"},"headline":"How to Debug OAF page Errors (or) How to generate logs for tracing OAF page Errors","datePublished":"2014-09-18T08:08:32+00:00","dateModified":"2014-09-18T08:46:51+00:00","mainEntityOfPage":{"@id":"https:\/\/erpschools.com\/erps\/oracle-application-framework-articles\/how-to-debug-oaf-page-errors-or-how-to-generate-logs-for-tracing-oaf-page-errors"},"wordCount":201,"commentCount":0,"publisher":{"@id":"https:\/\/erpschools.com\/erps\/#organization"},"image":{"@id":"https:\/\/erpschools.com\/erps\/oracle-application-framework-articles\/how-to-debug-oaf-page-errors-or-how-to-generate-logs-for-tracing-oaf-page-errors#primaryimage"},"thumbnailUrl":"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/1.png","keywords":["Debug","Error","log","messages","OAF","trace"],"articleSection":["OAF"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/erpschools.com\/erps\/oracle-application-framework-articles\/how-to-debug-oaf-page-errors-or-how-to-generate-logs-for-tracing-oaf-page-errors#respond"]}]},{"@type":"WebPage","@id":"https:\/\/erpschools.com\/erps\/oracle-application-framework-articles\/how-to-debug-oaf-page-errors-or-how-to-generate-logs-for-tracing-oaf-page-errors","url":"https:\/\/erpschools.com\/erps\/oracle-application-framework-articles\/how-to-debug-oaf-page-errors-or-how-to-generate-logs-for-tracing-oaf-page-errors","name":"oaf debug profile controller","isPartOf":{"@id":"https:\/\/erpschools.com\/erps\/#website"},"primaryImageOfPage":{"@id":"https:\/\/erpschools.com\/erps\/oracle-application-framework-articles\/how-to-debug-oaf-page-errors-or-how-to-generate-logs-for-tracing-oaf-page-errors#primaryimage"},"image":{"@id":"https:\/\/erpschools.com\/erps\/oracle-application-framework-articles\/how-to-debug-oaf-page-errors-or-how-to-generate-logs-for-tracing-oaf-page-errors#primaryimage"},"thumbnailUrl":"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/1.png","datePublished":"2014-09-18T08:08:32+00:00","dateModified":"2014-09-18T08:46:51+00:00","description":"oaf debug profile controller","breadcrumb":{"@id":"https:\/\/erpschools.com\/erps\/oracle-application-framework-articles\/how-to-debug-oaf-page-errors-or-how-to-generate-logs-for-tracing-oaf-page-errors#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/erpschools.com\/erps\/oracle-application-framework-articles\/how-to-debug-oaf-page-errors-or-how-to-generate-logs-for-tracing-oaf-page-errors"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/erpschools.com\/erps\/oracle-application-framework-articles\/how-to-debug-oaf-page-errors-or-how-to-generate-logs-for-tracing-oaf-page-errors#primaryimage","url":"https:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/1.png","contentUrl":"https:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/1.png","width":614,"height":171,"caption":"OAF_Debug_Msg-1"},{"@type":"BreadcrumbList","@id":"https:\/\/erpschools.com\/erps\/oracle-application-framework-articles\/how-to-debug-oaf-page-errors-or-how-to-generate-logs-for-tracing-oaf-page-errors#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/erpschools.com\/erps"},{"@type":"ListItem","position":2,"name":"How to Debug OAF page Errors (or) How to generate logs for tracing OAF page Errors"}]},{"@type":"WebSite","@id":"https:\/\/erpschools.com\/erps\/#website","url":"https:\/\/erpschools.com\/erps\/","name":"erpSchools","description":"Oracle Apps","publisher":{"@id":"https:\/\/erpschools.com\/erps\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/erpschools.com\/erps\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/erpschools.com\/erps\/#organization","name":"erpSchools","url":"https:\/\/erpschools.com\/erps\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/erpschools.com\/erps\/#\/schema\/logo\/image\/","url":"https:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/erps_logo7.png","contentUrl":"https:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/erps_logo7.png","width":250,"height":60,"caption":"erpSchools"},"image":{"@id":"https:\/\/erpschools.com\/erps\/#\/schema\/logo\/image\/"},"sameAs":["http:\/\/facebook.com\/erpschools"]},{"@type":"Person","@id":"https:\/\/erpschools.com\/erps\/#\/schema\/person\/14661fd5012531b326571be61b96f9f2","name":"Ganesh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/erpschools.com\/erps\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/7d39bceb78ce873b40f466b4b9bb7fe766ad79c153a1d694d39263beb82bc70e?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7d39bceb78ce873b40f466b4b9bb7fe766ad79c153a1d694d39263beb82bc70e?s=96&d=blank&r=g","caption":"Ganesh"},"url":"https:\/\/erpschools.com\/erps\/author\/ganesh"}]}},"_links":{"self":[{"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/posts\/11657","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/comments?post=11657"}],"version-history":[{"count":0,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/posts\/11657\/revisions"}],"wp:attachment":[{"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/media?parent=11657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/categories?post=11657"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/tags?post=11657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}