Creating Opportunity Via REST API Fails - Definition Name Of Type Attribute Is Invalid

(Doc ID 2279651.1)

Last updated on JUNE 23, 2017

Applies to:

Oracle Fusion Sales Cloud Service - Version 11.12.1.0.0 and later
Information in this document applies to any platform.

Symptoms

On : 11.12.1.0.0 version, Opportunities

Creating opportunity via REST API fails

We are trying to create an opportunity via the REST API and get an error "Definition name of type Attribute is invalid.". The same input using SOAP createOpportunity operation works fine.

OSC URL - https://XXXXXX/salesApi/resources/latest/opportunities
Input
"CurrencyCode": "CAD",
"SalesMethodId": 300000000157470,
"SalesStageId": 300000046822379,
"Name": "REST API Opty",
"OptyNumber": "OSC2011",
"OwnerResourcePartyId": 300000001567495,
"RiskLevelCode": "LOW",
"StatusCode": "OPEN",
"TargetPartyId": 300000001563703,
"EffectiveDate": "2017-06-27"

Content-Type - application/vnd.oracle.adf.resourceitem+json

ERROR
-----------------------

Definition name of type Attribute is invalid.



STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Create Opportunity using REST service via SOAP UI.

2. Received the error response.

BUSINESS IMPACT
-----------------------
The issue has the following business impact:
Due to this issue, users cannot create opportunity using REST service.

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