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

Multi tenancy CAP application with custom build tasks fails

sreehari_vpillai
Active Contributor
0 Likes
1,765

Hi ,

I have a CAP project with custom build task( reason is here ) . Now when I add mtx to this project and "cds build" it, it throws this error

package.json has multi-tenancy enabled as well . Any clue ?

lothar.bender

=>to fix the errors, I added the below 4 models in the cdsrs.json , and error goes of. service has /-/cds/ endpoints as well . But subscription fails ( with no error I could spot from logs )

"@sap/cds-mtxs/srv/bootstrap", "@sap/cds-mtxs/srv/model-provider", "@sap/cds-mtxs/srv/deployment-service", "@sap/cds-mtxs/db/extensions"

Sreehari

Accepted Solutions (1)

Accepted Solutions (1)

lothar_bender
Product and Topic Expert
Product and Topic Expert

Seems that you've also set extensibility: true which requires the model @sap/cds-mtxs/db/extensions. This model defines the extensions table (cds.xt.Extensions) which holds the information of existing extensions.

Extensibility should only be enabled if required - just set it to false otherwise.

If this is not the case, please add the .cdsrc.json and package.json files including the one from the sidecar which is mandatory for Java.
- Lothar

sreehari_vpillai
Active Contributor

thanks mate. Extensibility is disabled and just adding " "@sap/cds-mtxs/srv/bootstrap" was enough for the custom build tasks to provide necessary mtx endpoints for subscription.

I must say , CAP is a piece of art.

Sree

Answers (0)