SharePoint 2010 Workflows error on SharePoint 2016 Server

Katerina Michael 1 Reputation point
2021-07-13T14:59:43.17+00:00

Hello,

When I try to publish a SharePoint 2010 workflow I get the below error:

(-1, -1) Compilation failed. The type name:"Microsoft.SharePoint.Workflow.SPItemKey, Microsoft.SharePoint" on the property:"BaseType" of type:"System.CodeDom.CodeTypeReference" is not a valid language-independent type name.
Parameter name: typeName)

I am on SharePoint 2016 On-premise so I guess that 2010 workflows should still work.

Any idea what causes this error and how can be resolved?

Thanks in advance for your help.

Katerina

SharePoint Workflow
SharePoint Workflow
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Workflow: An orchestrated and repeatable pattern of business activity, enabling data transformation, service provision, and information retrieval.
583 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Elsie Lu_MSFT 9,796 Reputation points
    2021-07-14T09:51:02.483+00:00

    Hi @Katerina Michael ,

    This “The list of workflow actions on the server references an assembly that does not exist” error usually occurs in case of:

    • The Server/PC does not have enough memory,
    • ShareCache issue,
    • In some cases, This error comes up if the current account doesn’t have local privileges.
    • “WSS.Actions” file contains a reference to a custom action.

    Solution:
    1.The Server/PC does not have enough memory
    This error may occur if the system does not have enough memory,

    Try to close some programs to free some memory space.
    If you are working on VM, you will need to check its memory allocation.
    if the memory is less than 6 GB, try to scale it up.

    2.Clear SharePoint Designer Cache
    Try to clear the SharePoint Designer Cache of the following folders

    %USERPROFILE%\AppData\Local\Microsoft\WebsiteCache
    %USERPROFILE%\AppData\Roaming\Microsoft\SharePoint Designer\ProxyAssemblyCache
    %USERPROFILE%\AppData\Roaming\Microsoft\Web Server Extensions\Cache
    Restart the SharePoint Designer

    3.The current account doesn’t have local privileges.
    If you are working on the Server, try to add the current user to Local Administrator Group.

    4.“WSS.Actions” file contains a reference to a custom action.
    If the problem still exists that means the Workflow actions has been extended with a custom action that developed in Visual Studio, These custom actions are loaded when your workstation reads the WSS.ACTIONS file on the server.

    So to overcome this issue, try to delete “WSS.Actions” file as the following.

    Please refer to this blog for more information:
    The list of workflow actions on the server references an assembly that does not exist
    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.