I have a requirement where i have to run a workflow 'daily' at specific instance of time. I am consuming workflow.asmx webservice (using call a webservice action) to achieve my aim. with the following soap request:
<?xml version="1.0" encoding="utf-8"?>
upon running the action i receive the following response:
<soap:Fault xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>soap:Server</faultcode><faultstring>Server was unable to process request. ---> Cannot find workflow '00000000-0000-0000-0000-000000000000'.</faultstring><detail /></soap:Fault>
P.S: it is a list workflow.
Please guide if i am missing something.
One option is to use a site workflow that is scheduled to your specs, and in it use the Start Workflow action. You could also call the workflow web service, but because it is being called from a scheduled workflow you wouldn't have to specify the schedule in the webservice call.
I am trying to do the same thing as Mr. Murad but the error I get is <soap:Fault xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>soap:Server</faultcode><faultstring>Server was unable to process request. ---> Value does not fall within the expected range.</faultstring><detail
Is it necessary to fill in the fileUrl in the Web Service Input section? Because I do not have a file. I am just trying to get a site workflow to start a list workflow every day, using the StartWorkflow web method in workflow.asmx web service. So I have a workflowName to enter, but no fileUrl.
No, i do not believe you need the fileurl property. Please see Start a Workflow using a Web Service for more information and a walkthrough to use the web method. Let us know if this doesn't help.
Ok, it's good to know what you have already tried. Maybe start another post with some more information about your case? Could you post a screen shot of your web service call so we can see your configuration?
Muhammad, could you reiterate what you need the workflow schedule to do? Do you need to schedule a site workflow once, or many workflows many times? Or can a site workflow that is scheduled start other workflows?
I am not Muhammad, my name is Pat. I wanted to schedule a site workflow to run one time each day. When it ran, it was supposed to start a list workflow that would run through all items in a list, check to see if the items were more than 6 months old, and send a reminder email to the initiator if they were more than 6 months old. I cannot get the StartWorkflow web method to start the list workflow; only the StartWorkflowOnListItem web method works.
If you are starting the workflow on a Document Library, then you provide the URL of the document in the FileUrl parameter. (I was thinking of a list item start and was confused about the FileURL. It is definitely needed for doc lib workflows.) If you need to start a workflow on a list item, then use the method StartWorkflowOnListItem instead.