Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Workflows in SPD not working properly

  Asked By: Michael    Date: Dec 02    Category: Sharepoint    Views: 3844

I have been trying to create a workflow on a document library, that will do two
things. When a document is assigned a major version, I would like to send an
e-mail, and to copy the file to another document library in the same site.
I have tried both aspects individually, and here are the problems I am
First, I check that the document status is "Approved" (I have not eliminated
this as the cause of the issue yet.)
I can set the workflow to copy the file to another doc library, and when I check
the workflow, no errors are returned. However when the check on the document
approval status is met, exactly nothing happens. The workflow column in the
document library states that the workflow was completed successfully, but the
file is not copied to the other document library.
When I try to send an e-mail, any e-mail address I enter gets rejected when I
"check" the workflow. E-mail is working properly in the farm, as all alerts are
sent successfully, as well as all task related and OOB workflow related
e-mails. It is only the e-mail in the SPD workflow that is not working
properly. If I ignore "checking" the workflow, it compiles normally, but I get
the same end result as the file copy action. It states, "completed" but nothing
has happened.
If I check the workflow logs for the document library there are no events
Has any one else run into this problem? I would like to get this resolved,
quickly, because if I can get this working properly, I will be a hero at my



7 Answers Found

Answer #1    Answered By: Cheyenne Jacobson     Answered On: Dec 02

Which action  are you using to check  the document  status? You should be using
the 'Wait for Field Change in Current Item' action. Otherwise it just checks
the status  when you start the workflow, finds that its not approved  yet, and
completes without doing any actions since its not approved.

Answer #2    Answered By: Makayla Lewis     Answered On: Dec 02

I have selected to run  the workflow  when an item is created or changed. In the
first step of the workflow, for conditions, I have "If Approval Status equals
0;#approved" as these were the selections listed for the item. I figured they
made the most sense to choose, and those were the options I was offered for the
"Approval Status" column.

Answer #3    Answered By: Miranda Scott     Answered On: Dec 02

You need to setup the first  step with no condition and an action  of wait for a
condition change in the item. Then in step 2 check  for the approval status
being approved.

Answer #4    Answered By: Deirdre Macias     Answered On: Dec 02

Well, now it does something.. Instead of moving the file, or sending an e-mail,
I get the follwing error message...
8/13/2008 3:11 PM Error System.ArgumentException: Value does not fall within
the expected range.
at Microsoft.SharePoint.SPFieldCollection.GetField(String strName, Boolean
at Microsoft.SharePoint.SPListItem.GetValue(String strName, Boolean
bThrowExceptio Error
8/13/2008 3:11 PM Error System Account An error has occured in Issue Working

Answer #5    Answered By: Kala Solomon     Answered On: Dec 02

Sounds like a nonexistent field name. Any chance you're using the Display
Name instead of the real thing?

Answer #6    Answered By: Madison Clark     Answered On: Dec 02

Well, I don't even know how to select one from the other, there is only one
choice for "Approval Status" and this column  is set  by the approval workflow, so
I am presented with a dropdown list of the available choices.
Could it be an issue  when copying the file  that the metadata columns are
different from each document  library? (I was under the probably mistaken
impression that the file would transfer and what metadata did match would be
sent but the rest would be ignored.)

Answer #7    Answered By: Dhanraj Saxsena     Answered On: Dec 02

Solved my own problem  after that last step. I had the 1st step to watch the
field like you recommended, but had neglected to take out the "conditions" on
step two of the workflow. In essence it was checking  the status  twice for the

Didn't find what you were looking for? Find more on Workflows in SPD not working properly Or get search suggestion and latest updates.