<?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 Java: No qualifying bean of type 'com.sap.cds.ser... in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/cap-java-no-qualifying-bean-of-type-com-sap-cds-services-draft-draftservice/qaa-p/14219355#M4926484</link>
    <description>&lt;P&gt;This means the service&amp;nbsp;&lt;SPAN&gt;srv.invoice.archive.InvoiceArchiveConfigService and srv.invoice.form.CreateInvoiceUIService has&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1599241"&gt;@odata&lt;/a&gt;.draft.enabled annotation. The problem here is the database couldn't understand which draft is used for which. To solve this issue, specify the draft service with&amp;nbsp;@Qualifier annotation and the parameter be the service's name.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;@Autowired
@Qualifier("InvoiceArchiveConfigService")
private DraftService invoiceArchiveDraftService;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Sep 2025 03:22:16 GMT</pubDate>
    <dc:creator>Steve36</dc:creator>
    <dc:date>2025-09-17T03:22:16Z</dc:date>
    <item>
      <title>CAP Java: No qualifying bean of type 'com.sap.cds.services.draft.DraftService' available</title>
      <link>https://community.sap.com/t5/technology-q-a/cap-java-no-qualifying-bean-of-type-com-sap-cds-services-draft-draftservice/qaq-p/14210222</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I enable odata.draft.enabled in my 2 services:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[srv.invoice.archive.InvoiceArchiveConfigService, srv.invoice.form.CreateInvoiceUIService]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But when I start the service I failed due to error&lt;BR /&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name &lt;/SPAN&gt;&lt;SPAN&gt;'queryExecutorImpl'&lt;/SPAN&gt;&lt;SPAN&gt; defined in URL: Unsatisfied dependency expressed through constructor parameter 1: No qualifying bean of type &lt;/SPAN&gt;&lt;SPAN&gt;'com.sap.cds.services.draft.DraftService'&lt;/SPAN&gt;&lt;SPAN&gt; available: more than one &lt;/SPAN&gt;&lt;SPAN&gt;'primary'&lt;/SPAN&gt;&lt;SPAN&gt; bean found among candidates: [srv.invoice.archive.InvoiceArchiveConfigService, srv.invoice.form.CreateInvoiceUIService]&lt;BR /&gt;&lt;BR /&gt;How to fix the conflict DraftService bean?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 08 Sep 2025 05:11:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cap-java-no-qualifying-bean-of-type-com-sap-cds-services-draft-draftservice/qaq-p/14210222</guid>
      <dc:creator>DinhNguyen1</dc:creator>
      <dc:date>2025-09-08T05:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: CAP Java: No qualifying bean of type 'com.sap.cds.ser...</title>
      <link>https://community.sap.com/t5/technology-q-a/cap-java-no-qualifying-bean-of-type-com-sap-cds-services-draft-draftservice/qaa-p/14219355#M4926484</link>
      <description>&lt;P&gt;This means the service&amp;nbsp;&lt;SPAN&gt;srv.invoice.archive.InvoiceArchiveConfigService and srv.invoice.form.CreateInvoiceUIService has&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1599241"&gt;@odata&lt;/a&gt;.draft.enabled annotation. The problem here is the database couldn't understand which draft is used for which. To solve this issue, specify the draft service with&amp;nbsp;@Qualifier annotation and the parameter be the service's name.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;@Autowired
@Qualifier("InvoiceArchiveConfigService")
private DraftService invoiceArchiveDraftService;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2025 03:22:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cap-java-no-qualifying-bean-of-type-com-sap-cds-services-draft-draftservice/qaa-p/14219355#M4926484</guid>
      <dc:creator>Steve36</dc:creator>
      <dc:date>2025-09-17T03:22:16Z</dc:date>
    </item>
  </channel>
</rss>

