Unable to create a new folder in document library of SharePoint 2010
Hi There,
Need some help regarding an issue which is occurring after migration from SP 2007 to 2010.
We have recently migrated a site to SP 2010, after migration whenever i tried to create a new folder in a document library it gives me an error message below
SPException: Can not find the form to create default data for the list
Microsoft.SharePoint.Utilities.SPUtility.ThrowSPExceptionWithTraceTag (UInt32 TagId, ULSCat traceCategory, resourceId String, Object [] resourceArgs) 28098007
Microsoft.SharePoint.ApplicationPages.ListFormRedirect.InitializeQueryStringMembers () 1764
Microsoft.SharePoint.ApplicationPages.ListFormRedirect.OnLoad (EventArgs e) +25
System.Web.UI.Control.LoadRecursive () 66
System.Web.UI.Page.ProcessRequestMain (Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 2428
All the document libraries which are created with the custom list template has this problem.
Moreover, I have verified and found Upload.aspx page is available in Forms folder of a document library.
Can someone help me in resolving this issue.
Thank you in advance.
Vikram
vikram padigala
Hi,
All the document libraries which are created with the custom list template has this problem.
Did you mean you had a custom library template?
Did the issue occur in the library which created use the out of the box template, such as use the Document Library template?
You can check with the OOB template library to test whether they had the same issue.
If the OOB template library works well, the issue may be related to the custom library template.
You can try to recreate a new custom template to check whether it works.
To quickly and accurately find the issue , you can also check the event log and ULS log to see if anything unexpected occurred.
For SharePoint 2010, by default, ULS log is at
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support
Similar Messages
-
Create folder in Document Library using Sharepoint 2010 Client Object Model
I would like to check for the existence of a folder in s Sharepoint 2010 Document Library and if the folder is not found, create it. (I would then subsequently programmatically upload documents to that folder -- which I have figured out). Can someone
please help me figure out how to check for the extistence of and then create a folder using the Sharepoint 2010 Client Object Model?You can use this:
public static void CreateFolder_ClientOM(string listName, string folderName)
ClientContext clientContext = new ClientContext("http://basesmc2008");
Web web = clientContext.Web;
List list = clientContext.Web.Lists.GetByTitle(listName);
clientContext.Load(clientContext.Site);
string targetFolderUrl = listName + "/" + folderName;
Folder folder = web.GetFolderByServerRelativeUrl(targetFolderUrl);
clientContext.Load(folder);
bool exists = false;
try
clientContext.ExecuteQuery();
exists = true;
catch (Exception ex)
if (!exists)
ContentTypeCollection listContentTypes = list.ContentTypes;
clientContext.Load(listContentTypes, types => types.Include
(type => type.Id, type => type.Name,
type => type.Parent));
var result = clientContext.LoadQuery(listContentTypes.Where
(c => c.Name == "Folder"));
clientContext.ExecuteQuery();
ContentType folderContentType = result.FirstOrDefault();
ListItemCreationInformation newItemInfo = new ListItemCreationInformation();
newItemInfo.UnderlyingObjectType = FileSystemObjectType.Folder;
newItemInfo.LeafName = folderName;
ListItem newListItem = list.AddItem(newItemInfo);
newListItem["ContentTypeId"] = folderContentType.Id.ToString();
newListItem["Title"] = folderName;
newListItem.Update();
clientContext.Load(list);
clientContext.ExecuteQuery();
Blog | SharePoint Field Notes Dev Tool |
ClassMaster -
I am unable to create a new folder on either of my auxillary disk drives. I can access the files and folders that were there when I transferred one of the drives from a PC. Time machine uses one for backup and I want to use the other to store photos which are large files. An help would be appreciated.
Thanks for the reply. If I reformat the drive will I be able to access the files on it from the MAC. I do not share the drive with a PC. The files were originally created on a PC which I no longer use. I do want to continue to access the files put there by the PC. I would like to not have to copy them over to the MAC hard drive just to use them. The second aux drive is new and works fine because it was formatted by the MAC. I can drag and drop files there and work with just as if they were on the internal drive.
-
How do you create a new folder in the library folder
How do you create a new folder in the library?
In the user Library? Open Finder and select Go then press the Option key. In the list you will see your user Library folder (underneath Home). Click it to open it. Now you can add a folder inside. You can left click/hold and drag the Library icon at the top of the Finder window to your Finder Sidebar so it's always avaliable.
-
CS3 - Unable to create a new folder - Help anyone!
When I try to create a new folder in the Files Panel I keep getting an error message saying ' Sorry, creating a new folder failed'. Can anyone help me resolve this issure as I can't go forward with the trainning without it.
many thanks
Dianewardess wrote:
When I try to create a new folder in the Files Panel I keep getting an error message saying ' Sorry, creating a new folder failed'. Can anyone help me resolve this issure as I can't go forward with the trainning without it.
many thanks
Diane
I don't know what the issue could be but you don't necessarily HAVE to create a new folder through the site panel. You can create a new folder anywhere and put it in the site folder. The site panel IS important if you need to move files around. If you don't move files around within the site panel the links wont update. -
Retrieve all folder & sub folder from document library in sharePoint 2013
Hi,
I want to retrieve all the folder and sub folder from document library and bind it to the dropdownlist using server object model.
I used the below query to get all folder and sub folder.\
query.Query = @"<Query><Where><Eq><FieldRef
Name='FSObjType' /><Value Type='Lookup'>1</Value></Eq></Where></Query>";
query.ViewAttributes
="Scope='RecursiveAll'";
query.ViewFields
= "<FieldRef Name='Title'/>";
query.ViewFieldsOnly
= true;
but when I bind result with the dropdownlist,it displays the output as below
Please Help
Thank YouHi,
Thanks for posting your issue, Kindly try out below mentioned CAML query to get all the Folders and Subfolders from Document Library
<Query>
<Where>
<Contains>
<FieldRef Name='FileLeafRef' />
<Value Type='Text'>token</Value>
</Contains>
</Where>
<OrderBy><FieldRef Name='FileDirRef' /></OrderBy>
</Query>
<ViewFields>
<FieldRef Name='ID' />
<FieldRef Name='LinkFilename' />
<FieldRef Name='FileDirRef' />
<FieldRef Name='FileLeafRef' />
</ViewFields>
<QueryOptions>
<ViewAttributes Scope='Recursive' />
<OptimizeFor>FolderUrls</OptimizeFor>
</QueryOptions>
Also, check out below mentioned URLs to fix this issue
https://social.msdn.microsoft.com/Forums/office/en-US/35e799a1-9360-46e5-8719-dd35fdace7ea/filter-document-library-folder-through-caml-query?forum=sharepointdevelopmentlegacy
http://www.ktskumar.com/blog/2009/07/retrieve-all-folders-from-list/
I hope this is helpful to you, mark it as Helpful.
If this works, Please mark it as Answered.
Regards,
Dharmendra Singh (MCPD-EA | MCTS)
Blog : http://sharepoint-community.net/profile/DharmendraSingh -
Unable to create a new folder in Applications
Hi,
For some reason I am suddenly unable to create folders in my Applications folder. Also, if I try to put anything into the Applications folder I am prompted to authorise. I don't know much about permissions in Unix but I have seen on some other threads that the following is required if I need some help:
drwx---r-x+ 207 root wheel 7038 May 13 09:08 /Applications
0: group:everyone deny addfile,delete,add_subdirectory,deletechild,writeattr,writeextattr,chown
1: group:everyone deny delete
2: user:(me) allow list,addfile,search,add_subdirectory,deletechild,readattr,writeattr,readextattr,writeextattr,readsecurity
3: group:admin allow list,addfile,search,add_subdirectory,deletechild,readattr,writeattr,readextattr,writeextattr,readsecurity
Can anybody help?
Regards,
StuartHi Stuart
If you haven't updated yet, I suggest you install 10.5.2.
If and only if the output of ls -le looks still the same as in your first post (please check that before doing anything!) you could try the following:
Open a Terminal window and paste the following commands seperately (first line, Enter, second line, Enter and so on). The first command will ask you for a password.
sudo chmod -a# 3 /Applications/
sudo chmod -a# 2 /Applications/
sudo chmod -a# 0 /Applications/
sudo chmod 755 /Applications/
sudo chown root:admin /Applications/
This will change the permissions on your machine to the same permission set as I have on /Applications/.
PLEASE NOTE:
I don't know what you have installed in your Applications folder. This could adversely affect other applications on your system. In other words: There's no guarantee from my side. If you want assistance before doing this, I invite you to contact me via email in my profile. We could have an iChat or a Skype session in 7 hours.
--greg -
Hi,
How to make 'New Document' and 'Upload Document' to have same content type(Custom) in Document Library in Sharepoint2010.
Note : I have created custom Content Type since I have custom columns along with upload column..
Regards, Shreyas R Sgo to library settings
Change new button order and default content type
set your custom content type to be #1
when you upload new document it will automatically have your custom content type
Hope that helps|Amr Fouad|MCTS,MCPD sharePoint 2010 -
How to Copy list item attachment to document library in SharePoint 2010
Hi,
How to Create a folder ("List Item - Title Name") in Document library and copy list items Attachments to the same folder in SharePoint 2010,thanks in advance.
Regards,
Selvan.J
Selvan JHi,
You should first check whether the folder exists in the library, if the folder not exists, then create it.
I had modified the code, you can use the following code snippet to achieve it.
private void EventCopyFileWhenItemCreatedOrUpdated(SPItemEventProperties properties)
SPSite site = new SPSite(http://YourSiteName);
SPWeb web = site.OpenWeb();
SPList doclibList=properties.Web.Lists["YourLibName"];
bool foundFolder = false;
if (doclibList.Folders.Count>0)
foreach (SPListItem fitem in doclibList.Folders)
if (fitem.Title.Equals("FolderA"))
foundFolder = true;
break;
if (foundFolder == false)
SPListItem folder = doclibList.Folders.Add(doclibList.RootFolder.ServerRelativeUrl, SPFileSystemObjectType.Folder,"FolderA");
folder.Update();
string fUrl = doclibList.RootFolder.ServerRelativeUrl+"/FolderA";
SPFolder myLibrary = web.GetFolder(fUrl);
if (properties.ListTitle == "YourListName")
SPListItem sourceItem = properties.ListItem;
properties.Web.AllowUnsafeUpdates = true;
//get the folder with the attachments for the source item
SPFolder sourceItemAttachmentsFolder =
sourceItem.Web.Folders["Lists"].SubFolders[sourceItem.ParentList.Title].SubFolders["Attachments"].SubFolders[sourceItem.ID.ToString()];
//Loop over the attachments, and add them to the target item
foreach (SPFile file in sourceItemAttachmentsFolder.Files)
if (CheckFileNameExist(file.Name , properties) == false)
byte[] binFile = file.OpenBinary();
myLibrary.Files.Add(System.IO.Path.GetFileName(file.Url) , binFile);
private bool CheckFileNameExist(string fileNameInFileAttach, SPItemEventProperties properties)
bool flag = false;
SPList myDocumentLib = properties.Web.Lists["YourLibName"];
SPQuery spQuery = new SPQuery();
SPListItemCollection items = myDocumentLib.GetItems(spQuery);
foreach (SPListItem item in items)
if (fileNameInFileAttach == item["Name"].ToString())
flag = true;
break;
return flag;
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
Getting correlation error while opening document library in SharePoint 2010
Hi,
I installed SQL Server 2008 R2 SP1 and SharePoint 2010 on Windows Server 2008 R2. Everything went fine for first days. Now I am getting error while opening any of the document libraries. However lists are opening fine.
Error:
An unexpected error has occured.
Troubleshoot issues with Microsoft SharePoint Foundation
Correlation ID: fa54267f-4436-8298-c7698977728c
I checked the logs, I showing some error with the line http://Microsoft.Office.Server.UserProfiles/GetProfileProperties
Please let me know if you have any idea about this error or let me know if you need further inputs from me. Thanks.Hi Tarique,
Whether you have granted the user proper permissions on this site. You should make sure the user has permissions on the site.
In addition, there are some reasons for the log-in issue, please take a look at:
http://sharepointsolutions.blogspot.com/2008/06/how-do-i-make-our-sharepoint-site-stop.html
http://sharepointsolutions.blogspot.com/2008/06/how-do-i-make-our-sharepoint-site-stop_17.html
http://dinesql.blogspot.com/2011/01/cannot-login-to-sharepoint-2010-site.html
I hope this helps.
Thanks,
Wendy
Wendy Li
TechNet Community Support -
Cannot create a new folder on desktop.
Hello. When I am trying to create a new folder on desktop (right click->new->new folder) it gives me error message (i dont have english version of windows 8.1 so I had to translate it):
Item wasnt found.
Item is no longer placed in <%3 NULL:OpText>. Check the location of item and try again the action.
Can somebody help me?Hi,
As Ed mentioned before, are you able to create folder in other places?
It is usually caused by incorrect delection of some registry entries, maybe accidently by yourself or by some registry cleaner\anti-virus software\bad-coded programs you installed recently.
So quick fix is that you can restore the PC to a previous state with restore point if you have. (please note that you will lose some recent settings)
You can also run sfc/scannow to check and fix if there're some missing system files.
Or try the registry fix mentioned in the following link (Please first backup your registry, any incorrect changes on registry will cause serious damage)
http://answers.microsoft.com/en-us/windows/forum/windows_8-files/using-windows-8-i-am-unable-to-create-a-new-folder/689e60e7-753b-4bfd-bc70-a5dad04e257d
Yolanda Zhu
TechNet Community Support -
When I create a New Folder (on the desktop or in Finder), the system uses the Generic Document Icon instead of the Generic Folder Icon. How can I change this back?
All of a sudden I noticed that most of the folders on my computer were no longer using the folder icon, but the generic document icon. I had to manually change back the icon being used by opening Get Info for each folder and copying and pasting the generic folder icon from some folders that remained unchanged. Now whenever I create a New Folder (right click -> "New Folder"), the icon that shows up is the generic document icon (white page with top right corner turned down). And I have to manually change it so it shows up as a folder in Finder or on my desktop. I don't know why or how this switch happened. All of the folders now on my computer look ok, but I need to change the default so when I create a New Folder it uses the correct icon.
I have also Forced Relaunch of my Finder and rebooted the system. I downloaded Candybar but am not sure what will fix anything, so I haven't proceeded.
Anyone know how I can do this? Thanks.Anyone?
-
How do I create a new folder in my documents?
Hi there, I'm new on Mac.
How do I create a new folder when I want a new folder in my documents?
I also want to create folders on an extern harddrive, but I can only create a folder on the launchpad...See my orginal post - it answered the OPs question just fine:
When you have any window open, you can press the Shift-Command-N keys to create a new untitled folder. Same with on an external hard drive. Also works on the Desktop.
Maybe I should have said, to your reply:
"and you don't have to open any windows to use the command on the Desktop."
Would that have worked for you?
Clinton -
Can you create a new folder and put several documents in it in Adobe?
Can you create a new folder and put several documents in it in Adobe?
Thank you for your help. Now I just want to expand on this a bit. To use the Applescript you have supplied me, how do I tell it to name the folder other than by date, and where to put it?
Let me say, preferably, is it possible to make an action like this right-clickable? Instead of having to pick a script. Anything that slows this process down means I might as well do it all by hand. What I'd really love to do is this:
Select a number of items. Right click to an action saying "create a new folder and put this items in it. Name the folder with the first item's name". Very simple and quick.
Could this be accomplished? Through Automator? or something that can appear in the contextual menu? Folder actions?
I'm just getting started with using these tools. -
Why does stuffit open and create a new folder every time I save a pages document?
Why does stuffit open and create a new folder every time I save a pages document?
Because you are saving it to the desktop, Pages documents are actually zipped files and Stuffit is set to uncompress desktop files.
Either don't save to the desktop (bad practice) or check the preferences in Stuffit to see if you can turn off unstuff files on desktop.
Peter
Maybe you are looking for
-
What is the difference between Mini DVI to VGA adapter and Mini DisplayPort to VGA Adapter?
My macbook is MacBook4,1. early 2008
-
Is there a way to mask text and then uncover it.
I am using iweb (08) and have a section called FAQ. I want to be able to write out a question and when you click on the question, the answer appears below it. Is there a way to do this? If not, can I create a hyperlink that when you click on the ques
-
How well does the new Mac mini preform
Hi, im thinking of picking up the 2014 Mac mini (i5, 2.6ghz, 8gb ram) And I was wondering how well it performs with yosemite, thanks
-
why we are giving cost center catogory at the time of cost center creation. what are the impact will come due to assigning cost center category. now we have give Categary T for all cost center. now we anted to create cost center for each and every de
-
Oracle Text suitability for my project
Hi, i am building an application that stores web content. The content could be anything you see on the web - html, javascript, pdfs, binary files and xml. I've had a look at Oracle Text and it seems ok to find keywords but are needs are a bit differe