Validation issues in Visio (SharePoint 2010 Workflow platform)

Use this reference to help resolve validation issues when you export a SharePoint workflow from Visio Professional 2013 to SharePoint Designer 2013. This article describes validation issues that might arise when you use the SharePoint 2010 Workflow platform in SharePoint Designer 2013.

Note

SharePoint 2010 workflows have been retired since August 1, 2020 for new tenants and removed from existing tenants on November 1, 2020. If you’re using SharePoint 2010 workflows, we recommend migrating to Power Automate or other supported solutions. For more info, see SharePoint 2010 workflow retirement.

Introduction

When you export a SharePoint workflow from Microsoft Visio Professional 2013 to Microsoft SharePoint Designer 2013, the diagram must first be validated. If the workflow diagram is not valid, an Issues window appears that includes a list of issues that must be repaired before the workflow can be exported..

This article includes a description, example, and suggested action for each of the workflow validation issues that you can receive in Visio Professional 2013. If you receive notice of an issue during validation, find the issue name in the list below, use the example to help identify where the problem is, and then follow the suggested action to resolve it.

A custom action cannot be added to a workflow diagram

Message:

A Custom action cannot be added to a workflow diagram. The Custom action can only be generated when importing workflow from SharePoint Designer.

Example:

A custom action cannot be added.

Suggested action:

If you want to add an action to your workflow and a master shape does not exist for it in the stencil, do not create your own shape or import one from a different stencil. Instead, use an existing shape, and then use the Add Comment feature of the shape to specify the intended behavior.

A Custom condition cannot be added to a workflow diagram

Message:

A Custom condition cannot be added to a workflow diagram. The custom condition can only be generated when importing workflow from SharePoint Designer.

Example:

A custom condition cannot be added

Suggested action:

If you want to add a condition to your workflow and a master shape does not exist for it in the stencil, do not create your own shape or import one from a different stencil. Instead, use an existing shape, and then use the Add Comment feature of the shape to specify the intended behavior.

A Compound condition cannot be manually added to a workflow diagram

Message:

A Compound condition cannot be manually added to a workflow diagram. The compound condition can only be generated when importing workflow from SharePoint Designer.

Example:

A compound condition cannot be manually added

Suggested action:

If you want to add a condition to your workflow and a master shape does not exist for it in the stencil, do not create your own shape or import one from a different stencil. Instead, use an existing shape, and then use the Add a Comment feature of the shape to specify the intended behavior.

Duplicate connections exist between workflow shapes

Message:

Duplicate connections exist between workflow shapes.

Example:

Duplicate connections exist between shapes

Suggested action:

Remove the redundant connector by selecting and deleting it.

Loop back to parent shape is not allowed

Message:

Loop back to parent shape is not allowed.

Example:

Loop back to parent shape is not allowed

Suggested action:

Neither Visio Professional 2013 nor SharePoint Designer 2013 supports workflows with loops. Check your workflow for loops, and delete the looping connections. If you want to create a SharePoint workflow that includes a set of looping steps, you must create the workflow in Visual Studio.

Parallel activities that are also sequential are not allowed

Message:

Parallel activities that are also sequential are not allowed.

Example:

Parallel activities that are also sequential are not allowed.

Suggested action:

Activities can be either parallel or sequential, but not both simultaneously. For parallel activities, remove the sequential connectors. For sequential activities, remove the parallel connectors. Sometimes, simultaneously parallel and sequential activities can be difficult to identify. The following examples show other common instances of parallel and sequential arrangement and offer alternative arrangements.

Example:

Avoid pointing to an activity from multiple paths

Suggested action:

To avoid having connectors point to the same activity from multiple paths, try duplicating the activity:

To avoid having connectors point to the same activity from multiple paths, try duplicating the activity.

Example:

Example of parallel activities that are also sequential.

Suggested action:

If dealing with parallel blocks in sequential steps (usually found in workflows constructed by using SharePoint Designer), try using the "Add a Comment" shape between the two parallel blocks so that the steps are separated cleanly.

Try using the "Add a Comment" shape between the two parallel blocks so that the steps are separated cleanly.

The condition shape does not have connections labeled with Yes or No

Message:

The condition shape does not have connections labeled with Yes or No.

Example:

Condition shape does not have yes/no connections

Suggested action:

Right-click the connector to assign a "Yes" or "No" label.

The condition shape must have at least one outgoing connection with label Yes or No

Message:

The condition shape must have at least one outgoing connection with label Yes or No.

Example:

Condition shape must have an outgoing connection

Suggested action:

Ensure that the condition shape has at least one outgoing connector attached to another workflow shape.

The connector is not a SharePoint Workflow connector

Message:

The connector is not a SharePoint Workflow connector. Ensure the correct connector is used by using the connector tool or AutoConnect.

Example:

Ensure the correct connector is used

Suggested action:

Avoid reusing connectors from other diagrams, because they are not necessarily designed to be used with SharePoint workflows. Delete the selected connector, and use the connector tool or AutoConnect to replace it with a new connector.

The connector must be connected to two workflow shapes

Message:

The connector must be connected to two workflow shapes.

Example:

Connector must be connected to two workflow shapes

Suggested action:

Remove dead-end connectors or attach them to a second shape.

The diagram must only have one workflow and one Start shape

Message:

The diagram must only have one workflow and one Start shape.

Example:

Diagram must only have one workflow and one start

Suggested action:

All paths must originate from the same Start shape. Remove extra Start shapes, and arrange the connectors so that the path starts in one place.

The shape is not a SharePoint workflow shape. Only SharePoint workflow shapes can be connected in a workflow

Message:

The shape is not a SharePoint workflow shape. Only SharePoint workflow shapes can be connected in a workflow.

Example:

The shape is not a SharePoint workflow shape

Suggested action:

Only workflow shapes from the SharePoint workflow stencils can be used in the Microsoft SharePoint Workflow template. Other flowchart shapes are not recognized, and they prevent the workflow from being exported to SharePoint Designer 2013.

The Start shape must not have incoming connections

Message:

The Start shape must not have incoming connections.

Example:

The start shape must not have incoming connections

Suggested action:

Remove the incoming connector to the Start shape.

The Terminate shape must not have outgoing connections

Message:

The Terminate shape must not have outgoing connections.

Example:

Terminate shape must not have outgoing connections

Suggested action:

Remove the outgoing connector from the Terminate shape.

The workflow must have a Start shape

Message:

The workflow must have a Start shape.

Example:

The workflow must have a start shape

Suggested action:

Add a Start shape to the beginning of the workflow, and connect it to the first activity.

The workflow shape is not connected to a Terminate shape

Message:

The workflow shape is not connected to a Terminate shape.

Example:

Workflow shape is not connected to a terminate

Suggested action:

If the workflow does not have a Terminate shape, add one and connect it to the end of the workflow. If a workflow shape is missing a connection to another workflow shape (see example), you can remove it or connect it to another workflow shape.

The workflow shape is not connected to the workflow

Message:

The workflow shape is not connected to the workflow.

Example:

Workflow shape is not connected to the workflow

Suggested action:

If the workflow shape is necessary, add connectors to attach it to the workflow path. Otherwise, delete the shape.

Workflow nesting levels must not exceed a maximum of 10

Message:

Workflow nesting levels must not exceed a maximum of 10.

Suggested action:

Visio Professional 2013 can recognize a maximum of 10 levels of nested workflow activities. Rearrange the workflow to reduce complexity by eliminating activities or dividing the workflow path into more than one branch.

See also