cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CAP Java: No qualifying bean of type 'com.sap.cds.services.draft.DraftService' available

DinhNguyen1
Associate
Associate
0 Likes
619

Hi, I set `odata.draft.enabled` in 2 service 

[srv.invoice.archive.InvoiceArchiveConfigService, srv.invoice.form.CreateInvoiceUIService]
 
When I run the app, it's failed to start with the following error stack trace
```
Application run failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'queryExecutorImpl' defined in URL [jar:file:/Users/I753247/SAPDevelop/maven/repository/com/sap/sbnc/document/commons/txn-dataservice/0.0.230/txn-dataservice-0.0.230.jar!/com/sap/sbnc/txn/dataservice/txnservice/impl/QueryExecutorImpl.class]: Unsatisfied dependency expressed through constructor parameter 1: No qualifying bean of type 'com.sap.cds.services.draft.DraftService' available: more than one 'primary' bean found among candidates: [srv.invoice.archive.InvoiceArchiveConfigService, srv.invoice.form.CreateInvoiceUIService]
```

How to resolve this issue

Accepted Solutions (0)

Answers (0)