• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3358
  • Last Modified:

SharePoint Designer: Using Update List Item to move file into a folder causing error

I'm using a SharePoint 2010 workflow to move a file into a folder, within a library, based on a column value and it's not working.  I'm using "Update List Item" and updating the "Path and Name" field, using the String Builder.

The problem is, the update action keeps causing an error.  The error is, "The workflow could not update the item, possibly because one or more columns for the item require a different type of information.".

I've tried plain text, variables, references to fields, but mostly combinations of those.  Nothing seems to work.  I've also tried a 1-minute pause before the Update action.  Something in that Path, I think, is not being accepted.  What formats will the "Path and Name" field accept and reject?  I can't even update a file to it's own current path, so I have to be doing something wrong here.

For instance:
"[%Current Item:Path%]/[%Current Item:Name%]" doesn't work
"/CHORUS/Resume New Repository/dummy doc2.txt" doesn't work
"/CHORUS/Resume New Library/[%Current Item:Name%]" didn't work

I've even tried a complete URL.
0
cdemares
Asked:
cdemares
1 Solution
 
cdemaresAuthor Commented:
I've got it!  What I did was, I created a variable for "folder value".
Then, in the String Builder I used [%Variable: folder_value%]/[%Current Item:Name%]
In this case, the Field was "Name (for use in forms)".

My mistake was in including too much information.
It doesn't need the site, or even the document library.
Just make sure the folder's there first, too.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now