<?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: Consistency error while saving draft in Fiori elements list report in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/consistency-error-while-saving-draft-in-fiori-elements-list-report/qaa-p/12238813#M4582183</link>
    <description>&lt;P&gt;Thanks for the quick response.&lt;/P&gt;&lt;P&gt;SAP_BASIS - 751 SP level -0002.&lt;/P&gt;&lt;P&gt;Can you please tell whether it is possible to call PREPARATION action through custom code in BOPF?&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jul 2020 12:57:50 GMT</pubDate>
    <dc:creator>lakshmanan_subramanian</dc:creator>
    <dc:date>2020-07-23T12:57:50Z</dc:date>
    <item>
      <title>Consistency error while saving draft in Fiori elements list report</title>
      <link>https://community.sap.com/t5/technology-q-a/consistency-error-while-saving-draft-in-fiori-elements-list-report/qaq-p/12238809</link>
      <description>&lt;P&gt;I followed the below blog and created a fiori elements list report.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://blogs.sap.com/2020/01/02/multiple-level-multiple-child-draft-enabled-fiori-elements-list-report/"&gt;https://blogs.sap.com/2020/01/02/multiple-level-multiple-child-draft-enabled-fiori-elements-list-report/&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;I'm getting the below error while saving the draft.&lt;/P&gt;
  &lt;P&gt;'Error - You can't save. The draft is not consistent.'&lt;/P&gt;
  &lt;P&gt;The draft is working fine but during actual save I'm getting error.&lt;/P&gt;
  &lt;P&gt;Though entries are there in my draft table but the field ''draftconsistencystatus' is currently empty.In some forum they suggested to modify the field 'draftconsistencystatus' of the draft table.I'm not sure how to modify it.Please Support.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 06:44:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/consistency-error-while-saving-draft-in-fiori-elements-list-report/qaq-p/12238809</guid>
      <dc:creator>lakshmanan_subramanian</dc:creator>
      <dc:date>2020-07-17T06:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Consistency error while saving draft in Fiori elements list report</title>
      <link>https://community.sap.com/t5/technology-q-a/consistency-error-while-saving-draft-in-fiori-elements-list-report/qaa-p/12238810#M4582180</link>
      <description>&lt;P&gt;Pressing the “Save” button on a Fiori UI should trigger the BOPF actions PREPARATION and ACTIVATION in two distinct ChangeSets (within the same OData request). There must be no other operation in the ChangeSet which contains the ACTIVATION action. Check your browser’s network trace to see whether this is the case.&lt;/P&gt;&lt;P&gt;Action PREPARATION sets the DRAFTENTITYCONSISTENCYSTATUS to &lt;EM&gt;consistent (‘3’) &lt;/EM&gt;or &lt;EM&gt;inconsistent (‘2’),&lt;/EM&gt; depending on the result of the evaluation of all validations. As soon as any validation returns a failed key, the status is &lt;EM&gt;inconsistent, &lt;/EM&gt;otherwise it is &lt;EM&gt;consistent.&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Any modification of the draft instance which happens after the execution of PREPARATION would reset the conistency status to &lt;EM&gt;pending (‘1’).&lt;/EM&gt; &lt;/P&gt;&lt;P&gt;Action ACTIVATION evaluates the DRAFTENTITYCONSISTENCYSTATUS and fails if it is not found to be &lt;EM&gt;consistent.&lt;/EM&gt; &lt;/P&gt;&lt;P&gt;Btw.: failed validations are expected to send a message of lifetime&lt;EM&gt; state&lt;/EM&gt;. Failing to do so will leave the user without a clue why the activation fails.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 10:08:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/consistency-error-while-saving-draft-in-fiori-elements-list-report/qaa-p/12238810#M4582180</guid>
      <dc:creator>ivo_vollrath</dc:creator>
      <dc:date>2020-07-20T10:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Consistency error while saving draft in Fiori elements list report</title>
      <link>https://community.sap.com/t5/technology-q-a/consistency-error-while-saving-draft-in-fiori-elements-list-report/qaa-p/12238811#M4582181</link>
      <description>&lt;P&gt;Thank you for the response.&lt;/P&gt;&lt;P&gt;Only ACTIVATION action is visible in the network trace.Should I include any annotation in CDS to trigger PREPARATION action?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 08:23:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/consistency-error-while-saving-draft-in-fiori-elements-list-report/qaa-p/12238811#M4582181</guid>
      <dc:creator>lakshmanan_subramanian</dc:creator>
      <dc:date>2020-07-23T08:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Consistency error while saving draft in Fiori elements list report</title>
      <link>https://community.sap.com/t5/technology-q-a/consistency-error-while-saving-draft-in-fiori-elements-list-report/qaa-p/12238812#M4582182</link>
      <description>&lt;P&gt;There is no CDS annotation for this purpose. Every Draft-enabled UI must follow this pattern. If your UI does not send a separate PREPARATION request it may either be out-dated or faulty. I can only speak for the backend perspective. Maybe someone else can comment on the UI part…&lt;/P&gt;&lt;P&gt;But when I think about it again, I am not really sure if the missing PREPARATION is the reason for the error you reported: usually the ACTIVATION action should implicitly call PREPARATION in case it has not been called before. Maybe this does not work reliably. What is your SAP_BASIS release, by the way?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 10:37:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/consistency-error-while-saving-draft-in-fiori-elements-list-report/qaa-p/12238812#M4582182</guid>
      <dc:creator>ivo_vollrath</dc:creator>
      <dc:date>2020-07-23T10:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Consistency error while saving draft in Fiori elements list report</title>
      <link>https://community.sap.com/t5/technology-q-a/consistency-error-while-saving-draft-in-fiori-elements-list-report/qaa-p/12238813#M4582183</link>
      <description>&lt;P&gt;Thanks for the quick response.&lt;/P&gt;&lt;P&gt;SAP_BASIS - 751 SP level -0002.&lt;/P&gt;&lt;P&gt;Can you please tell whether it is possible to call PREPARATION action through custom code in BOPF?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 12:57:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/consistency-error-while-saving-draft-in-fiori-elements-list-report/qaa-p/12238813#M4582183</guid>
      <dc:creator>lakshmanan_subramanian</dc:creator>
      <dc:date>2020-07-23T12:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Consistency error while saving draft in Fiori elements list report</title>
      <link>https://community.sap.com/t5/technology-q-a/consistency-error-while-saving-draft-in-fiori-elements-list-report/qaa-p/12238814#M4582184</link>
      <description>&lt;P&gt;Calling PREPARATION from within your BO implementation is generally possible but would not make much sense in your scenario. There is no point-in-time which would be suitable.&lt;/P&gt;&lt;P&gt;Does your BO contain validations? If&lt;EM&gt; any&lt;/EM&gt; validation returns a failed key (check with the debugger), this would explain the error message you observe.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 13:44:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/consistency-error-while-saving-draft-in-fiori-elements-list-report/qaa-p/12238814#M4582184</guid>
      <dc:creator>ivo_vollrath</dc:creator>
      <dc:date>2020-07-23T13:44:32Z</dc:date>
    </item>
  </channel>
</rss>

