Instead of passing the number directly in the value
field, you can use the following format:
{
"path": "/InvoiceTotals/InvoiceAmount",
"type": "Replace",
"value": "@float(30.06)"
}
As a workaround, after the patch operation, you can perform a validation step to check the types and convert them back if necessary. However, this would add additional complexity and might not be ideal.
Sometimes, the SDK or connector might have issues with data types. If you're using an older version of the CosmosDB SDK or the Logic App connector, consider updating to the latest version to see if this resolves the issue. Microsoft occasionally patches these types of issues in newer versions.