Skip to content
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

Getting error when saving a draft - incorrect syntax near "=": line 1 col 332 (at pos 332) #114

Open
louenas opened this issue Dec 4, 2024 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@louenas
Copy link

louenas commented Dec 4, 2024

Describe the bug
Getting the following error when saving the Draft

[cds] - SqlError {message: 'sql syntax error: incorrect syntax near "=": line 1 col 332 (at pos 332)', code: 257, sqlState: 'HY000', level: 1, position: 0, …}
cds-log.js:101
[error] - 500 > {
message: 'sql syntax error: incorrect syntax near "=": line 1 col 332 (at pos 332)',
code: '257'
}

To Reproduce
Click on Upload and then click on Save

Expected behavior
Should save the attachment
[ ] is it a regression issue?
not sure

Screenshots
image
image
image

Here is the project dependencies:
Th project is using HANA Cloud. I could see that the attachment Tables where created.
"dependencies": {
"@cap-js/attachments": "^1.1.8",
"@cap-js/hana": "^1",
"@sap-ai-sdk/foundation-models": "^1.3.0",
"@sap-ai-sdk/orchestration": "^1.3.0",
"@sap-cloud-sdk/http-client": "^3.22.2",
"@sap-cloud-sdk/util": "^3.22.2",
"@sap/cds": "^8",
"@sap/low-code-event-handler": "^1.2.4",
"@sap/mdk-tools": "^1.3.1",
"@sap/xsenv": ">=3.3.2 <3.3.3",
"@sap/xssec": "^4.2.6",
"express": "^4",
"hdb": "^0.19.10",
"passport": "^0.7.0"
},
"devDependencies": {
"@cap-js/cds-types": "^0.6",
"@cap-js/sqlite": "^1",
"@sap/dev-cap-tools": "^1.31.0",
"@sap/ux-specification": "UI5-1.120"
}

@louenas louenas added the bug Something isn't working label Dec 4, 2024
@SoujitD-SAP SoujitD-SAP self-assigned this Dec 5, 2024
@liandroK
Copy link

liandroK commented Dec 5, 2024

Have the same problem

@SoujitD-SAP
Copy link
Contributor

SoujitD-SAP commented Dec 5, 2024

Hi @louenas
I was looking into this issue with the same dependencies you mentioned, but it did not produce any error mentioned above. Screenshots attached below

Regards
Soujit Das

Screenshot 2024-12-05 at 11 46 48 PM Screenshot 2024-12-05 at 11 49 22 PM Screenshot 2024-12-05 at 11 52 47 PM

@louenas
Copy link
Author

louenas commented Dec 5, 2024

I just tested with embedded SQL Lite, and it worked! I get the error when I test with HANA Cloud.

@SoujitD-SAP
Copy link
Contributor

SoujitD-SAP commented Dec 6, 2024

Hi @louenas
I tested the attachment plugin with the hybrid environment using hana cloud bindings and other dependencies you mentioned above, but it did not produce any error mentioned. Could you provide some sample applications along with the configurations so that we can test it and reproduce the error.

Regards
Soujit Das

image

@SoujitD-SAP
Copy link
Contributor

Hi @louenas , We tested your app using the HANA bindings and other dependencies for the attachments plugin, but it did not reproduce any error.

Regards
Soujit
Screenshot 2024-12-17 at 9 45 51 AM
Screenshot 2024-12-17 at 9 48 49 AM

@pallavjadav
Copy link

pallavjadav commented Jan 8, 2025

Hi @SoujitD-SAP ,

I am facing similar issue.
Screenshot (112)

Below is repo link.
https://github.com/pallavjadav/attachment-demo

I am trying to use SAP HANA Cloud here.

Reference - https://community.sap.com/t5/technology-blogs-by-members/working-with-the-attachment-plugin-cloud-application-programming/ba-p/13705424

Thanks,
Pallavkumar Jadav

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants