,

SharePoint Create New Folder Programatically – 0x8007007b Exception

When you are creating New Folder in SharePoint list through UI, SharePoint automatically trims white-space from folder names. But, if you attempt to create New Folder programatically, an Exception can occur:

<nativehr>0x8007007b</nativehr><nativestack></nativestack>

This error means: The file name, directory name, or volume label syntax is incorrect. You can simply trim white-space from folder name and the error should be gone.


2 responses to “SharePoint Create New Folder Programatically – 0x8007007b Exception”

  1. Alex Avatar
    Alex

    Thanks for sharing, solved my problem!

  2. John Avatar
    John

    Hello Marek, we got this error, thank you very much for sharing this information, it saved us a lot of time ! merci !

Leave a Reply

Your email address will not be published. Required fields are marked *

About me

I am web developer, tech enthusiast and fitness junkie 🙂

Calendar

June 2024
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930