Document library workflow prevents document editing
-
Wednesday, August 22, 2012 1:11 PM
I have a custom VS 2010 workflow on a document library that uses an InfoPath task form. It's working pretty well, but there is one thing I can't figure out.
An event receiver catches a certain property has changed and then starts the workflow. The workflow then creates a task, and the task uses an custom InfoPath form. That all works as I expect. However, while the workflow is in progress, if the user tries to edit the document properties (selects it from the list and clicks edit properties on the toolbar), I get an error when SP tries to open the edit dialog. It's like SP can't find the default dialog while the workflow is in progress (at least on a workflow that uses a custom task form). Can anyone offer me a clue as to why this is? I'd be fine just disabling editing while a workflow is running, but I haven't been able to figure out how to do that. Ideally, I'd like to use an InfoPath custom property edit form also, but it seems that's not an option for a document library?
Thanks,
Bill
All Replies
-
Thursday, August 23, 2012 6:44 AMModerator
Hi bill-sd,
For this issue, would you please try to not use the event receiver, and start the workflow to check whether when workflow is in progress, the document library edit form is not editable? If it is working as expected, then event receiver may cause this issue. Would you please share the error message you met when open the edit form?
Also, “I’d like to use an InfoPath custom property edit form”, do you mean that you want to use custom InfoPath form as the document item edit form? SharePoint by default doesn’t provide this option for library.
Thanks,
Qiao Wei
TechNet Community Support
- Marked As Answer by Qiao WeiMicrosoft Contingent Staff, Moderator Sunday, September 02, 2012 4:53 AM
-
Monday, August 27, 2012 5:18 PM
Thanks again for your suggestions.
At this point I have to get something out, so I think I will tell users not to try and edit while a workflow is running. I'm sure I will get other requests so I will work on everything at the same time.
The error I'm getting when I try to edit is:
An unexpected error has occurred.
Troubleshoot issues with Microsoft SharePoint Foundation.
Correlation ID: 24793bbf-46b7-448b-9282-fc4ae0666e8f -
Friday, August 31, 2012 5:16 AMModerator
Hi bill-sd,
For the error message you posted, it would be better to go to SharePoint ULS log located at 14/Logs to find more information of this issue, there will be log information based on the CorrelationID value.
Thanks,
Qiao Wei
TechNet Community Support
- Edited by Qiao WeiMicrosoft Contingent Staff, Moderator Friday, August 31, 2012 5:17 AM
- Marked As Answer by Qiao WeiMicrosoft Contingent Staff, Moderator Sunday, September 02, 2012 4:53 AM

