Hi Community,
may I don´t see it and it is very simple - but please help me to solve these issue. I try to simple move files after extraction to another folder but the action still try to copy the folder it self as well. So the folw copy the file within folder correctly but also throw an error in every run - Source or Destination likely invalid. Check that the file exists and has an SPListItem ID.
I guess it depends to the identifyer I use here - but not sure what I have to enter to excl. folder to copy.
Thx
@grantjenkins - you got it! Thx a lot!😁
EDIT - Please ignore the below. I did a translate from German to English and can see you're using Extract folder.
It looks like you're using Get files to get the initial files, then Move file within the Apply to each to move each of the files returned. Or is this not the case? If it is, then you can still add the Filter Query to Get files so that Move file only runs for files (not folders). Or is this not the case?
Within your Apply to each you can have a condition to check each item returned and check the IsFolder property. If IsFolder is true, then don't move it.
Example below:
----------------------------------------------------------------------
If I've answered your question, please mark the post as Solved.
If you like my response, please consider giving it a Thumbs Up.
Hi @grantjenkins - thx for your hint. I don´t use Get files (sry all in German) - I use Move files - but maybe i add a get files in between the extraction of the folde and the movement - so I could use your filter note.
I´ll give it a try.
It looks like you're using Get files (not sure due to the language) which brings back both files and folders. If you just want it to retrieve files you can put the following within the Filter Query of Get files.
//Only return files - not folders
FSObjType eq 0
----------------------------------------------------------------------
If I've answered your question, please mark the post as Solved.
If you like my response, please consider giving it a Thumbs Up.