Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am having trouble initiating a form action workflow in SPD 2010. I am trying to save an item to an audit list prior to deleting it. I selected "Create a List Item" for the action in the workflow. None of the fields are required in the target list. I selected a field and a static value. However, When I click on the delete link, I get a general error message in the browser from the hosting site. Thank you.

PS. The DVWP is on a web part page. The error message directs me to the web part maintenance page where it says that there are no web parts currently associated with this web part zone.

Richard.

share|improve this question
add comment

2 Answers 2

Richard - Looking at another recent post of yours (http://www.sharepointoverflow.com/questions/5659/save-item-prior-to-delete) I had an idea that may help.

What you could do is create a custom permission level in SharePoint and assign it to the appropriate users for this list. The permission level should disallow the ability for the end user to delete items from the list. Instead you could add a "Delete this item" checkbox to the list to flag an item as deleted.

Then you can create a SPD workflow that runs when an item is modified. In the workflow, you could check to see if that deleted field is checked. If so, write an entry to the other list as you mention above, then delete the current item from the list.

I don't know that this will fix the problem you mention above except that now you will not have to use the delete link.

share|improve this answer
add comment
up vote 0 down vote accepted

Thanks Rob. I was able to solve the error. Delete the $Pos variable created by SPD 2010 in the automode template. Then, follow the instructions here:

http://www.endusersharepoint.com/2010/06/10/sharepoint-extending-the-dvwp-%e2%80%93-part-9-oops-failed-setting-processor-stylesheet/

The workflow will then work! Thanks again.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.