Skip to Content
0
May 20, 2020 at 03:21 PM

entity definition "as SELECT from" generates metadata, but not a result

74 Views

Hi, I'm a bit stack with a simple select statement from the external OData service (v2).

While "projection on" works fine, the "Select from" returns error. What could be the reason?

buspartner-service.cds:

using { API_BUSINESS_PARTNER as external } from './external/API_BUSINESS_PARTNER.csn';

@path:'/buspartner' service BusPartnerListService {

@cds.persistence.skip @readonly entity BusPartners as SELECT from external.A_Customer {Customer, CustomerName}; }

Error:

http://docs.oasis-open.org/odata/ns/metadata"> 500 Request failed with status code 404