I've got a number of flows that update a SharePoint list and recently added a date field to the mix. Sometimes the variable I pass to this date field in the Update Item action has a NULL value. Three jobs have no issue with this. I have a job to fix errors on the same list. It also uses Update Item, and crashes with the typical error "... is required to be of type 'String/date'. The runtime value '""' to be converted doesn't have the expected format 'String/date'."
If I look at the output for the flows that are working, they seem to ignore the null field.
Stranger, I used Peek Code to view both Update Items in Edit (not flow run output), and the underlying code is different. I appear to have two different Update Item (PatchItem) actions.
The Peek Code on the working one starts out:
{
"inputs": {
"host": {
"connection": {
"name": "@json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$connections']['shared_sharepointonline']['connectionId']"
}
},
"method": "patch",
"body": {
The Peek Code on the broken one starts out:
{
"inputs": {
"host": {
"connectionName": "shared_sharepointonline",
"operationId": "PatchItem",
"apiId": "/providers/Microsoft.PowerApps/apis/shared_sharepointonline"
},
"parameters": {
Why did this happen, and how do I specify the version that works?