StartWorkflow value cannot be null

Dec 10, 2015 at 11:49 AM

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 4: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 4:03 PM
I have yes but same problem I'm afraid
Dec 13, 2015 at 6: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.