2

I am trying to fix a paused workflow issue following this KB Article from Microsoft. http://support.microsoft.com/kb/2674684

However, when I try to run the powershell command I get this error as shown below

PS C:\Users\admin> $webapp = Get-SPWebApplication -identity http://testportal:300

PS C:\Users\admin> $webapp.UpdateWorkflowConfigurationSetttings()

Method invocation failed because [Microsoft.SharePoint.Administration.SPWebAppl
ication] doesn't contain a method named 'UpdateWorkflowConfigurationSetttings.
At line:1 char:45
+ $webapp.UpdateWorkflowConfigurationSetttings <<<< ()
    + CategoryInfo          : InvalidOperation: (UpdateWorkflowConfigurationSe
   tttings:String) [], RuntimeException
    + FullyQualifiedErrorId : MethodNotFound

Powershell says SPWebapplication does not contain the method Updateworkflowconfigurationsettings however as per MSDN SDK reference , this method exists.

Please suggest what am I missing here.

  • 7
    You've specified Settttttings with a triple t – Per Jakobsen Oct 8 '12 at 12:36
  • Jakobsen, nice catch! :) – Arsalan Adam Khatri Oct 8 '12 at 12:44
  • 2
    Thanks Per ! That was really a catch. I have sent a feedback to Microsoft on the same KB Article so that it saves poor souls like me :). – ArkoD Oct 8 '12 at 12:49
  • 1
    It is 2015 and the mentioned MSDN still contains the same typo. – Mark L Apr 17 '15 at 4:34
  • Also, may I know is above command required to be ran regularly to keep the workflow configuration up-to-date in Database? – Mark L Apr 17 '15 at 4:35
1

replace $webapp.UpdateWorkflowConfigurationSetttings()

with

$webapp.UpdateWorkflowConfigurationSettings()

as it have extra 't' in it, It is a typo in MSDN

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.