Unable to Create New List from Existing SharePoint List - List subaction 22

Lutterbeck, Petra 26 Reputation points
2022-01-12T11:02:07.967+00:00

I'm creating a new Sharepoint List from a existing List, based on Template Issue Tracker and I'm getting following error:
Action 1 (createSPList) is invalid. List subaction 22 (addSPView) is invalid. Parameter viewDataXml has an invalid value.
What should I need to check?

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,589 questions
{count} votes

5 answers

Sort by: Most helpful
  1. CaseyYang-MSFT 10,426 Reputation points
    2022-01-13T03:29:57.787+00:00

    Hi @Lutterbeck, Petra ,

    Did you delete Issue tracker list default view(All Items)? Pey my test, i deleted All Items view then i got this error when try to create list from exsiting list.

    164566-1.png 164555-2.png

    You could create custom list template as a workaround. This article is an overview about how to create and manage custom list templates using Microsoft PowerShell: Creating custom list templates.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.

    1 person found this answer helpful.

  2. Cosara, Andrei 6 Reputation points
    2022-01-13T12:12:29.55+00:00

    I worked around this by exporting the original list to Excel, then creating the new list from the Excel. Colum setting won't transfer (like choice definitions for choice data type), but all the data did transfer. You can try this until someone figures out what is causing the error.

    0 comments No comments

  3. Patrice Lagacé (CCSMTL) 1 Reputation point
    2022-01-13T19:51:03.707+00:00

    I had the same error (see ref at bottom of this comment).

    I did three actions and I believe its the third one that made it to work but I let you judge

    1- Delete a record having mandatary fields not filled in (showing errors)
    2- Re-index the list in advanced feature setup
    3- * Delete the JSON code in the advance mode of the last column I had changed formatting code and went back to original « Conception mode »

    And then the copy of the list start to work again.

    I know some of you said you did not change anything lately in your list but for me it did fix my copy issue

    Ref : error = Action 1 (createSPList) is invalid. List subaction 22 (addSPView) is invalid. Parameter viewDataXml has an invalid value

    0 comments No comments

  4. Yoshinori Kondo 1 Reputation point
    2022-01-14T08:31:16.7+00:00

    I had the same problem and requested for an answer from microsoft support.
    At present, there has been a report that this problem has been restored.

    0 comments No comments

  5. Johan Falk 1 Reputation point
    2022-09-21T08:20:08.403+00:00

    Hi!
    I have the same problem, trying to create a new list from a list i already have, but i get the same code as you guys did.
    Ref : error = Action 1 (createSPList) is invalid. List subaction 22 (addSPView) is invalid. Parameter viewDataXml has an invalid value

    So i created a empty list and tried to copy that one, same results. Any idea?

    /Johan

    0 comments No comments

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.