<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: OData Draft Enabled error in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/odata-draft-enabled-error/qaa-p/12375635#M4632629</link>
    <description>&lt;P&gt;Hi Rufat,&lt;/P&gt;&lt;P&gt;You need to use the SAP HANA database when you deploy your app. For this, you'll need to bind your app to an SAP HANA instance and set the kind of your db to `hana`, see &lt;A href="https://cap.cloud.sap/docs/guides/databases"&gt;https://cap.cloud.sap/docs/guides/databases&lt;/A&gt; for more information.&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;David&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jan 2021 08:20:03 GMT</pubDate>
    <dc:creator>david_kunz2</dc:creator>
    <dc:date>2021-01-05T08:20:03Z</dc:date>
    <item>
      <title>OData Draft Enabled error</title>
      <link>https://community.sap.com/t5/technology-q-a/odata-draft-enabled-error/qaq-p/12375633</link>
      <description>&lt;P&gt;Dear SAP CAP Experts,&lt;/P&gt;
  &lt;P&gt;I am running into the following error when I set "odata.draft.enabled" for the service entity. It works fine when testing via fiori preview locally or via generated fiori elements app (also local). But as soon as I deploy the app to SCP I ran against an error ("Not connected to primary datasource!", ) which you can also see in the log screenshot below. Note: No external service is being consumed in this step, only my cds entities are being exposed as OData...&lt;/P&gt;
  &lt;P&gt;This is my main (renamed here) entity:&lt;/P&gt;
  &lt;P&gt;@odata.draft.enabled entity CarPark @(title : 'Car Park', //odata.draft.enabled : true ) as projection on data.CarPark { * , parkingSpot : redirected to ParkingSpots }; &lt;BR /&gt; entity ParkingSpots @(title : 'Parking Spots') as projection on data.ParkingSports{ * , carPark: redirected to CarPark }; &lt;/P&gt;
  &lt;P&gt;I am using "CUID" as key for the main entity.&lt;/P&gt;
  &lt;P&gt;Here is the log file after deployment to SCP CF:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1871914-najcx.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Thank you for your support. I can provide more details if needed.&lt;/P&gt;
  &lt;P&gt; &lt;SPAN class="mention-scrubbed"&gt;thomas.jung&lt;/SPAN&gt; &lt;SPAN class="mention-scrubbed"&gt;mariusobert&lt;/SPAN&gt; &lt;SPAN class="mention-scrubbed"&gt;dj.adams&lt;/SPAN&gt; &lt;/P&gt;
  &lt;P&gt;BR&lt;/P&gt;
  &lt;P&gt;Rufat&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2021 18:30:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/odata-draft-enabled-error/qaq-p/12375633</guid>
      <dc:creator>gadirov</dc:creator>
      <dc:date>2021-01-04T18:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: OData Draft Enabled error</title>
      <link>https://community.sap.com/t5/technology-q-a/odata-draft-enabled-error/qaa-p/12375634#M4632628</link>
      <description>&lt;P&gt;My assumption is that this error occurs because I didn´t bind a database (hana cloud) yet which should be necessary for drafts/creation of new instances...in memory testing is not possible after deployment or I must adapt the "requires db section" in package.json....I am going to create persistency in the next step...&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2021 18:48:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/odata-draft-enabled-error/qaa-p/12375634#M4632628</guid>
      <dc:creator>gadirov</dc:creator>
      <dc:date>2021-01-04T18:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: OData Draft Enabled error</title>
      <link>https://community.sap.com/t5/technology-q-a/odata-draft-enabled-error/qaa-p/12375635#M4632629</link>
      <description>&lt;P&gt;Hi Rufat,&lt;/P&gt;&lt;P&gt;You need to use the SAP HANA database when you deploy your app. For this, you'll need to bind your app to an SAP HANA instance and set the kind of your db to `hana`, see &lt;A href="https://cap.cloud.sap/docs/guides/databases"&gt;https://cap.cloud.sap/docs/guides/databases&lt;/A&gt; for more information.&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;David&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 08:20:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/odata-draft-enabled-error/qaa-p/12375635#M4632629</guid>
      <dc:creator>david_kunz2</dc:creator>
      <dc:date>2021-01-05T08:20:03Z</dc:date>
    </item>
  </channel>
</rss>

