on 2024 Jun 20 9:59 AM
Hello All,
When I add any @ui annotations to a CDS view / root View entity, then I see red error message at @OData.publish: true . It says,
Multiple markers at this line:
- View has generated objects
- Vocan does not exist [OData Exposure]
Could you please someone advise, how can i address this ? I guess it is related to Vocabulary annotation.
Attached the screenshot of the error.
Best Regards !
You should not put the annotation OData.publish: true in root view entities. Root view entities serve as the base CDS view for RAP Business Objects (BO). To expose the view for an OData service based on RAP, create a service definition and a service binding instead of annotating the view with OData.publish: true. If you do not intend to use RAP, simply remove the keyword "root" from the view definition.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1. Tried removing ''root", the result is with same error.
2. Removed @OData.publish , and created Service Definition and Service Binding with OData V2 - UI, the activation ended with exception without any information :
Best Regards !
In your CDS View, is there an element named "Vocan"?
- No, I do not have any annotations / elements with name 'Vocan' . I guess it denotes Vocabulary Annotation.
If you remove OData.publish: true and activate it, does the activation succeed?
- Yes, If I remove the OData.publish, then CDS gets activated without error. When I remove all @UI annotations and add OData.publish then also it gets activated fine.
When I add any @UI annotations, for example, @UI.lineItem: [{ position: 10 }] , and add @OData.publish and activate, then I get this error "Vocan does not exist [OData Exposure]".
Best Regards !
User | Count |
---|---|
57 | |
10 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.