
Introduction: I have SharePoint list. When new item is being created, it is mandatory to add attachments. When item is submitted, my Flow should create a new folder with a name of item Title and add into it attachments.
Problem: The Flow works some times successfully, creating new folder and adding there all attachments. However some times it just misses 1 of X files.
Checking: When I open Flow, I can see that "Get attachments" processed X-1 files.
When this works 100%: If I delete "Create new folder" it works all time. However, the attachments are being saved in some root folder and it will make mess, because it will not be sorted by folders.
My Flow:
Hi @Salauat for me at the moment it sounds like a timing issue, i.e. it's trying to store a document before the API call to create the folder has fully completed. When I go on my lunch I'll try to build it and see if I can replicate the issue, but can I just ask how many attachments you're working with?
A couple of suggestions in the meantime:
1. Can you Create the folder before you start to process the attachments? So rather than having the create folder action inside the apply to each can I be done before start the loop?
2. Can you put a small delay after the create folder action to again ensure that the process has completed before creating the file?