-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change tracking not working in Multi-tenant CAP Nodejs Project #85
Comments
Please find the Git repo for the sample app below: |
@vishalsharma190596 Best, |
@nkaputnik Yes I have done the cds build and redeployement multiple times. Still no issues. Request you to please get the sample project from the git repo I have mentioned above and let me know if there are any issues you could recognize. Also would appreciate it if you could try to replicate the change tracking in the same multi-tenant project from the git repo. Thanks & Regards, |
Hello @vishalsharma190596 Best, |
Sure Nick, My SAP email id is [email protected] Thanks & Regards, |
Hi, has this issues being resolved as I am having the same issue. Multi Tenant Project with HANA. The tables are not getting generated . Update : I fixed the issue as we have build tasks in package.json and I added "@cap-js/change-tracking" { But now I get the following error : invalid column name: CHANGES and : INSERT INTO sap_changelog_ChangeLog (entity,entityKey,serviceEntity,changes) VALUES (?,?,?,?) However this is how the table gets generated and there is no field "Changes" COLUMN TABLE sap_changelog_ChangeLog ( Any idea ? |
I am trying to add the plugin @cap-js/change-tracking to store change logs for an Entity in my CAP Nodejs multi tenant Project.
I have followed the guide to implement this Change Tracking Plugin for SAP Cloud Application Programming Model (CAP).
I have added the @changelog annotations to an entity for which I am trying to track changes. This brings the facet in the fiori elements object page. And when I trying to edit a record and save it from the app I am getting below error:
no such table: sap_changelog_ChangeLog in: INSERT INTO sap_changelog_ChangeLog
Below is how I have added the annotation to my service entity in file app/managebooks/annotations.cds :
annotate service.Books with {
title @changelog;
};
It needs the table sap_changelog_ChangeLog to persist the change log entries but just by adding the module in package.json and adding annotation to properties is not generating the table while doing local testing with sqlite. Please let me know if there are some steps missed here.
Thanks & Regards,
Vishal Sharma
The text was updated successfully, but these errors were encountered: