Questions tagged [sharepoint-server]

SharePoint Server is the Microsoft product "SharePoint Server".

2
votes
1answer
2k views

Error handling in ensureuser() method

I have an issue where I am trying to handle the error but could not get it done. here is the code: $UserSPU = "domain\user" $site = Get-SPSite http://siteurl $web = $site.OpenWeb() $user = $web....
2
votes
3answers
2k views

Create a view based on filesize column and apply filter in a document library

in a web application there is a document library and daily 1000 to 2000 documents are uploaded by users, so here i want to calculate the average size of documents uploaded to this web application, ...
2
votes
2answers
6k views

RegEx to validate and replace invalid file name characters from a custom web part file upload control

Scenario: I have a fileupload control in my custom webpart that attaches the uploaded files to the list item. The attachment code is given below: private void UploadAttachments(Helper ...
2
votes
4answers
5k views

Download file using REST

I want to download a file using REST API. I have a file in a document library /folder. I want download that file, but with a different name. Edit 1 : Below is my code. i am able to download file on ...
1
vote
2answers
4k views

Sorry, we can't open 'http://xxx/xx.xlsx' because the server isn't responding. When opening an excel (or word) in SharePoint 2013?

I recently found an issue in SharePoint 2013, where I am not able to Office documents from SharePoint Library, Which was working fine last week!!!. When I click on the file, it says Sorry, we can't ...
1
vote
1answer
151 views

Add tiles in the app launch

Is it possible to add other tiles besides newsfeed, OneDrive, sites in the app launch in the above blue bar in SharePoint 2016?
1
vote
1answer
115 views

SharePoint 2013 E-Mail Invitation Doesn't Work

Recently I've upgraded our SP2010 farm to SP2013. When sharing sites or others objects with someone, there is a "send e-mail invitation" check-box and it works fine on SP2010 visual sites but it is ...
1
vote
2answers
3k views

Trace who and when a site collection got deleted Permanently in sharepoint 2013

A site collection was missing, nothing in the recycle bin. Get-SPDeletedSite return nothing. Are there any log that i can trace who and when the site collection got deleted? Thank you in advance.
1
vote
2answers
1k views

Cannot find resource for the request $batch Sharepoint server 2013

When i try to execute sample batch code in Sharepoint server 2013 i'm getting the error 'Cannot find resource for the request $batch' Int16 listRetrievalCount = 0; if (IsPostBack) { ...
1
vote
1answer
169 views

IF Statement <= Date Calculated Column

I'm trying to complete this IF statement where IF DATE CREATED is earlier than 31 December, 2017, THAN input CCEA-17-ID#; OTHERWISE input CCEA-18-ID#. Currently, this code: =IF([DATE CREATED]<="...
1
vote
2answers
172 views

How to hide SharePoint field from users

Hey I want to hide one important field(TestC) from users. Approves group only look at that field. I just tried using js, But it doesn't work. Need help <script src="/Shared%20Documents/Jquery-3.1....
1
vote
1answer
177 views

Adding new server to sharepoint 2013 farm

I have 2 tier SP farm (SP and SQL) I want to add new server(3rd) with following PowerShell script, the same error with Configuration wizard Connect-SPConfigurationDatabase -DatabaseServer "192.168.1....
1
vote
1answer
575 views

Programatically remove item from search index immediately in SharePoint 2013

Is it possible to remove item from search index programatically SharePoint 2013? I know there was tool called "docpush" in SharePoint 2010 but i couldn't find it in SP2013. Thanks
1
vote
2answers
3k views

Making SharePoint list columns searchable

I've created a list with local columns of Currency type. I created managed properties of text type by going to site collection level 'search schema' and waited for Full crawl to run. This didn't work. ...
1
vote
0answers
31 views

How I update the Managed Metadata Field in Document Library for only .Zip Files using PowerShell [duplicate]

<Code For Termset> [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Taxonomy") $site = Get-SPSite http://invi28apps9c $session = New-Object Microsoft.SharePoint.Taxonomy....
1
vote
1answer
197 views

How to get “AutoCleanupDays” property of workflow in SharePoint 2013

I'm trying to get "AutoCleaupDays" property of workflow association but workflowassociation always returning null. Then I tried with workflowSubscriptionService & here I am getting my workflow but ...
1
vote
0answers
519 views

Cannot invoke method or retrieve property from null object. Object returned by the following call stack is null. \“File\r\n\”

I am trying to edit an existing page with this code. When I am setting a publishComment it is throwing this exception. item["Title"] = pageTitle; item["PublishingPageContent"] = pageContent; item....
1
vote
1answer
1k views

Get the list of users from User Profile in SP2013 with programmatically

I have to get all the users from User Profiles. I have to implement search on those users on the basis of First Name & Last Name. This question may be repeated but I don't get use-full solution so ...
1
vote
2answers
142 views

SharePoint CU installation - Updating from Aug 2013 to May 2016 CU

I am working in an environment where the sharepoint patches are in the below level. SP2013: Farm 1 - Build Version 15.0.4727.1000 - June 9th, 2015 Farm 2 - Build Version 15.0.4535.1000 - ​August ...
1
vote
1answer
97 views

How to take a site collection backup without Active directory and permissions?

I need to move our site collections from one server to another which have different AD and Domain, Please suggest any idea for better migration?
1
vote
2answers
580 views

Does SharePoint 2013 search index partition need additional SP server?

we have SP 2013 production environment with search items approximately 6 Million. We are planning to do index partition once search items reach 10 Million items. We are having topology with two ...
1
vote
1answer
1k views

Check if list exist sharepoint online using REST api

I am creating a functionality where I need to check if a particular list exist in SharePoint online site/web. The catch here is there would be more than 10000 lists where I am checking. I found a way ...
1
vote
2answers
123 views

JSOM to load pop with new item form if user is not created previously

I want to create one SP dialogue box at home page which load the new item form of list or survey if current login user is not created any item previously. Is there any way to do that ? I tried using ...
1
vote
1answer
110 views

DBCC CHECKDB Corruption in Search_Service_Application_CrawlStoreDB

After some recent server issues, the SharePoint full backup keep getting an error when checking for database integrity. The following error message is thrown in SQL logs: DBCC CHECKDB (...
1
vote
1answer
819 views

Attaching Event Receivers on more than one list

I have a SharePoint 2013 site with multiple lists. Many of the lists have a common content type. We have created custom event receivers to be attached to these lists. But since we want the same event ...
1
vote
1answer
1k views

How to get more than one SharePoint list using REST API?

I have created multiple lists in SharePoint 2013. I need to get the multiple list items using REST API call. I have tried the method to get the multiple list items using API within the for loop but ...
1
vote
2answers
601 views

How to get the current crawl duration using powershell in SharePoint 2010?

I could able to get the name of active crawls, how to get the current crawl duration From the below powershell script which i tried. Get-SPEnterpriseSearchCrawlContentSource -SearchApplication "...
1
vote
2answers
443 views

Extended sharepoint site (SSL enabled) with https not accessible

I extended the sharepoint 2013 site (http://sharepoint.mydomain.com) to https(on port 443) (https://sharepointdifferent.mydomain.com) with SSL enablement. Created the self signed server certificate ...
1
vote
1answer
933 views

What happens if I don't configure mysites?

We are reconfiguring our Sharepoint User Profile Service (Enterprise 2010). Now, I don't really want to use mysites at all. Do I need a User Profile Service, then? The only think I can think of ...
1
vote
1answer
668 views

Windows updates on Sharepoint Servers in the same farm

We have a SharePoint farm with few servers. Recently some servers are updated with Windows security patch & few are not updated. I am aware that Sharepoint product patch level should be same on a ...
1
vote
2answers
588 views

How to hide SharePoint list columns from users based on permission

I need to hide "Approver" add "Title" fields in my SharePoint list. I used the following JS. <script type="text/javascript" src=class="vglnk" href="https://...SiteAssets/jquery- 1.10.1.min.js"<...
1
vote
2answers
1k views

SharePoint 2013 list in SQL

I have a couple of questions: Where does SharePoint list stores data in SQL? Is there article for SP2013 on MSDN or TechNet? - I can find outdated articles which explain table structure for a list ...
1
vote
2answers
100 views

update list item in SharePoint

I have two list(A and B) in the the same site collection. I need to update the item in list B based on list A. Requirement: If user select the drop down item of column name"Student category" in ...
1
vote
1answer
480 views

Can't set Target Audience property for list view webpart into a custom list with powershell

I have tried to set target audience property with the lines code: #Create client context $ctx = New-Object Microsoft.SharePoint.Client.ClientContext($SiteUrl); $ctx.Credentials = New-Object Microsoft....
1
vote
1answer
198 views

Can Anonymous users view dashboards reports from a BI site in SharePoint 2013?

In SharePoint 2013 : Does anonymous access support for BI sites where dashboards are deployed using Performance point services and SQL Server analysis server? Where as in SharePoint 2010 this ...
1
vote
1answer
1k views

Best approach for un-installing SharePoint Designer 2013 from my windows server 2008 R2

I have two SharePoint farms; Live & Test. both have the following software specification. SharePoint enterprise server 2013, with SP1. installed inside windows server 2008 R2. Now when I built ...
1
vote
1answer
917 views

How to get webPart XML with powershell from SharePoint WebPart Gallery

I want to get web part XML from SharePoint Web Parts Gallery(not locally) for add webpart into a List page. This is my code: $spWeb = Get-SPWeb $webURL $spSiteCollection = Get-SPWeb -Identity $...
1
vote
1answer
1k views

Can any one explain ? How AccessDenied.aspx is calling in sharepoint 2013

I would like to redirect to sign in as different user page instead of AccessDenied.aspx. could any one please explain how to do that?
1
vote
1answer
845 views

Audience in SharePoint 2016

Can we control content using Audience in SharePoint 2016? Use case : I want to display List content using Content Query webpart. But all content will not be visible to all users. Can we control ...
1
vote
1answer
996 views

Creating a Managed Property using PowerShell script

I created a Managed Property using the SharePoint 2013 UI, then I re-index and all works well. Now I have been asked to create the same Managed Property using PowerShell script, but I have no idea ...
1
vote
3answers
4k views

How to delete a document, locked by another user ? I'm a super admin

How to delete a document, locked by another user ? I'm a super admin. Environment: SharePoint 2013. We have a document library. Inside this we have a excel document, when I try to delete the ...
1
vote
4answers
3k views

HTTP Error 503 the service is unavailable

When I open Central Administration I get this error HTTP Error 503. The service is unavailable. Same error also when I open my SharePoint Server 2010 site HTTP Error 503. The service is ...
1
vote
2answers
3k views

change the name of SharePoint 2013 Farm SQL server

i am needing to rename my SharePoint farm SQL DB server i have been told that i would have to fully recreate the farm to rename the sql server. i am needing to rename it to SQLSERVRE2 original naming ...
1
vote
2answers
1k views

Creating a list event receiver with Visual Studio 2013

I cannot find the create list event receiver wizard in VS2013 - it was there in VS2010. I want to be able to add an event receiver (in C# - item_added) to an already existing list. In VS 2010 it ...
1
vote
1answer
333 views

How to Clone the sharepoint 2010 farm server

I want to setup a clone Server for Sharepoint 2010 There are four production server running sharepoint server 2010 and one SQL server for ContentDB management.
1
vote
1answer
2k views

Dynamic Calculated column in Sharepoint

I have a calculated column that calculates today date dynamically I followed this link problem is calculated column in number data type. I want it as Date and Time date format. I want to calculate ...
1
vote
2answers
842 views

Anonymous document library prompts for credentials

I have given anonymous access on document library (Not on entire website). by following the below steps i given anonymous access, Enabled the anonymous access to the Web application from Central ...
1
vote
1answer
59 views

Online to On Premise?

So i'm trying to gather some information for my employer. Without diving into reasoning or great detail my question is; Is it possible to migrate from SharePoint Online to On Premise? (Standard or ...
1
vote
1answer
3k views

How to use Bootstrap in custom master page in sharepoint 2013

I have created html page for branding using bootstrap3. Now when I want to use the same in share point 2013 as master page it is overriding the MS classes and design. Can any one suggest which is the ...
1
vote
1answer
785 views

How to display a Word document that contains links and bookmarks, to SharePoint page

I have a word document that contains links. The links take the user to bookmarks in the same document. I want to display this document in SharePoint 2010, but have the links and bookmarks still ...