Adding a view #1205
Unanswered
matjazreberc
asked this question in
General
Adding a view
#1205
Replies: 1 comment 1 reply
-
I'm suspecting this is a timing issue, the content type sync from the hub is not completely done before you try to use it in a view @matjazreberc. I would suggest moving that part of the code later in your flow or in case of an error perform a delay and try again. Alternatively you can add some code that checks for the presence of the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
When I try to add a view to list:
https://pnp.github.io/pnpcore/using-the-sdk/lists-views.html#adding-a-view
I get an error:
{ "error": "Column 'DevelopmentType' does not exist. It may have been deleted by another user.", "message": "SharePoint Rest service exception", "stackTrace": " at PnP.Core.Services.BatchClient.ExecuteSharePointRestInteractiveAsync(Batch batch)\r\n at PnP.Core.Services.BatchClient.ExecuteSharePointRestBatchAsync(Batch batch)\r\n at PnP.Core.Services.BatchClient.ExecuteBatch(Batch batch)\r\n at PnP.Core.Model.BaseDataModel
1.BaseAdd(ApiCall postApiCall, Func2 fromJsonCasting, Action
1 postMappingJson)\r\nat PnP.Core.Model.BaseDataModel
1.AddAsync(Dictionary
2 keyValuePairs)\r\nat PnP.Core.Model.SharePoint.ViewCollection.AddAsync(ViewOptions viewOptions)\r\n
at PnP.Core.Model.SharePoint.ViewCollection.Add(ViewOptions viewOptions)\r\n
}`
It doesn't happen every time, most of the time it works.
The column is defined in "Content type hub" and before I create view I make this Content type available in Site/List.
What could be the problem?
Thank you, Matjaz
Beta Was this translation helpful? Give feedback.
All reactions