SAP Knowledge Base Article - Public

2919411 - Error : "Enter a name for this installed base", While trying to POST a record in OData Service Explorer

Symptom

You are receiving an error "Enter a name for this installed base", When you are trying to create a record using OData Service Explorer in InstalledBaseCollection

Environment

SAP Cloud for Customer.

Reproducing the Issue

  • Go to Administrator Work center and then OData Service Explorer.
  • Select the Service c4codataapi and choose Test.
  • In the Odata Service Explorer, Select the InstalledBaseCollection.
  • Choose the Request Method as "POST".
  • In the Payload tab, Choose the format as JSON and execute the below payload.

{

"ID": "XXXXXXX",

"LifeCycleStatusCode": "X",

"Country": "XX",

"House": "X",

"StreetName": "XXXXXXX",

"City": "XXXXXXX",

"StreetPostalCode": "XXXXX",

"CustomerPartyID": "XXXXX",

"ShipToPartyID": "XXXXX"

}

Note : Customer relevant data is replaced by X.

  • Once you execute the payload, you will get the error, "Enter a name for this installed base".

Cause

When you are trying to create a record in Installed Base, You have to pass data in both InstalledBaseCollection and InstalledBaseDescriptionCollection. Basically, you have to pass the description(name) in the Description Collection. So, In this case you have use Deep Insert Method instead of Post. In case of Deep Insert, you can send data for both Child and Parent Collection in a single payload.

Resolution

  • In the Odata Service Explorer, Choose the Request Method as Deep Insert.
  • Choose the format as JSON in the payload tab and execute the below payload :

{

"ID": "XXXXXXX",

"LifeCycleStatusCode": "X",

"Country": "XX",

"House": "X",

"StreetName": "XXXXXXX",

"City": "XXXXXXX",

"StreetPostalCode": "XXXXX",

"CustomerPartyID": "XXXXX",

"InstalledBaseDescription":

[{

 "InstalledBaseID":"XXXXXX",

 "LanguageCode" : "EN",

 "Description" : "Test"

 }]

 }

Note : Replace X with the relevant values.

  • Now, you can see that the record is successfully created.

Keywords

Odata, InstalledBase, InstalledBaseDescription , KBA , LOD-CRM-INT-API , OData API (C4C Only) , Problem

Product

SAP Cloud for Customer add-ins all versions