Consider the following scenario:
- You use the out of the box approval workflow with the Microsoft Office SharePoint Server 2007 picture library or with another library, such as the document library.
- You use the "Start this workflow when new item is created" rule.
- You use the "Cancel this workflow when the: Document is changed" rule.
- You upload a new image file by browsing to the file and clicking OK.
- When you are automatically redirected to the metadata screen for the file, you provide the metadata and then click OK.
In this scenario, the workflow displays the following message:
Canceled
This problem occurs when you are redirected to the /Forms/EditForm.aspx metadata page while you are uploading to a picture library.
Note This metadata page problem is not exclusive to a picture library. This problem may also occur if you allow for management of content types on any other library, regardless of what content types are enabled. Additionally, adding certain columns to other library types, such as a document library, can cause this problem to occur.
When you click
OK on the metadata entry page, the workflow sees this action as a change to the item. This unintended change to the item causes the workflow rule to cancel the workflow when the "Cancel this workflow when the: Document is changed" rule is enabled.
To work around this problem, follow these steps:
- From the picture library or another library, click Settings, and then click Picture Library Settings.
- Click Versioning Settings.
-
Click Yes for the Require documents to be checked out before they can be edited? setting, and then click OK.
After you change these settings, a
CheckIn button appears instead of an
OK button on the metadata entry page when a picture item is uploaded. The
CheckIn button does not cause the workflow to be canceled upon upload. This button still allows for successive change to the picture item to cancel the workflow as intended.
You can also work around this problem by clicking
Cancel on the metadata page. By clicking
Cancel, you receive the effect that you want on the workflow. However, this is not intuitive to the upload process and does not let the user add metadata during upload.
Another way to work around this problem is to click
Upload or
Upload Multiple Pictures. When you click one of these buttons, the metadata does not appear during the upload process.
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.