on 2020 Nov 24 5:57 AM
Hi Everyone
Little new to CAP here. Was trying to create a collection of enum on cds.
type AllowanceType: String enum {
EXPATRIATION;
CHILD_EVELYN_AURELIUS;
HOUSEHOLD;
ANNUAL_TRAVEL;
INSTALLATION;
}
entity Workflow : managed {
key UUID : UUID;
allowances: many AllowanceType;
}
entity Workflow as projection on Workflow;
No error during server start, database updated successfully. But getting the following error while retrieving data from the exposed endpoint.
{"error": {"code": "500", "message": "class com.sap.cds.reflect.impl.CdsArrayedTypeBuilder $ CdsArrayedTypeImpl cannot be cast to class com.sap.cds.reflect.CdsSimpleType (com. sap.cds.reflect.impl.CdsArrayedTypeBuilder $ CdsArrayedTypeImpl and com.sap.cds.reflect.CdsSimpleType are in unnamed module of loader java.net.URLClassLoader @ 22bd6b0a) "}}
Any leads?
Request clarification before answering.
User | Count |
---|---|
79 | |
12 | |
9 | |
8 | |
7 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.