on 10-29-2022 8:42 PM
Hi,
while following tutorial https://developers.sap.com/tutorials/hana-cloud-cap-calc-view.html, i am stuck at step 3, where i am getting error.
[ERROR] srv/interaction_srv.cds:14:41-54: Illegal circular reference to “CatalogService.V_INTERACTION” (in entity:“CatalogService.V_INTERACTION”)<br>
interaction.cds is as below:
// namespace app.interactions;
using { Country } from '@sap/cds/common';
context app.interactions {
type BusinessKey : String(10);type SDate : DateTime;type LText : String(1024);
entity Interactions_Header { key ID : Integer; ITEMS : Composition of many Interactions_Items on ITEMS.INTHeader = $self; PARTNER : BusinessKey; LOG_DATE : SDate; BPCOUNTRY : Country;
};entity Interactions_Items {while interaction_srv.cds as below:
using app.interactions from '../db/interactions';using V_INTERACTION from '../db/interactions';
Hi,
I had the same issue and could solve it by changing the entity name in the service definition from V_INTERACTION to V_Interaction (upper and lower case!), i.e.:
@readonly entity V_Interaction as projection on V_INTERACTION;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
74 | |
9 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.