Closed MARCxGAMBIT closed 6 months ago
thanks for reporting, somehow slipped through fixed with version 0.33.1 just published
Hey, thx for the quick fix. But I think this may only be half the battle.
Due to some conditions Edm.Byte is still a string in my case. In V2 the official OData docs state that Edm.Byte (and SByte and Int64) are formatted as JSON strings. But SAP seems to differ: https://sapui5.hana.ondemand.com/#/api/sap.ui.model.odata.type.Byte and https://sapui5.hana.ondemand.com/#/api/sap.ui.model.odata.type.SByte are represented as a number in UI5 and the ABAP backend expects this. (Int64 seems to be represented as a string both in your implementation, the OData docs as well as the UI5 framework, so nothing to worry here).
Ok, let me check again
OData Version
OData V2
Draft
not relevant
Scenario
FE
Environment
VSCode
UI5 Spreadsheet Component
0.33.0
What happened?
Hey there,
in my backend I have a Data Element of native type INT1 (1 Byte integer, 0 to 255). The metadata of the OData service display this as Edm.Byte.
The parser currently has no handling for Edm.Byte and will parse the number from my excel as a string. Upload then fails.
I am not sure for what else Edm.Byte is used but would it be an easy fix to add it together with the handling of other integers here? https://github.com/spreadsheetimporter/ui5-cc-spreadsheetimporter/blob/main/packages/ui5-cc-spreadsheetimporter/src/controller/Parser.ts#L82
BR Marc
Relevant log output
Spreadsheet Component Init
Manifest
No response