Error Creating an Opportunity - Error string cannot be converted to a Number (Doc ID 847049.1)

Last updated on MAY 10, 2016

Applies to:

Oracle Sales - Version: 12 and later   [Release: 12.0 and later ]
Oracle Sales - Version: 12 and later    [Release: 12.0 and later]
Information in this document applies to any platform.
AS_SALES_STAGES_ALL_B
AS_SALES_STAGES_ALL_TL
***Checked for relevance on 03-APR-2012***

Symptoms

The following issue happens in the Oracle Sales,

On the Sales Dashboard, there are errors displayed.  Also when attempting to create an opportunity, the page comes out with errors.

Steps to Reproduce the Problem:
1. login to Oracle applications
2. goto Sales User responsibility
3. on the sales dashboard, there are errors like
Error
1. string cannot be converted to a Number. Please contact your system  administrator for further assistance.
2. Credit Type string cannot be converted to a Number. Please contact your system administrator for further assistance.

.

4. goto Opportunities region
5. click on Create Opportunity
6. give Opportunity name
7. for customer field, click on the SELECT of the Customer
8. in the customer search page, give UNIVER%
9. choose Universal Healthcare customer
10. fill other details
11. click on Apply
12. there is error like
Error Page
You have encountered an unexpected error. Please contact the System Administrator for assistance.
Click here for exception details.


13. click on the 'here' link
14. the error stack is something like
Exception Details:
oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122:
SQL error during statement preparation.
Statement: SELECT * FROM (SELECT assb.sales_stage_id,
asst.name AS sales_stage_name,
assm.sales_methodology_id,
assm.stage_sequence
FROM as_sales_stages_all_b assb,
as_sales_stages_all_tl asst,
as_sales_meth_stage_map assm
WHERE assb.sales_stage_id = asst.sales_stage_id
AND asst.language = USERENV('LANG')
AND assb.enabled_flag = 'Y'
AND trunc(nvl(assb.start_date_active, SYSDATE)) <= trunc(SYSDATE)
AND .....
.....

Error On the Dashboard :

Error
1. string cannot be converted to a Number. Please contact your system administrator for further assistance.
2. Credit Type string cannot be converted to a Number. Please contact your system administrator for further assistance.



When trying to create an opportunity:

Error Page
You have encountered an unexpected error. Please contact the System Administrator for assistance.
Click here for exception details.

Exception Details:

oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122:
SQL error during statement preparation.
Statement: SELECT * FROM (SELECT assb.sales_stage_id,
asst.name AS sales_stage_name,
assm.sales_methodology_id,
assm.stage_sequence
FROM as_sales_stages_all_b assb,
as_sales_stages_all_tl asst,
as_sales_meth_stage_map assm
WHERE assb.sales_stage_id = asst.sales_stage_id
AND asst.language = USERENV('LANG')
AND assb.enabled_flag = 'Y'
AND trunc(nvl(assb.start_date_active, SYSDATE)) <= trunc(SYSDATE)
AND .....





Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms