Hi,
I'm having problems with invalid types of data in my scenario and would be great if someone could give some hint.
My scenario is doing the following:
- getting the tables on an excel file
- Listing the rows on the table
- Storing the list of rows in an Array called Table_Output
- Using Parse JSON with a defined Schema to work with the previous data.
This is my table

And this is my flow

This is the content in the Parse JSON
[
{
"@odata.etag": "",
"ItemInternalId": "f2d1e93b-f1a2-42ad-886d-a1290d1156df",
"Name": "John",
"Value": "3",
"City": "London"
},
{
"@odata.etag": "",
"ItemInternalId": "91c8c219-5cbb-4fb8-b738-90074940e4d7",
"Name": "Jack",
"Value": "1",
"City": "Chicago"
},
{
"@odata.etag": "",
"ItemInternalId": "471edf2d-bd99-4cc5-b901-0549a9560b82",
"Name": "Jill",
"Value": "8",
"City": "Madrid"
}
]
And this is the JSON Schema
{
"type": "array",
"items": {
"type": "object",
"properties": {
"Name": {
"type": "string"
},
"Value": {
"type": "integer"
},
"City": {
"type": "string"
}
},
"required": [
"Name",
"Value",
"City"
]
}
}
The issue is that [Value] is expecting an integer but it is getting from the Table_Output array an string.
[
{
"message": "Invalid type. Expected Integer but got String.",
"lineNumber": 0,
"linePosition": 0,
"path": "[0].Value",
"value": "3",
"schemaId": "#/items/properties/Value",
"errorType": "type",
"childErrors": []
},
{
"message": "Invalid type. Expected Integer but got String.",
"lineNumber": 0,
"linePosition": 0,
"path": "[1].Value",
"value": "1",
"schemaId": "#/items/properties/Value",
"errorType": "type",
"childErrors": []
},
{
"message": "Invalid type. Expected Integer but got String.",
"lineNumber": 0,
"linePosition": 0,
"path": "[2].Value",
"value": "8",
"schemaId": "#/items/properties/Value",
"errorType": "type",
"childErrors": []
}
]
I've tried to use the formula int() to convert in the array to integer, but I can't target the correct column, but it is not working. I've also tried to change the schema to get a string (this is working) and then change Value to integer, but again it is not working. If I try a Compose to convert to integer value, it is not displaying the field "Value" in the Data Operation, only the {body}.

Any suggestion how I can convert a String to Integer there?
Many thanks