“If you’re not making some notable mistakes along the way, you’re certainly not taking enough business and career chances.”
After creating a custom "Export to Excel" button on the SharePoint page as in my previous post:
we encountered an issue, where one of the user received "An unexpected error has occurred. Changes to your data cannot be saved" in the excel sheet to which the data has been exported.
But I was able to export the data using "System Account" without any issue!
The user has full control over the site and there should not be any permissions related issues.
What could be the issue then?
It might seem silly but this is what happened. Humans make mistakes :)
My fellow team mate who had been asked to create the view, created a "Personal" view instead of creating a "Public" view !
"Personal" view is intended only for the user account through which the list view is created and cannot be accessed by the other users. In our case, the "Personal" view was created using the "System Account" ("Personal" views behave the same even if it was created with another user id not only with System Account) and that is why I was able to export using the System Account.
The issue has been resolved by just creating a "Public" view and assigning the View ID in the script as in the post: https://nethrasb.blogspot.com/2020/05/export-to-spreadsheet-option-in.html
Eureka! It works !
Mistakes Grow Your Brain :) :) :)
Happy SharePointing!!!
Comments
Post a Comment