Could not deserialize object. The type 'Microsoft.SharePoint.WorkflowActions.WithKey.SubmitFileActivity' could not be resolved.

Shardul Pasare 1 Reputation point
2021-02-09T12:49:24.85+00:00

Hello,
Unable to use out of box SharePoint designer action - send document to repository. Facing this issue on SP 2016 on premise environment. Can anybody please help on this.

Migrated workflow showing error - Could not deserialize object. The type 'Microsoft.SharePoint.WorkflowActions.WithKey.SubmitFileActivity' could not be resolved.

Thanks and regards,
Shardul Pasare

Microsoft 365 and Office SharePoint Server Development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Allen Xu_MSFT 13,861 Reputation points
    2021-02-10T03:09:34.317+00:00

    Hi @Shardul Pasare ,

    • Firstly, please clear the SharePoint Designer cache via the following steps:
      Close SharePoint Designer if it is open -> Using Windows explorer, go to: %USERPROFILE%\AppData\Local\Microsoft\WebsiteCache, delete everything inside that folder -> Now go to: %APPDATA%\Microsoft\Web Server Extensions\Cache, delete the contents of that folder as well.
    • As this is a migrated workflow, You may need to ensure you are adding the authorized type node to the correct place since its changed in 2013 to the targetFx node.
      Please take a reference to this article: SharePoint 2013 Custom Workflow Actions Don’t Run Properly (Could not deserialize object)

    If an 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.