<?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: CAP Version 8 Update: Issue with $batch Function Call Responses in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/cap-version-8-update-issue-with-batch-function-call-responses/qaa-p/13970865#M4897183</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/124763"&gt;@kevin_balboni1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Nice catch.&lt;/P&gt;&lt;P&gt;I'm also able to reproduce the issue.&lt;BR /&gt;It is strange that the behaviour could be reproduced with earlier versions of 8, too (like 8.1.1).&lt;BR /&gt;The last working version was 7.9.5.&lt;/P&gt;&lt;P&gt;After some debugging I let it go.&lt;BR /&gt;First I thought that it is a problem with the batch itself (\node_modules\@sap\cds\libx\odata\middleware\batch.js) but replacing the whole file with the one from version 7.9.5 still doesn't seem to resolve the issue.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Dec 2024 04:26:31 GMT</pubDate>
    <dc:creator>catano</dc:creator>
    <dc:date>2024-12-24T04:26:31Z</dc:date>
    <item>
      <title>CAP Version 8 Update: Issue with $batch Function Call Responses</title>
      <link>https://community.sap.com/t5/technology-q-a/cap-version-8-update-issue-with-batch-function-call-responses/qaq-p/13969437</link>
      <description>&lt;P&gt;Dear community,&lt;/P&gt;&lt;P&gt;We are currently in the process of updating the CAP (Cloud Application Programming) version in our product. During this transition to version 8, we have encountered an issue regarding the handling of $batch calls.&lt;/P&gt;&lt;P&gt;In our frontend implementation, we have two function calls that are executed consecutively. These calls are subsequently grouped into a single $batch request by SAPUI5. However, since the CAP update, we have observed that the results being returned from these functions are incorrect. Specifically:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The function “takeAuthors”, which is intended to return a list of authors, is instead returning the count of books.&lt;/LI&gt;&lt;LI&gt;Conversely, the function “booksCount”, which is supposed to return the book count, is incorrectly returning the list of authors.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Call" style="width: 458px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/204091iA2AAB08528BFE6FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-12-20 164624.png" alt="Call" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Call&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Response" style="width: 488px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/204092i13176AB052BCEE80/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-12-20 164706.png" alt="Response" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Response&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I put a small timeout in a function to simulate processing some data, otherwise the anomaly does not occur.&lt;/P&gt;&lt;P&gt;The only reference I found in the CAP documentation is on the following page:&lt;/P&gt;&lt;P&gt;&lt;A title="Noteworthy Changes" href="https://cap.cloud.sap/docs/releases/archive/2024/jun24#new-protocol-adapters-ga" target="_blank" rel="noopener"&gt;Noteworthy Changes&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To further illustrate the problem, I have created a GitHub repository containing a demonstration of the anomaly we are experiencing.&lt;/P&gt;&lt;P&gt;You can access it here: &lt;A title="GitHub Repository - Test_CAP" href="https://github.com/conse-srl/test_CAP" target="_blank" rel="noopener"&gt;GitHub Repository - Test_CAP&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Any help would be very much appreciated&lt;/P&gt;&lt;P&gt;Thank you!&lt;BR /&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2024 15:49:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cap-version-8-update-issue-with-batch-function-call-responses/qaq-p/13969437</guid>
      <dc:creator>kevin_balboni1</dc:creator>
      <dc:date>2024-12-20T15:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: CAP Version 8 Update: Issue with $batch Function Call Responses</title>
      <link>https://community.sap.com/t5/technology-q-a/cap-version-8-update-issue-with-batch-function-call-responses/qaa-p/13970865#M4897183</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/124763"&gt;@kevin_balboni1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Nice catch.&lt;/P&gt;&lt;P&gt;I'm also able to reproduce the issue.&lt;BR /&gt;It is strange that the behaviour could be reproduced with earlier versions of 8, too (like 8.1.1).&lt;BR /&gt;The last working version was 7.9.5.&lt;/P&gt;&lt;P&gt;After some debugging I let it go.&lt;BR /&gt;First I thought that it is a problem with the batch itself (\node_modules\@sap\cds\libx\odata\middleware\batch.js) but replacing the whole file with the one from version 7.9.5 still doesn't seem to resolve the issue.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2024 04:26:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cap-version-8-update-issue-with-batch-function-call-responses/qaa-p/13970865#M4897183</guid>
      <dc:creator>catano</dc:creator>
      <dc:date>2024-12-24T04:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: CAP Version 8 Update: Issue with $batch Function Call Responses</title>
      <link>https://community.sap.com/t5/technology-q-a/cap-version-8-update-issue-with-batch-function-call-responses/qaa-p/13971137#M4897203</link>
      <description>Hi &lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/38555"&gt;@catano&lt;/a&gt;, thank you for your insight. I’ve reached the same conclusion. I hope a fix for this issue will arrive soon, as it’s currently blocking me from upgrading the CAP.</description>
      <pubDate>Tue, 24 Dec 2024 08:12:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cap-version-8-update-issue-with-batch-function-call-responses/qaa-p/13971137#M4897203</guid>
      <dc:creator>kevin_balboni1</dc:creator>
      <dc:date>2024-12-24T08:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: CAP Version 8 Update: Issue with $batch Function Call Responses</title>
      <link>https://community.sap.com/t5/technology-q-a/cap-version-8-update-issue-with-batch-function-call-responses/qaa-p/13971311#M4897227</link>
      <description>I opened a github issue for it &lt;A href="https://github.com/cap-js/docs/issues/1538" target="_blank"&gt;https://github.com/cap-js/docs/issues/1538&lt;/A&gt;</description>
      <pubDate>Tue, 24 Dec 2024 13:22:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cap-version-8-update-issue-with-batch-function-call-responses/qaa-p/13971311#M4897227</guid>
      <dc:creator>catano</dc:creator>
      <dc:date>2024-12-24T13:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: CAP Version 8 Update: Issue with $batch Function Call Responses</title>
      <link>https://community.sap.com/t5/technology-q-a/cap-version-8-update-issue-with-batch-function-call-responses/qaa-p/13985342#M4899057</link>
      <description>Hi Kevin, I have the same problem in my CAP project with version "@sap/cds": "8.6.1".</description>
      <pubDate>Tue, 14 Jan 2025 14:59:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cap-version-8-update-issue-with-batch-function-call-responses/qaa-p/13985342#M4899057</guid>
      <dc:creator>alecava97</dc:creator>
      <dc:date>2025-01-14T14:59:54Z</dc:date>
    </item>
  </channel>
</rss>

