Share via

SPOnline Management shell - set UserDefinedWorkflowMaximumComplexity property

Anonymous
2018-01-31T19:49:06+00:00

We are in SP Online and using a SP designer 2010 workflow that has multiple Start Approval process actions. When compiling the workflow, it errors out as "Errors were found when compiling the workflow. The workflow files were saved but cannot be run. Unexpected error on server associating the workflow".

I see solutions by increasing the UserDefinedWorkflowMaximumComplexity property for the webapplication. I do not see an option to set this in SP Online via Online Management shell. Any advise would be appreciated.

Thanks,

Anitha

Microsoft 365 and Office | SharePoint | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2018-02-08T21:12:05+00:00

Hi Neha, Thanks for the response! I had to work around and reuse the approval task to solve the issue.

Was this answer helpful?

0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2018-02-03T10:07:38+00:00

    Hi Anitha,

    Did you check the above reply? Please update us when you have time.

    Regards,

    Neha

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2018-02-01T05:05:30+00:00

    Hi Anitha,

    The property UserDefinedWorkflowMaximumComplexity can be used if you are using SharePoint server 2013/2010. Since you are using SharePoint online, this may not work for you. Please check this article for reference.

    The multiple Start Approval Process action contains multiple nodes, this makes compilation restricted. At that point, the larger workflows need to be restructured to either have more reusable pieces or be broken out into smaller individual small workflows.

    Additionally, you can also try using SharePoint 2013 workflow platform type to create the workflow, see if this works.

    Thanks,

    Neha

    Was this answer helpful?

    0 comments No comments