Home » SharepointRSS

Access Denied/The workflow could not copy the item workflow error after Sharepoint 2010 upgrade

We have a sharepoint designer workflow that copies a document from one library to another on the same site. 

Before the upgrade to 2007 it worked fine, but now with 2010 it gives an error and cancels the workflow when it gets to the copy list item step.

 

The error on the workflow page:

The workflow could not copy the item. Make sure the source and destination lists have the same columns and column settings.  Access Denied

 

Specifically it is the "copy list item current item to documentlibrary" sharepoint designer workflow action.

 

I have given the system account full permissions to the library and double checked that all columns are the same in both libraries.

These are the verbose trace logs:

 

09/01/2010 09:46:04.05 	w3wp.exe (0x17C4)            	0x093C	SharePoint Foundation     	Workflow Infrastructure    	72er	Medium 	System.UnauthorizedAccessException: <nativehr>0x80070005</nativehr><nativestack></nativestack>Access denied.   at Microsoft.SharePoint.SPFile.UpdateInternal(Boolean migrationSemantics, Boolean reGhost)   at Microsoft.SharePoint.Workflow.SPWinOEWSSService.CommitCopyFile(Transaction txn, Object[] transData)	 
09/01/2010 09:46:04.05 	w3wp.exe (0x17C4)            	0x093C	SharePoint Foundation     	Workflow Infrastructure    	72fe	High  	Error in commiting pending workflow batch items: System.UnauthorizedAccessException: <nativehr>0x80070005</nativehr><nativestack></nativestack>Access denied.   at Microsoft.SharePoint.SPFile.UpdateInternal(Boolean migrationSemantics, Boolean reGhost)   at Microsoft.SharePoint.Workflow.SPWinOEWSSService.CommitCopyFile(Transaction txn, Object[] transData)   at Microsoft.SharePoint.Workflow.SPPendingWorkBatch.Commit(Transaction transaction, ICollection items)	 
09/01/2010 09:46:04.04 	w3wp.exe (0x17C4)            	0x093C	SharePoint Foundation     	General            	8kh7	High  	<nativehr>0x80070005</nativehr><nativestack></nativestack>Access denied.	 
09/01/2010 09:46:04.04 	w3wp.exe (0x17C4)            	0x093C	SharePoint Foundation     	General            	9mpn	High  	File exception: System.UnauthorizedAccessException: <nativehr>0x80070005</nativehr><nativestack></nativestack>Access denied.   at Microsoft.SharePoint.Library.SPRequest.UpdateFileOrFolderProperties(String bstrWebUrl, String bstrWebRelativeUrl, Object varProperties, Int32 fMigrationSemantics, Int32 fReGhost, Byte& piLevel)   at Microsoft.SharePoint.SPFile.UpdateInternal(Boolean migrationSemantics, Boolean reGhost)	 



Any help would be appreciated, thank you!
 

2 Answers Found

 

Answer 1

Does the user who started the workflow  have the privilege to copy  the file from one lib to the other ? (not the ystem account)

By default Sharepoint Designer workflows run with the current user privilege. (I haven't tested the specific case of this activity).

 

 

Answer 2

Hi jayarreye,

 

Thanks for your post.

I think it’s may be because that the target list id is changed.  You’d better check the workflow  file for troubleshooting. Here are the steps.

1.       Open the site using sharepoint  Designer 2010;

2.       Select “All Files” in the left navigation of  SPD, and then click “Workflows”;

3.       Find the custom workflow and open it, you will see a file, whose name is like : workflowname.xoml;

4.       Open it with the Notepad, find the “Copy list item” step in the file;

5.       You can get the ‘ToListId’ and else values from it.;

6.       Now compare it with the actual value of List ID.

 

More information about this:

http://nickgrattan.wordpress.com/2007/10/17/applying-a-sharepoint-designer-workflow-to-multiple-lists/

http://agiledirect.wordpress.com/2008/07/04/packaging-and-re-using-sharepoint-designer-workflows-part-1/

 
 
 

<< Previous      Next >>


Microsoft   |   Windows   |   Visual Studio   |   Follow us on Twitter