I created a flow which does the following:
This was working fine, and all of a sudden I have started to get InvalidTemplate errors which suggest a property is missing. I recreated a smaller list with the same columns to test what might be wrong and the error seems to occur when there is no data in a particular column for any item.
This seems to be a bug as when it was working there were blank fields coming through onto the CSV, but all of a sudden it is no longer working. Any assistance or workarounds would be appreciated. Happy to provide a link to the flow for investigation purposes.
Amit
Hi @amitlathia,
Could you please share a screenshot of the configuration of your flow?
Could you please share more details about your sharepoint list?
Could you please share more details about which column would have empty value in your csv table and what is the type of the column?
I have made a test on my side and the issue is confirmed on my side,set a empty property in select action is not supported in microsoft flow.
If I would create a csv table and a single line of text column (quantity)might have a empty value as below:
The flow would run failed in the Select action as below:
I would add an if() expression to set the value to null if the value is empty as screenshot below:
The expression of quanyity as below:
if(empty(item()?['quantity']),item()?['quantity'],null)
The flow would run successfully as below:
Please let me know if your problem could be solved.
Best regards,
Alice
Thanks Alice @v-yuazh-msft, this does work partially. What I am finding however is using the if statement expression provided does insert null values, however as it then overides the whole column with null values once it has seen one item has had a blank field.
i.e. if item 1 was empty for the column 'quantity' but item 2 had a value, the CSV shows both items to be null.
Any suggestions on how to further expand the suggested expression so that it checks each item and applies a null value only if required?
Many thanks in advance for your help.
p.s. I also found that for certain column types such as currency the string expression needs to be used in front of item i.e. if(empty(string(item()?....
Amit
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Read the latest about new experiences and capabilities in the Power Automate product blog.