i have a flow that creates a file in sharpoint using Create File but if that file exists already, instead of overwriting it, it is crashing saying file exists. We have versioning turned on the site as well. am i missing a step? Works fine if file is not already there.
How can i get it to overwrite it or skip to next file in list to be created.
Solved! Go to Solution.
Hi @wsalling,
You could use Create file action create the file in another folder, the use Get file properties action to get the file identifier could be used in Copy file action. Use the Copy file, you could set the If another file is already there to Replace. After all, delete the file created at the beginning.
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
hi @wsalling unfortunally the action Create File don't Overwrites Existing Files, I suggest you to add some text in your file name like and ID to create New Files
Proud to be a Flownaut!
Thank you, is there a way to see if the file exists? then i could skip the create file process?
yes @wsalling you can use list files action to get all the names files in a folder then you can use a condition to compare if the name you have is equals to the name file exist then do nothing.
Proud to be a Flownaut!
Hi @wsalling,
You could use Create file action create the file in another folder, the use Get file properties action to get the file identifier could be used in Copy file action. Use the Copy file, you could set the If another file is already there to Replace. After all, delete the file created at the beginning.
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Did the Create File action change recently? The last time I used the Create File action in a flow, I did not have an issue with any existing files having the same name; if there was an existing file, the flow replaced the existing file and maintained versioning history.
Yes, This is something started happening recently from new flows. It looks like there was a change in create file in sharepoint. Anyone got any solution?
User | Count |
---|---|
90 | |
40 | |
23 | |
20 | |
16 |
User | Count |
---|---|
130 | |
49 | |
46 | |
28 | |
27 |