$site = get-spweb("mysiteurl") 
$list = $site.Lists["List_Name"] 
$list.SaveAsTemplate(“Forms Template”,”Inc Template”,”Template for dump data”,0)


Exception calling "SaveAsTemplate" with "4" argument(s): "The folder that would hold URL 'Lists/OOPS/Attachments/17776' does not exist on the server."

  • List attachments are stored in folders hidden in the list with the list items id. Find the list item that gives you an error an check if you see something weird with the attachment. And on the other hand, your quotes characters are messed up when copying from a bad code preview. Replace “ and ” with normal quotes. (") – Christoffer Oct 13 '17 at 6:49
  • I am just trying to save the list as a template without data, why it loops through the complete list? – Achiever SP Oct 13 '17 at 7:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.