Last updated on AUGUST 10, 2017
Applies to:Oracle Fusion Sales Cloud Service - Version 188.8.131.52.0 and later
Information in this document applies to any platform.
On : 184.108.40.206.0 version, Accounts, Contacts, Households
Getting an error when creating an account with REST API; it is working with SOAP.
Unable to start a nested resource because there is no current resource. Nested resource name: PrimaryAddressJBO-29000: Unexpected exception caught: java.lang.IllegalStateException, msg=Unable to start a nested resource because there is no current resource. Nested resource name: PrimaryAddress: Unable to start a nested resource because there is no current resource. Nested resource name: PrimaryAddress
The issue can be reproduced at will with the following steps:
1. Create custom field on Account
2. For Default Value, use this expression
def secCtx = adf.context.getSecurityContext()
def userID = adf.context.getSecurityContext()?.getUserProfile()?.getUserID()
def EmployeeObj = newView('Resource')
def rowEmployee = EmployeeObj.first()
3. Create an account using REST API
4. The error occurs
5. Change the field to Fixed Value and the error does not occur
The issue has the following business impact:
Due to this issue, users cannot use the expression on field with REST API.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms