Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all 7589 articles
Browse latest View live

Unexpected error after editing navigation

$
0
0

A Sharepoint developer was working on a sharepoint farm I manage and "suddenly" the page stopped working. Last thing he did was change the navigation. Subsites work fine.


The following errors show up in the log:

SPMicrofeedStore.UpdateFromListItem: Expected field 'HashTags' not found in list item, verify fieldList paramter.

 

Application error when access /SitePages/Forsiden.aspx, Error=Object reference not set to an instance of an object. 

 at Microsoft.SharePoint.WebControls.AspMenu.OnMenuItemDataBound(MenuEventArgs e)   

 at System.Web.UI.WebControls.Menu.DataBindRecursive(MenuItem node, IHierarchicalEnumerable enumerable)   

 at System.Web.UI.WebControls.Menu.DataBindRecursive(MenuItem node, IHierarchicalEnumerable enumerable)   

 at System.Web.UI.WebControls.Menu.DataBindItem(MenuItem item)   

 at System.Web.UI.WebControls.Menu.PerformDataBinding()   

 at System.Web.UI.WebControls.HierarchicalDataBoundControl.PerformSelect()   

 at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound()   

 at System.Web.UI.WebControls.Menu.EnsureDataBound()   

 at Microsoft.SharePoint.WebControls.AspMenu.OnPreRender(EventArgs e)   

 at System.Web.UI.Control.PreRenderRecursiveInternal()   

 at System.Web.UI.Control.PreRenderRecursiveInternal()   

 at System.Web.UI.Control.PreRenderRecursiveInternal()   

 at System.Web.UI.Control.PreRenderRecursiveInternal()   

 at System.Web.UI.Control.PreRenderRecursiveInternal()   

 at System.Web.UI.Control.PreRenderRecursiveInternal()   

 at System.Web.UI.Control.PreRenderRecursiveInternal()   

 at System.Web.UI.Control.PreRenderRecursiveInternal()   

 

 

System.NullReferenceException: Object reference not set to an instance of an object.  

 at Microsoft.SharePoint.WebControls.AspMenu.OnMenuItemDataBound(MenuEventArgs e)   

 at System.Web.UI.WebControls.Menu.DataBindRecursive(MenuItem node, IHierarchicalEnumerable enumerable)   

 at System.Web.UI.WebControls.Menu.DataBindRecursive(MenuItem node, IHierarchicalEnumerable enumerable)   

 at System.Web.UI.WebControls.Menu.DataBindItem(MenuItem item)   

 at System.Web.UI.WebControls.Menu.PerformDataBinding()   

 at System.Web.UI.WebControls.HierarchicalDataBoundControl.PerformSelect()   

 at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound()   

 at System.Web.UI.WebControls.Menu.EnsureDataBound()   

 at Microsoft.SharePoint.WebControls.AspMenu.OnPreRender(EventArgs e)   

 at System.Web.UI.Control.PreRenderRecursiveInternal()   

 at System.Web.UI.Control.PreRenderRecursiveInternal()   

 at System.Web.UI.Control.PreRenderRecursiveInternal()   

 at System.Web.UI.Control.PreRenderRecursiveInternal()   

 at System.Web.UI.Control.PreRenderRecursiveInternal()   

 at System.Web.UI.Control.PreRenderRecursiveInternal()   

 at System.Web.UI.Control.PreRenderRecursiveInternal()   

 at System.Web.UI.Control.PreRenderRecursiveInternal()   

 


How to implement "Item Limit" for Summary Link Webpart?

$
0
0

Hello,

I would like to know how it is possible to do Item Limit (similar to Content Query Web Parts) for Summary Link Web Parts? Basically I want to limit the number of links they have there to a certain number, so it won't mess up with the styling of the page when users input too many items.

I've tried modifying the .WEBPART and inserting a <property name="ItemLimit" type="int">5</property>, from which I got from a CQWP webpart file. However, it seems SharePoint doesn't implement this as it seems to automatically remove the snippet when I insert it to the page.

Is there a way to implement Item Limit functionality for Summary Links Web Part? OOTB would be better.

Thanks!

How to change the language based on log in user programmatically in SharePoint 2013? how to change the priorities of the Language Preferences in user profile programatically ??

$
0
0

How to change the language based on log in user programmatically in SharePoint 2013,

because it is different from 2010 and 2007 i guss... plz replay ... 

Or how to change the priorities of the Language Preferences  in user profile  programatically

Tankz in advance


Get metadata with Document ID

$
0
0
Hello,

Can we use Document ID and some SharePoint API to get information about document?

I find solution - use SharePoint Fast search service, but this solution suggests that I will crawl content source before.
Also i find DocumentId.FindUrlsById method , but I don't want to link to specific site collection and find document by ID in whole farm.
Is it possible?

Missing Server Side Dependencies

$
0
0

Hello All,

I am facing following server side dependencies.  Following are the few errors. Please post your comments if you had work around with same.

[MissingFeature] Database [PROD01_Content_XXXXX] has reference(s) to a missing feature: Id = [f99f774c-6160-4bb6-8519-10e30b02d5b3]. The feature with Id f99f774c-6160-4bb6-8519-10e30b02d5b3 is referenced in the database [PROD01_Content_XXXXX], but is not installed on the current farm. The missing feature may cause upgrade to fail. Please install any solution which contains the feature and restart upgrade if necessary.

I tried to find this feature with its id using power shell, But its not able to find a feature with the Id.

MissingSetupFile] File [Features\Sharepoint2013_XXXXXMasterPage2013\MasterPage.master] is referenced [2] times in the database [PROD01_Content_XXXXX], but is not installed on the current farm. Please install any feature/solution which contains this file. One or more setup files are referenced in the database [PROD01_Content_XXXXX], but are not installed on the current farm. Please install any feature or solution which contains these files.

I am also getting same error with web part(".Webpart") file too.

MissingSetupFile] File [Features\XXXXX\ProjectDesign\images\uniform\sprite.png] is referenced [1] times in the database [PROD01_Content_XXXXX], but is not installed on the current farm. Please install any feature/solution which contains this file. One or more setup files are referenced in the database [PROD01_Content_XXXXX], but are not installed on the current farm. Please install any feature or solution which contains these files.

I am getting same error for all my images too.

One thing I would like to mention is: I've deployed the sharepoint 2010 wsp on 2013 version.Is this the reason for getting [MissingSetupFile] error?

What should I do to get it resolved ? Help Me.

Editing the HTML Table

$
0
0

Hi,

I want to edit the html table elements at runtime by using edit button.

I have the form designed by html table and asp controls(textbox) with Edit & submit button.

When user fills the form and submit it will display in browser.Now my requirement is when i click edit button the form should be editable and can be saved.

Is there any ways to do it in c# coding or html attributes?

Thanks & Regards,

Poovi

Client Object Model get Display name of DocumentLibrary with umlauts

$
0
0

I load a all Document Libs from a web. But if a name of a document library has an umlaut its, this char is simply ignored.

But fiddler says the umlaut is there.

Why would it take Install-SPSolution / Uninstall-SPSolution several hours to complete?

$
0
0

On an almost empty SP2013 farm with default settings I have to wait overnight for an Install-SPSolution or Uninstall-SPSolution job to complete. What could cause this? The first time I deployed this, everything worked smoothly.

I use the commands in the following manner:

Install-SPSolution -Identity My.wsp -GACDeployment -Force -CompatibilityLevel 15

Uninstall-SPSolution -Identity My.wsp -Confirm:$false 


Uploading a file and its related metadata in Sharepoint using APIs

$
0
0

Hi All,

I am a newbie when it comes to Sharepoint. Just wanted to know whether there is anyway I can upload a document and its related metadata to Sharepoint using APIs.

Apologies is the question is found to be silly.

Regards, Saurabh

Workflow debugging prerequisites failed to complete - VS2013 Autohosted App

$
0
0

I am creating an auto-hosted app on VS2013. I am working with SharePoint Online and not locally. The problem is that when I try to enable the workflow debugging on my project I receive the error:

Workflow debugging prerequisites failed to complete. Would you like to disable workflow debugging in order to debug other parts id this project? Workflows will still be installed but will not have debugging support.
(You can re-enable workflow debugging later from Project properties page - SharePoint tab.)

Since I do not have SharePoint installed locally I am pretty much not able to try something else. I cannot find info for this error on the net.

Another thing I have noticed is a warning I get in my Error List window stating:

Microsoft.Workflow.TestServiceHost.exe ended with error.

Now after many VS reboots I got another warning:

SharePoint Configurator cannot be run as the connection to SharePoint site https://mysharepointonlinesite.sharepoint.com/sites/lab/ has not been initiated yet.

All these warnings aren't discussed on the net apparently because I still cannot find any other info on the subject. Could the issue be the SharePoint Online? According to this blog post http://blogs.msdn.com/b/officeapps/archive/2013/10/30/debugging-sharepoint-2013-workflows-using-visual-studio-2013.aspx workflow debugging for SharePoint online should be supported.


Thank you for any input on the issue.

Site Template missing Calendar webpart

$
0
0

My 'source' site has a calendar WebPart on the front page (and other WebParts). However when I save the site as a template and create a new instance of that site template, the Calendar WebPart is there but it is missing an actual calendar.

In fact when I edit the page and then the calendar webpart it gives me an error. I do have a calendar on that site.

Any clues?

Caml Query- Order By- SharePoint 2013-CSOM

$
0
0

Hi All,

I am new to caml query and have been struggling for this.
I need the last modified List Item. Only one Item.
That means it should be orderby 'modified' and rowlimit should be 1.

But only rowlimit part of my query is working. Not the orderby part.

This is my Query : 

var camlQuery = new SP.CamlQuery();
camlQuery.set_viewXml('<View><Query><OrderBy><FieldRef Name=\'Modified\' Ascending="FALSE"/></OrderBy><RowLimit>1</RowLimit></Query></View>";')

I dont know where I am going wrong.
I even tried removing the Query tags in the above mentioned query. 

The query is working, its getting only one record. orderby isnt working i believe. 
Please help me.

Thanks.

where is the _layouts/15/start.aspx site placed in the sharepoint designer 2013 ?

$
0
0

hi

I can't find the _layouts/15/start.aspx in my sharepoint designer 2013

Where can I find it ?


[CAML] AND condition does not work!

$
0
0

I have written this code.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.SharePoint.Client;
namespace ConsoleApplication1 {
    class Program {
        static void Main(string[] args) {
            ClientContext c = new ClientContext("http://sp2013");
            Web w = c.Web;
            c.Load(w);
            c.ExecuteQuery();
            List l = w.Lists.GetByTitle("Discussions");
            c.Load(l);
            c.ExecuteQuery();
            Console.WriteLine(l.Title);
            CamlQuery query = new CamlQuery();
            query.ViewXml = "<View Scope='Recursive'><Query><Where></And><Eq><FieldRef Name='ParentFolderId'/><Value Type='Integer'>1</Value></Eq><Eq><FieldRef Name='PostType'/><Value Type='Text'>Answer</Value></Eq></And></Where></Query></View>";
            ListItemCollection itemCollection = l.GetItems(query);           
            c.Load(itemCollection);
            c.ExecuteQuery();
            Console.WriteLine(itemCollection.Count);
            foreach (var x in itemCollection) {
                Console.WriteLine(x["Body"]);
                Console.WriteLine(x["ParentFolderId"]);
                Console.WriteLine(x["PostType"]);
            }
        }
    }
}

the code runs fine but returns everything rather than only the items with PostType of "Answer". So the AND part of the query is not working. No Errors!


val it: unit=()

RunWithElevatedPrivileges and Sharepoint App


Client Object Model - get "Title" of an Folder object

$
0
0

I'm using the C# client object model to retrieve recursively all doclibs and their folders from a web.

        private void LoadSubFolders(Microsoft.SharePoint.Client.Folder SPFolder, ICollection<Folder> folderCollection)
        {
            clientContext.Load(SPFolder, folder => folder.Folders
                .Include(f => f.Name, f => f.ServerRelativeUrl, f => f.ListItemAllFields, f => f.ListItemAllFields.DisplayName)
                .Where(f => f.Name != "Forms"));
            clientContext.ExecuteQuery();
            var currentFolder = new Folder { Name = SPFolder.Name, Path = SPFolder.ServerRelativeUrl };
            folderCollection.Add(currentFolder);

            foreach (var folder in SPFolder.Folders)
            {
                LoadSubFolders(folder, currentFolder.Folders);
            }
        }

When I call the "Name" property I get the internal name of the folder, which differs from the display name because of umlauts.
I need to get the "Title".

I tried this:

clientContext.Load(SPFolder,
f => f.Name,
f => f.ServerRelativeUrl,
f => f.ListItemAllFields,
f => f.ListItemAllFields.DisplayName); 
clientContext.ExecuteQuery();

But then I get the following message when accessing the DisplayName:

'SPFolder.ListItemAllFields.DisplayName' threw an exception of type 'Microsoft.SharePoint.Client.ServerObjectNullReferenceException'

See also this question:
Client Object Model get Display name of DocumentLibrary with umlauts

Thanks!

Connect SharePoint List selected row to Custom Web Part?

$
0
0

Hello,

I was wondering if it is possible to transfer data between a list and a custom web part.  I know I can transfer row data between different SharePoint lists to act as filters; I simply want to employ the same functionality so that a SPGridView in my web part queries a second list based on the selected row of the first list.

Now I understand I could create two SPGridViews, each handling a different list, and replicating the row selected event for one of the grids, but I really have my heart dead set on an OOTB SharePoint List and a custom web part.

thank you for your time.

EDIT:

After further research, I've come to the understanding that I need a connectionconsumer webpart method in order to retrieve data from a webpart.

[ConnectionConsumer("Filter Consumer", "FilterConsumer")]
        public void ConsumeFilter(IFilterValues filterValues)
        {
            _filterVals = filterValues;
        }

But in order to interact with the right webpart, I need to use the matching Interface (e.g. IFilterValues) for the method parameter.  At least, that is what I believe.

So the question now becomes: what is the matching interface for connecting a SharePoint List web part via "Send Row of Data to" 

Retreive a document from sharepoint online without SP client object model

$
0
0
I need some help on retreiving document from sharepoint online without using SP client object model. Any links or info shared would be of great help
Assuming me new in this context

Workflow 2013 is not removed from library after retract

$
0
0

Hello.

I created a test workflow 2013 in VS 2013, while adding this workflow to the project I selected document library for it and also selected pre-created tasks and history lists.

I deployed the worklow from VS project menu, then started it manually in the library, worflow completed successfully.

After it I called "Retract" from VS project menu, it completed without errors, but teh workflow stayed in library. Then I deployed it again, went to the library workflow settings, removed the workflow, retracted it again using VS project menu.

But, now when I go to library - workflow setings - add workflow, I still can see there my workflow option (though the solution is retracted and feature is removed from site collection).

What should I do to remove it?

SharePoint 2013 Workflow deploying to Staging :Workflow XAML failed validation due to the following errors: Cannot create unknown type '{wf://workflow.windows.net/$Activities}GetCurrentItemId'

$
0
0

Hi,

We have created SharePpoint 2013 Visual studio workflow in development its working fine. When i moved to staging server. Its not working. Its throwing below error. Help on this appreciated.

Application error when access /_layouts/15/ManageFeatures.aspx, Error=Microsoft.Workflow.Client.ActivityValidationException: Workflow XAML failed validation due to the following errors: Cannot create unknown type '{wf://workflow.windows.net/$Activities}GetCurrentItemId'. HTTP headers received from the server - ActivityId: c34f1447-8299-417e-9fed-3db069575cd7. NodeId: HFSP2013STG01. Scope: /SharePoint/default/fff19e1b-4a2b-42e5-a144-5341d052e82c/5c6c812e-59c7-439d-9d17-3fc9018dbfe1. Client ActivityId : f6206c9c-6e56-1004-2903-ca5b22924982. ---> System.Net.WebException: The remote server returned an error: (400) Bad Request.    

The above error occured while activating the workflow feature.

Viewing all 7589 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>