SlideShare a Scribd company logo
API Error Handling:
Every API has 3 out parameters as x_return_status, x_msg_count and x_msg_data.
Using these 3 parameters, one can use below code to log or debug error in API's
dbms_output.put_line (SubStr('x_return_status = '||x_return_status, 1, 255));
dbms_output.put_line ('x_msg_count = '||TO_CHAR(x_msg_count));
dbms_output.put_line (SubStr('x_msg_data = '||x_msg_data, 1, 255));
IF x_msg_count >1 THEN
FOR I IN 1..x_msg_count
LOOP
dbms_output.put_line(I ||'.'|| SubStr(FND_MSG_PUB.Get(p_encoded
=>FND_API.G_FALSE ), 1, 255));
END LOOP;
END IF;
END;

More Related Content

PPTX
C language operators
PPTX
C OPERATOR
PPTX
Operator of C language
PPTX
PPT
Operators in c language
PPT
2. operators in c
PPT
C operators
PPT
C operator and expression
C language operators
C OPERATOR
Operator of C language
Operators in c language
2. operators in c
C operators
C operator and expression

What's hot (20)

PPTX
Php-Continuation
PPT
Basic c operators
PPTX
Basic c operators
PPTX
Operator in c programming
PPTX
C Operators
PPT
Arithmetic operator
PPTX
Operators in C/C++
PPT
Types of operators in C
PPT
Relational operators In C language (By: Shujaat Abbas)
PPT
6 operators-in-c
PDF
Conditional operators
 
PPTX
Opreator In "C"
PPTX
Logical and Conditional Operator In C language
PPTX
Python operators
PPTX
Operators in C & C++ Language
DOCX
C – operators and expressions
PPT
Types of c operators ppt
PPT
Operators in C Programming
PPTX
C language operator
PPTX
Operators and expressions in c language
Php-Continuation
Basic c operators
Basic c operators
Operator in c programming
C Operators
Arithmetic operator
Operators in C/C++
Types of operators in C
Relational operators In C language (By: Shujaat Abbas)
6 operators-in-c
Conditional operators
 
Opreator In "C"
Logical and Conditional Operator In C language
Python operators
Operators in C & C++ Language
C – operators and expressions
Types of c operators ppt
Operators in C Programming
C language operator
Operators and expressions in c language
Ad

More from suriyae1 (7)

DOCX
List of api in tca
DOCX
Customer account creation API & query
TXT
Create cust acct api
PPT
Les06 oracle business_intelligence_obiee
DOCX
P2P table
DOCX
Oracle Application Framework
DOC
Oracle SQL AND PL/SQL
List of api in tca
Customer account creation API & query
Create cust acct api
Les06 oracle business_intelligence_obiee
P2P table
Oracle Application Framework
Oracle SQL AND PL/SQL
Ad

Recently uploaded (20)

PPTX
History, Philosophy and sociology of education (1).pptx
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
Introduction to Building Materials
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
Orientation - ARALprogram of Deped to the Parents.pptx
PDF
Complications of Minimal Access Surgery at WLH
PPTX
Radiologic_Anatomy_of_the_Brachial_plexus [final].pptx
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
Computing-Curriculum for Schools in Ghana
PDF
RMMM.pdf make it easy to upload and study
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PPTX
Unit 4 Skeletal System.ppt.pptxopresentatiom
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PDF
1_English_Language_Set_2.pdf probationary
PDF
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
PDF
Trump Administration's workforce development strategy
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PDF
advance database management system book.pdf
History, Philosophy and sociology of education (1).pptx
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Introduction to Building Materials
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Orientation - ARALprogram of Deped to the Parents.pptx
Complications of Minimal Access Surgery at WLH
Radiologic_Anatomy_of_the_Brachial_plexus [final].pptx
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Computing-Curriculum for Schools in Ghana
RMMM.pdf make it easy to upload and study
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
Unit 4 Skeletal System.ppt.pptxopresentatiom
A powerpoint presentation on the Revised K-10 Science Shaping Paper
1_English_Language_Set_2.pdf probationary
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
Trump Administration's workforce development strategy
Paper A Mock Exam 9_ Attempt review.pdf.
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
advance database management system book.pdf

Api error handling

  • 1. API Error Handling: Every API has 3 out parameters as x_return_status, x_msg_count and x_msg_data. Using these 3 parameters, one can use below code to log or debug error in API's dbms_output.put_line (SubStr('x_return_status = '||x_return_status, 1, 255)); dbms_output.put_line ('x_msg_count = '||TO_CHAR(x_msg_count)); dbms_output.put_line (SubStr('x_msg_data = '||x_msg_data, 1, 255)); IF x_msg_count >1 THEN FOR I IN 1..x_msg_count LOOP dbms_output.put_line(I ||'.'|| SubStr(FND_MSG_PUB.Get(p_encoded =>FND_API.G_FALSE ), 1, 255)); END LOOP; END IF; END;