You are viewing limited content. For full access, please sign in.

Question

Question

Access denied issue and delete actual day folder on LF workflow

asked on August 15, 2017 Show version history

Hi all,

My folder structure is as follows: Incoming\<Branch Name>\Actual Year folder\Actual Month folder\Actual Day folder and this folder structure has been defined in Quick Fields. Please note that <Branch Name> is a list field with various locations.

I have a workflow which uses 'Find Entries' activity with path '\Incoming\%(RetrieveFieldValues2_Branch Name)\%(Date#"yyyy"#)\%(Date#"MM"#)\%(Date#"dd"#) and looks for documents. In case, the Application Number field is not empty and Result Count of Find Entries does not equal to 0, the document should then moved to \Level 0\Retail\%(ForEachEntry_CurrentEntry_Path#<[^\\]+\\(.+)>#). I am having an access denied [9013] error even though the account used is having access to the folder. After the documents have moved to the corresponding \Level 0\Retail folder, the (Date#"dd"#) folder(i.e actual day folder) from Incoming\BranchName folder must be deleted.

Can you please advise how to fix the access denied issue and how to delete the actual day folder from Incoming\BranchName folder?

Please see attached screenshot of workflow.

Thanks

Sheila

 

wf.PNG
wf2.PNG
wf.PNG (46.43 KB)
wf2.PNG (14.41 KB)
0 0

Replies

replied on August 15, 2017

For the access denied issue, have you attempted to hard-code in a folder (such as \Level 0\Retail\TestMove) in the route activity?  If you can move the files to a static folder, then the issue might be with the tokens used to create the dynamic folder.

 

0 0
replied on August 15, 2017

As for deleting the original folder, this is a rough sketch of something that will work.  Before the document gets moved, create a new token.  In this token use the Current Entry Path (not full path) to store the name of the folder the document is in.  Then after moving the document, you can use the Find Entry activity to find the original folder the document was in.  Then do a Delete Entry activity which points back to the folder you found in the Find Entry activity.

DeleteFolder.jpg
DeleteFolder.jpg (171.69 KB)
0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.