cancel
Showing results for 
Search instead for 
Did you mean: 

'Key "ID" is missing for entity "ProcessorService.Incidents"' error

markchck
Newcomer
0 Kudos
134

 

"I was following the 'Enable draft with @odata.draft.enabled' section of https://developers.sap.com/tutorials/add-fiori-elements-uis.html, and after adding 'annotate ProcessorService.Incidents with @odata.draft.enabled;' to the srv/services.cds file, I'm getting an error in the browser saying 'Key "ID" is missing for entity "ProcessorService.Incidents"'. Does anyone know what the problem is?

The Incidents entity is currently as follows (not modified from the manual):

 

entity Incidents : cuid, managed {  
customer     : Association to Customers;
title        : String  @title : 'Title';
urgency        : Association to Urgency default 'M';
status         : Association to Status default 'N';
conversation  : Composition of many {
    key ID    : UUID;
    timestamp : type of managed:createdAt;
    author    : type of managed:createdBy;
    message   : String;
};
}
 

 

View Entire Topic
Laszlo_Kohegyi
Explorer
0 Kudos

Hello Mark,

I had the same issue. I used copy-paste the line and it did not work.
So I typed it manually and it is ok now.
After that I can not change the 'Status' and 'Details' when creating new incident. Probably I missed something.

Laszlo