How to export Listitems in sharepoint 2010 using powershell

I am able to export all items in sharepoint list by below command in powershell
Export-SPWeb -Identity
"http://myurl.com" -   path
"C:\Export\Lists\Announcements.cmp" -ItemUrl
"/Lists/Announcements/AllItems.aspx" -Force
My list is having huge data in production I want to export only 10 items from the list using powershell. Is there any command to export only certain items.
I want to filter the Items and export only certain set of items using Export command.
Rajendra

Hi all,
To export a list you can try: 
Export data from SharePoint 2010 List using Management Shell: http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/MS-SharePoint/A_9182-Export-data-from-SharePoint-2010-List-using-Management-Shell.html
Export SharePoint 2010 List to Excel with PowerShell: http://iwillsharemypoint.blogspot.com.es/2011/02/export-sharepoint-2010-list-to-excel.html
Export SharePoint List Items to CSV using PowerShell: http://www.sharepointdiary.com/2013/04/export-sharepoint-list-items-to-csv-using-powershell.html
If a post answers your question, please click Mark As Answer on that post and
Vote as Helpful

Similar Messages

  • How to get listitems from Sharepoint online using REST based on webid and listid

    In my JavaScript code I have a webid and a listid in a sharepoint form page.
    I'm trying to construct a rest url to get to the infomation in the list.
    I cant figure out the url to get at the lists items.
    My WebID is 33213c5c-30e5-468c-87f7-52b48a7b6a3d
    My ListID is d38444af-dd7f-404b-9e75-b1f8c6cdee7d
    When i go to
    https://xxx.sharepoint.com/_api/web/webs?$expand=lists,lists/items&$filter=(iD eq guid'33213c5c-30e5-468c-87f7-52b48a7b6a3d' )
    I get all items in all lists on the specified web. But when i go to
    https://xxx.sharepoint.com/_api/web/webs?$expand=lists,lists/items&$filter=((iD eq guid'33213c5c-30e5-468c-87f7-52b48a7b6a3d' ) and (Lists/Id eq guid'd38444af-dd7f-404b-9e75-b1f8c6cdee7d'
    Sharepoint complains saying  'Field or property "Id" does not exist'
    I can probably do this using multiple requests (get the web, then get the list), but the component I am working on needs a single url to access the listitems,
    Can this be done?

    Unfortunately, this cannot be done. The best you can do is to bring back the lists collection of the sub site.
    https://xxx.sharepoint.com/_api/web/webs&$filter=(id eq guid '33213c5c-30e5-468c-87f7-52b48a7b6a3d')&$select=lists&$expand=lists
    The unfortunate part here is that the webs (web collection) object does not implement an indexer. Why? Don't know. It should just like the lists (list collection).
    https://xxx.sharepoint.com/_api/web/webs(guid '33213c5c-30e5-468c-87f7-52b48a7b6a3d')/lists(guid'd38444af-dd7f-404b-9e75-b1f8c6cdee7d');
    With a web collection indexer it would be that easy.
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • To extract the users permission on files and folders in sharepoint 2010 using client object model

    To extract the users permission on files and folders in sharepoint 2010 using client object model

    Hello,
    This is sample code to get item level permisison: (Just written in notepad so it is not tested)
    public void ItemLevelPermission()
    SecurableObject curObj = null;
    ListItem curItem = ctx.Web.Lists.GetByTitle("LibraryName").GetItemById(ItemId); -> Use Id of file or folder.
    IEnumerable roles = null;
    roles = ctx.LoadQuery(
    curObj.RoleAssignments.Include(
    roleAsg => roleAsg.Member,
    roleAsg => roleAsg.RoleDefinitionBindings.Include(
    roleDef => roleDef.Name, // for each role definition, include roleDef’s Name
    roleDef => roleDef.Description)));
    ctx.ExecuteQuery();
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Setting the default value to taxonomy column in sharepoint 2010 using client object model

    I am creating a metadata column and I want to set its default value in sharepoint 2010 using client object model. Can anyone help me?
    My code for creating metadata column is as below:
                ClientContext clientContext = new ClientContext(siteUrl);
                Web site = clientContext.Web;
                List list = site.Lists.GetByTitle("LibraryName");
                FieldCollection collField = list.Fields;
                string fieldSchema = "<Field Type='TaxonomyFieldType' DisplayName='SoftwareColumn' Name='SoftwareColumn' />";
                collField.AddFieldAsXml(fieldSchema, true, AddFieldOptions.DefaultValue);
                //oneField.DefaultValue = "ASP.NET|4c984b91-b308-4884-b1f1-aee5d7ed58b2"; // wssId[0].ToString() + ";#" + term.Name + "|" + term.Id.ToString().ToLower();
                clientContext.Load(collField);           
                clientContext.ExecuteQuery();

    Hi,
    Please try the code like this:
    ClientContext clientContext = new ClientContext("http://yoursite/");
    List list = clientContext.Web.Lists.GetByTitle("List1_mmsfield");
    clientContext.Load(list);
    clientContext.ExecuteQuery();
    FieldCollection fields = list.Fields;
    clientContext.Load(fields);
    clientContext.ExecuteQuery();
    Field f = fields.GetByTitle("mms");
    clientContext.Load(f);
    clientContext.ExecuteQuery();
    Console.WriteLine(f.Title + "---" + f.DefaultValue);
    //2;#A2|a0a95267-b758-4e4d-8c39-067069fd2eef
    //1;#A1|641f5726-992c-41c8-9ddc-204a60b88584
    f.DefaultValue = "1;#A1|641f5726-992c-41c8-9ddc-204a60b88584";
    f.Update();
    clientContext.Load(f);
    clientContext.ExecuteQuery();
    Console.WriteLine(f.Title + "---" + f.DefaultValue);
    Best regards
    Patrick Liang
    TechNet Community Support

  • How to Enable Ratings on SharePoint List using Client Object Model for Office 365 SharePoint Site.

    How to Enable Ratings on SharePoint List using Client Object Model code for Office 365 SharePoint Site.
    Thanks in Advance
    Rajendra K

    Hi Rajendra,
    here you are the code and the blog, let me know if this helps
    using (ClientContext ctx = new ClientContext(https://yourSiteUrl))
    Web w = ctx.Web;
    List l = w.Lists.GetByTitle("yourListName");
    ctx.Load(l, info => info.Id);
    ctx.ExecuteQuery();
    string ListID = l.Id.ToString();
    Microsoft.Office.Server.ReputationModel.Reputation.SetRating(ctx, ListID, 1, 5);
    ctx.ExecuteQuery();
    http://blogs.technet.com/b/speschka/archive/2013/07/08/how-to-use-csom-with-ratings-in-sharepoint-2013.aspx
    Kind Regards, John Naguib Technical Consultant/Architect MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation

  • Who has full access on all mailboxes in Exchange 2010 using Powershell ?

    Greetings,
    Could you please tell me how can i know Who has full access on all mailboxes in Exchange 2010 using Powershell ?
    Thanks.
    Redouane SARRA

    This is going to depend greatly on WHICH inherited permissions you plan to delete - there are some that you can never delete if you want the system to function properly.  Now, that being said, let's look at some example permissions.  First, here
    are some permissions on a standard mailbox:
    Identity             User                 AccessRights                                               
    IsInherited Deny
    users.corp.... USERS\btwatcher    {FullAccess}                                               
    False       False
    users.corp.... USERS\svcactAdmin {FullAccess}                                               
    True        False
    users.corp.... CORP\Domain Ad... {FullAccess}                                               
    True        True
    users.corp.... CORP\Enterpris... {FullAccess}                                               
    True        True
    users.corp.... CORP\Organizat... {FullAccess}                                               
    True        True
    users.corp.... CORP\adminact    {FullAccess}                                               
    True        True
    users.corp.... CORP\esswin       {FullAccess}                                               
    True        True
    users.corp.... USERS\svcactEncase {FullAccess}                                               
    True        False
    users.corp.... CORP\Exchange ... {FullAccess}                                               
    True        False
    users.corp.... NT AUTHORITY\SYSTEM  {FullAccess}                                               
    True        False
    As you can see, the first is not inherited.  All others are, and two are from service accounts (svcact...).  Also, some are Exchange system permissions, some are denies, and some are just administrative accounts.  Once you determine which
    you wish to remove, the SIMPLEST way to set the permissions you want is to open the account properties in ADSIEdit, and go to the Security tab.  Here, click the Advanced button and find the inherited permission you wish to remove.  ADSIEdit will
    show where the permission is inherited from - you will need to go to that container to remove the inherited permission.  You can also grant inherited denies at the same level(s).
    Now, something you will need to understand is that if you hope to remove permissions granted to domain administrators, the system will replace them - these permissions are required by the system and can't be modified permanently.

  • Unable to remove user from SharePoint Group using PowerShell

    I am trying to remove a user from a SharePoint Group using PowerShell.
    I can see the user in the Site Collection as part of the SharePoint Group, however, when I attempt to run the script, I get an error message stating "Can not find the user with ID: 10"
    Below is the PowerShell script that I am using:
    $url = "https://sharepointdev.spfarm.spcorp.com/sites/desitecoll"
    $userName = "spfarm\sp2013_svc"
    #$userName = "spfarm\spprofileimport";
    $site = New-Object Microsoft.SharePoint.SPSite($url)
    $web = $site.OpenWeb()
    $siteGroups = $web.SiteGroups;
    Clear-Host
    $mySiteGroups = @();
    foreach($group in $siteGroups)
    Write-Host $group
    $mySiteGroups += $group;
    }#foreach
    $members = $web.SiteGroups[$mySiteGroups[0]];
    $owners = $web.SiteGroups[$mySiteGroups[1]];
    $visitors = $web.SiteGroups[$mySiteGroups[2]];
    #Remove the user from the specified SharePoint Group
    $spUser = Get-SPUser -Identity $userName -Web $url
    Write-Host $spUser.ID
    Remove-SPUser -Identity $spUser -Web $url -Group $owners
    $web.Update();
    $web.Dispose();
    Write-Host "User " $userName "removed from " $owners
    Please advise.

    I had to update the code to the following because Get-SPUser was not working properly:
    $url = "https://sharepointdev.spfarm.spcorp.com/sites/desitecoll"
    $userName = "spfarm\spprofileimport";
    $site = New-Object Microsoft.SharePoint.SPSite($url)
    $web = $site.OpenWeb()
    $siteGroups = $web.Groups;
    Clear-Host
    $mySiteGroups = @();
    foreach($group in $siteGroups)
    Write-Host $group
    $mySiteGroups += $group;
    }#foreach
    $members = $web.Groups[$mySiteGroups[0]];
    $owners = $web.Groups[$mySiteGroups[1]];
    $visitors = $web.Groups[$mySiteGroups[2]];
    #Convert the user name to an SPUser account
    $spUser = $web.Site.RootWeb.EnsureUser($userName);
    Write-Host $spUser.ID
    Remove-SPUser -Identity $spUser -Web $url -Group $owners
    $web.Update();
    $web.Dispose();
    Write-Host "User " $userName "removed from " $owners
    Was I not using Get-SPUser correctly?

  • How to activate Custom Feature in SharePoint 2010 using Client Object model

    I am trying to Activate a custom feature using Client Object Model in SharePoint 2010. Here is the code I used. When I execute the code, I got the error "Feature with Id 'xx' is not installed in this farm, and cannot be added to this scope while
    creating site collection". Can anyone help?
    ClientContext clientContext = new ClientContext(spURL);
    //GUID of the custom feature                    
    Guid districtFeatureId = new Guid("5b3529de-5045-46da-af87-8d2e32c121a7");
    Site clientSite = clientContext.Site;
    FeatureCollection clientSiteFeatures = clientSite.Features;
    clientContext.Load(clientSiteFeatures);
    clientContext.ExecuteQuery();
    //Activate the feature
    clientSiteFeatures.Add(districtFeatureId, false, FeatureDefinitionScope.Site);
    clientContext.ExecuteQuery();

    Hi shil chan,
    When you activate a feature on the site collection, the feature should be scoped to site or farm, the error message shows it cannot find the specific feature, this will happen when you have a feature in web
    scope or the feature isn’t installed.  
    So, to troubleshooting this issue:
    Verify whether the feature is scoped to web. Please go to
    Site Setting->Site Features . If the feature is a web scope feature, then add the feature to webfeatures.
    Make sure the feature is installed correctly.
    Please inform me freely if you have any questions.
    Thanks

  • Sharing of MS Office Documents in Sharepoint 2010 using Desktop Apps Not Consistent

    We have a Powerpoint File in Sharepoint 2010 that can be simultaneously edited by multiple users using the
    Desktop App.   I thought this functionality was only available with the
    Web App?   Does anyone know how this was enabled?  I would like to make this work for MS Excel but have never been able to make it work using the Excel Desktop App (only with the Web App).

    ncAllie,
    This feature is call "Co-Authoring".
    Require Check Out shouldn't enabled and version turn on, with permission will allow multiple user to edit same word/ppt/one-note in their respective zone.
    As per I know, excel client app don't support co-authoring(as you observed too), but OWA does
    Please go through -
    http://technet.microsoft.com/en-us/library/ff718249(v=office.15).aspx
    and Real-time co-authoring
    in the Excel Web App: Why and how we did it
    Hope it will clear some of your confusion.
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • How can I get a list of OOB Site from a SharePoint WebApplication using Powershell Script

    Hi,
    Could anybody help on this?
    Thanks,
    Srabon
    srabon

    You can include the WebTemplate parameter in the select, from that you will get the template ID for all sites.
    I am sure you know the custom template IDs then just filter / use if else to get the desired results.
    check this blog, track inventory session.
    http://sharepointpromag.com/sharepoint-2010/inventorying-sharepoint-using-powershell
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • How do you migrating a SharePoint 2010 BI PerformancePoint site to a newly built SharePoint 2013 site?

    Hi All,
    I need help in migrating a SharePoint 2010 BI PerformancePoint site to a newly built SharePoint 2013 site on another server. The SharePoint 2010 BI Performance Point site has mainly Analytic graphs and charts that work perfectly within the SP 2010 environment
    but do not work within the SP 2013 environment. When I open the graphs and charts within Dashboard Designer I get a ‘cannot access the data source’ error message. The problem I am having is there is no way I can edit the graphs and charts to use a newly created
    data source on the SP 2013 site.
    I hope you can help
    Colin

    Just been going through all this with a client.
    Make sure that you either migrate the Secure Store using the Database Attach method (You'll need the farm passphrase to do this), or ensure that you recreate any Secure Store groups required for users to access the data sources.
    If you're not using the Secure Store for access to the data, try monitoring the SQL logs on the target data stores and looking for login failures. The PerformancePoint service account(Or the excel unattended account) may required access to the
    data store.
    Also, if you're using PowerPivot, be aware that your Excel files will need to be created in Excel 2013 with the PowerPivot 2013 add-in in order for manual refresh (Or refresh on open) to work.
    Paul.
    Please ensure that you mark a question as Answered once you receive a satisfactory response. This helps people in future when searching and helps prevent the same questions being asked multiple times.

  • How to export low quality png while using exportToPNGSequence jsfl command ?

    how export low quality png while using exportToPNGSequence jsfl command ?

    var mat=fl.getDocumentDOM().library[0].matrix;
    mat.a=.5;
    mat.d=.5;
    fl.getDocumentDOM().library[0].exportToPNGSequence(file:///yourfile.png,startframe,endfram e,mat);

  • Sharepoint 2010 use fulltextsearch query to search user profile

    Hello all,
    I have a problem with FullTextSearch query for user profile:
    I have the query below:
    SELECT PictureURL, TitleOfPersonal, PersonalTitle,  Lastname, Firstname, AccountName, JobTitle, Department, workemail, EmployeeID, Empid, Exten, LeftDate, JoinDate
    FROM SCOPE() WHERE "scope"='People' AND (Department = 'CEO Office' OR Department = 'Marketing & Business Development Department' OR Department = 'Medical Department' OR Department = 'Finance Department' OR Department = 'COO Office' OR Department
    = 'Document Management & Translation Department') AND  empID != '' ORDER BY LastName
    But this query does not return any result! 
    Could someone help me on this ?
    Thank you very much !

    Hi,
    According to your post, my understanding is that you want to search user profile using FullTextSqlQuery.
    Please try to use the query below:
    SELECT PictureURL, TitleOfPersonal, PersonalTitle, Lastname, Firstname, AccountName, JobTitle, Department, workemail, EmployeeID, Empid, Exten, LeftDate, JoinDate
    FROM SCOPE() WHERE "scope"='People'
    If the query works, please use CONTAINS(DEPARTMENT,'<value>') instead of
    Department = '<value>' .
    Here is a discussion for you to take a look at.
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/880086f7-5a54-454b-80c5-a676df19d83c/sharepoint-2010-fulltextsqlquery-query-problem-with-where-condition?forum=sharepointdevelopmentprevious
    If there still no result returns, please provide more code for further research.
    Best Regards
    Dennis Guo
    TechNet Community Support

  • How do I query a SharePoint List using a url and filtering on date?

    I am reading a SharePoint list using jquery.  Everything is working fine
    except for the filter.  Each list item has an expiration date.  I want to retrieve JUST the items that have not expired (Expires > Today) but I can't figure out the url syntax and I've been searching all day for an example and
    can't find one.  Could someone please help?!?  See bold code below.
    Thanks,
    Glen
    $(document).ready(function ()
    <strong>var qryWCFUrl = "/sites/MMTP1/_vti_bin/listdata.svc/MMAlerts?$filter=(Expires gt '08/10/2011')&$orderby=Title";
    </strong> $.getJSON(qryWCFUrl, function (results)
    $.each(results.d.results, function (i, mmAlert)
    itemID = mmAlert.Id;
    mmTitle = mmAlert.Title;
    mmClass = mmAlert.ClassValue;
    //alert("Item="+itemID+" Title="+mmTitle+" Class="+mmClass);
    AddMMStatus(mmAlert.Id,mmAlert.Title,mmAlert.ClassValue);

    Fadi,
    Thanks for your response.  I actually have another version of the code that uses the SP client objects that works.  The problem is site boundries.  Let me give a more complete project explanation.
    I am creating a master page for a new intranet.  As part of this master page, I want to read from an SP list of alerts and post each alert (if not expired) in the SP status bar.  I've gotten this to work with SP client objects and jquery (except
    for the date filter part).  Both of these solutions work fine on the top site level.  BUT when trying it out at the sub-site level, the SP client objects version of my code fails. The jQuery version works except the date filtering.
    I looked at the example from your link and it looks like a bit of a hybrid to my approaches:  JQuery with CAML.  My question is; does this example permit me to access a list in the top-level site from the subsites?  Please excuse my ignorance,
    but I am an EXTREME newbie in this having spent the past 8 years as a VB.Net developer and a little bit of ASP.Net.
    Below are the two different versions of my code in different versions of my master page definition:
    SP Client Object Version
    <script type="text/javascript">
    // <![CDATA[
    ExecuteOrDelayUntilScriptLoaded(LoadAlerts, "sp.js");
    var ctx;
    var currAlerts;
    function LoadAlerts() {
    ctx = new SP.ClientContext.get_current();
    list = ctx.get_web().get_lists('/sites/MMTP1/Lists/').getByTitle('MMAlerts');
    var cmlQry = new SP.CamlQuery();
    var camlExp = '<query><Query><Where><Gt><FieldRef Name="Expires" /><Value IncludeTimeValue="FALSE" Type="DateTime"><Today /></Value></Gt></Where></Query></query>';
    cmlQry.set_viewXml(camlExp);
    currAlerts = list.getItems(cmlQry);
    ctx.load(currAlerts,'Include(ID,Title,Class)');
    ctx.executeQueryAsync(GetAlertsSuccess,GetAlertsFailed);
    function GetAlertsSuccess() {
    var lstEnum = currAlerts.getEnumerator();
    while(lstEnum.moveNext()) {
    var mmAlert = lstEnum.get_current();
    AddMMStatus(mmAlert.get_item('ID'),mmAlert.get_item('Title'),mmAlert.get_item('Class'));
    function GetAlertsFailed(sender,args) {
    alert('Alerts load failed: ' + args.tostring);
    function AddMMStatus(msgID, strTitle, strClass) {
    var statID;
    var statClass;
    var statTitle;
    statClass = "<a href=\"#\" onclick=\"javascript:DisplayAlert("+msgID+");\">" + strClass + ": </a>";
    statTitle = "<a href=\"#\" onclick=\"javascript:DisplayAlert("+msgID+");\">" + strTitle + "</a>";
    statID = SP.UI.Status.addStatus(statClass, statTitle, true);
    SP.UI.Status.setStatusPriColor(statID,"red");
    function DisplayAlert(msgID) {
    var options = {
    title: "Miller & Martin Alert!",
    url: "/sites/MMTP1/SitePages/ShowAlert02.aspx?ID="+msgID,
    allowMaximize: false,
    showClose: true
    SP.UI.ModalDialog.showModalDialog(options);
    // ]]>
    </script>
    JQuery Version (works except for filtering by date)
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
    <script type="text/javascript" >
    // <![CDATA[
    var itemID;
    var mmTitle;
    var mmClass;
    $(document).ready(function ()
    var qryWCFUrl = "/sites/MMTP1/_vti_bin/listdata.svc/MMAlerts?$filter=(Expires gt '08/10/2011')&$orderby=Title";
    $.getJSON(qryWCFUrl, function (results)
    $.each(results.d.results, function (i, mmAlert)
    itemID = mmAlert.Id;
    mmTitle = mmAlert.Title;
    mmClass = mmAlert.ClassValue;
    AddMMStatus(mmAlert.Id,mmAlert.Title,mmAlert.ClassValue);
    function AddMMStatus(msgID, strTitle, strClass, strSeverity) {
    var statID;
    var statClass;
    var statTitle;
    statClass = "<div id=\"mmAlertTitle\" style=\"display:inline-block;\"><a href=\"#\" onclick=\"javascript:DisplayAlert("+msgID+");\">" + strClass + ": </a></div>";
    statTitle = "<div id=\"mmAlertDetail\" style=\"display:inline-block;\"><a href=\"#\" onclick=\"javascript:DisplayAlert("+msgID+");\">" + strTitle + "</a></div>";
    statID = SP.UI.Status.addStatus(statClass, statTitle, true);
    SP.UI.Status.setStatusPriColor(statID,"green");
    function DisplayAlert(msgID) {
    var options = {
    title: "Miller & Martin Alert!",
    url: "/sites/MMTP1/SitePages/ShowAlert02.aspx?ID="+msgID,
    allowMaximize: false,
    showClose: true
    SP.UI.ModalDialog.showModalDialog(options);
    // ]]>
    </script>

  • Cannot create list in SharePoint 2010 using Client Object Model

    I am trying to utilize SharePoint 2010 Client Object Model to create a List based on a custom template. Here's my code:
    public void MakeList(string title, string listTemplateGUID, int localeIdentifier)
    string message;
    string listUrl;
    List newList;
    Guid template;
    ListCreationInformation listInfo;
    Microsoft.SharePoint.Client.ListCollection lists;
    try
    listUrl = title.Replace(spaceChar, string.Empty);
    template = GetListTemplate((uint)localeIdentifier, listTemplateGUID);
    listInfo = new ListCreationInformation();
    listInfo.Url = listUrl;
    listInfo.Title = title;
    listInfo.Description = string.Empty;
    listInfo.TemplateFeatureId = template;
    listInfo.QuickLaunchOption = QuickLaunchOptions.On;
    clientContext.Load(site);
    clientContext.ExecuteQuery();
    lists = site.Lists;
    clientContext.Load(lists);
    clientContext.ExecuteQuery();
    newList = lists.Add(listInfo);
    clientContext.ExecuteQuery();
    catch (ServerException ex)
    Now, this particular part, newList = lists.Add(listInfo); clientContext.ExecuteQuery();, the one that is supposed to create the actual list, throws an exception:
    Message: Cannot complete this action. Please try again.
    ServerErrorCode: 2130239231
    ServerErrorTypeName: Microsoft.SharePoint.SPException
    Could anyone please help me realize what am I doing wrong? Thanks.

    I've made progress - well, at least to some extent. The previous message related to the "Invalid file name" is not appearing any more. I now realize that it is necessary to specify feature ID, list template kind, as well as custom schema in order
    to order SharePoint 2010 to create the document library. 
    However, there's a new problem which isn't documented on the net almost at all (at least I was unable to find anything): The document library gets created, but I cannot access it. Further inspection showed that the doc lib views are not created. Basically,
    the only accessible doc lib page is the document library settings page. Also, I get the server exception with the message: 
    Server Out Of Memory. There is no memory on the server to run your program. Please contact your administrator with this problem.
    Any idea what is causing this issue? Thanks. 
    Hi Boris
    Borenović,
    I think I found the reason for this notorious "Server Out Of Memory" error.
    (Man, it took 4 hrs of frustrating troubleshooting without any direct hints... very disappointing
    MSFT developers :( ).
    Anyway,
    All the "Form" elements at the bottom need to have SetupPath="pages\form.aspx"
    attribute (by default this attrib is missing when you copy the whole List element from inside the stp's manifest.xml  file).
    Also, just make sure that each "View" element has correct "WebPartZoneID", "SetupPath" and "Url" attribute values otherwise that list/library will
    be created successfully but will fail to load when you try to access it (with the VERY helpful "Cannot complete this action, contact administrator" error). Even if you enable stack trace (or check ULS logs) you will find "An unexpected
    error has been encountered in this Web Part.  Error: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe." and you will never realize it's because of the
    incorrect attributes ("WebPartZoneID", "SetupPath" or "Url" as mentioned above).
    Come on Microsoft, you can do better than that?
    If the API needs this attrib then why is it missing inside the manifest.xml file when
    an STP file generated in the first place?

Maybe you are looking for

  • Images printing too small using Lightroom

    I have an image that is 316x x 2317 pixels that I am printing using Lightroom 2.3 on Windows XP SP2. I use the Picture Package and add one 4x6 image to the sheet. I am using the Maximize template from the browser. The photo borders are minimum. The i

  • Is it possible run a single 1510 AP without a wlan controller?

    I am wanting to test one Aironet 1510 Wireless AP without running a Wireless LAN Controller, is this possible? I cannot find any documentation for being able to do this.

  • N72 vista drivers

    my n72 is not installing on my vista operating system, where i can get vista drives for n72

  • How to start MaxDB ?

    Hi people, I get the next error when I call the maxDB database from tcode LC10: Name und Server     : ORA - avast DBMRFC Funktion     : DBM_CONNECT Fehler              : Fehler des DBM Rückgabewert        :         -4 Fehlermeldung       : database i

  • Lounge Productions Presents ...

    OK, the discussions taking place in other threads have led to this. Adobe seems to believe that online collaboration is the wave of the future. So how about we, who hang out in the their basement drinking their beer and eating their snacks, so to spe