This project has moved and is read-only. For the latest updates, please go here.

StartWorkflow value cannot be null

Dec 10, 2015 at 12:49 PM

I amusing the StartWofkflow funciton in office 365. I get a 500 server error and the errorstring returned just says Value cannot be null. It doesn't say which value or any other details.

My code looks like this:
       debug: true,
        operation: "StartWorkflow",
        item: file.EncodedAbsUrl,
        workflowParameters: "<Data><placeholderData>Test</placeholderData></Data>",
        templateId: "{8dd7662b-1c87-4747-acec-bb21f5675941}",
        completefunc: function(){
            console.log("workflow started");
Anyone have any ideas? I have searched around for the value I am not passing but to me my code looks the same as everyone elses and the examples..?

Thank you!
Dec 10, 2015 at 5:02 PM
Have you tried the call without passing parameters?
workflowParameters: "<root />", 
If that works for you, then you'll know where the issue is, at least. That option seems to cause people the most trouble.

Dec 10, 2015 at 5:03 PM
I have yes but same problem I'm afraid
Dec 13, 2015 at 7:15 PM
I'm not sure what else to try, but the other thing I'd check is that the item url is correct, the templateId is valid, etc.