Skip to content

Invalid parameter: 'parameter (5)' contains different types. #192

@tq20

Description

@tq20

Hi Colleague,

This is a consulting issue. I got an error message when attempting to inserting data into a hdb table as below.
image

It seems that if the data type of attribute to be inserted is different from what it defines in db, then the error message will be reported. Even if the data type is string in db, and input data type is number, the data type conversion will be not handled by hana client automatically. I am not sure if it is a normal behavior. Could you please help to clarify?

Thank you very much.
BR,
Qin

Your Project Name https://github.tools.sap/ROCKETS/sample-cap-change-history-fe
OData version v4
Node.js version v14.18.0
@sap/cds 5.6.1
@sap/hana-client 2.11.14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions