Quantcast
Channel: Microsoft Online: SharePoint Online forum
Viewing all 10096 articles
Browse latest View live

Getting Versions: An error occurred while enumerating through a collection: The collection has not been initialized.

$
0
0

I've run up on this error again.  I'm not sure how to go about getting around it.

I have a field that is a Multiple lines text with Append Changes set.  I'm trying to retrieve all the items.  I've found how to do this in Sharepoint 2013 using powershell but the PNP way of doing it isn't working for me.

When I run:

$VersionData = ''
foreach($version in $qaDatabaseItem.Versions)
{    
    $VersionData+= $version["Status_x0020_Comments"]         
}    
Write-Host $VersionData
I get the error:

An error occurred while enumerating through a collection: The collection has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested..
How do I initialize versions?


David Jenkins


Changes were made to this file. Republish to update changes.

$
0
0

Hi, 

Can someone explain what this message means?

Changes were made to this file. Republish to update changes.

Regards, 

André Kooijman

SharePoint 2013 - Create buttons to apply filter to a list

$
0
0

Hello everybody,

I have a list on SharePoint 2013 (free version) and I'd like to create buttons that, as soon as you click on them, they apply filter to said list.

If you click on Project 1, the list will display only the items associated to Project 1.

I tried with this code:

<script src="https://code.jquery.com/jquery-1.12.4.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
    $("input[name='Project']").click(function(){
        window.location.href=window.location.href.split("?")[0]+"?FilterField1=Project&FilterValue1="+$(this).val().substring(0,1);
    });
});
</script>
<input name="Project" type="button" value="Project 1"/>
<input name="Project" type="button" value="Project 2"/>
<input name="Project" type="button" value="Project 3"/>

But it doesn't work.

Any help? :)

Thanks,

Laura

unable to create sites and apply template in sequential way. Any suggestions please

$
0
0

I have MFA enabled due to which whenever I run PNP powershell I have to user -useweblogin. But this is also not working when I loop through several sites. 

 

requirement: 1.   Using PNP I have to create 50 Sitecollections :SharePoint online

2. Apply PNPProvisioning Template
3. Associate each site to HUB site. 

4. Enable external Sharing for each. 

 

When I ran below command it will fail after creating first site.  So I have to remove "start-sleep -s 1-" from the script. If I do that, it will create all the sites but "Provisioning template" is applying early without waiting for site to be created properly. Due to which it will fail applying template after 2 sites. 

 

 

Not sure how to fix this. trying since 5days. no luck. 

$TenantUrl = "https://m365x539190-admin.sharepoint.com"
$myHubsite = "https://m365x539190.sharepoint.com/sites/testing"
        Connect-pnpOnline -url $TenantUrl -Credentials -useweblogin
         $siteCollectionList = Import-Csv -Path "C:\sites.csv"
    #Loop through csv and provision site collection from each csv entry
    get-date
    foreach ($siteCollection in $siteCollectionList)
    {
        $SharePointUrl = $siteCollection.Url
        $SiteOwner = $siteCollection.Owner
        $Title = $siteCollection.Title
        $Template = $siteCollection.SiteTemplate
        $TimeZone = $siteCollection.TimeZone
        #Create site collection based on values above        
        New-PnPTenantSite -Owner $SiteOwner -Title $Title -Url $SharePointUrl -Template $Template -TimeZone $TimeZone  -Wait
        write-host "Site Collection $($SharePointUrl) Created Successfully!" -foregroundcolor Green
        get-date
        Start-Sleep -s 10

        #connect to each site that was created earlier and then apply PNP template
        Connect-PnPOnline -Url $SharePointUrl -Credentials -useweblogin
        Apply-PnPProvisioningTemplate -Path C:\template8.xml
        write-host "Template applied $($SharePointUrl) Successfully!" -foregroundcolor Green
          #connect to tenant site again and then add each site to HUB
         Connect-pnpOnline -url $TenantUrl -Credentials -useweblogin
        Add-PnPHubSiteAssociation -Site $SharePointUrl -HubSite $myHubsite
        write-host "Hubsite association of $($SharePointUrl) completed Successfully!" -foregroundcolor Green
        Start-Sleep -s 1
        #Connect to Tenant site again and then connect to each site and enable external sharing
        Connect-PnPOnline -url $TenantUrl -Credentials -useweblogin
        Connect-PnPOnline -Url $SharePointUrl -Credentials -useweblogin
        Set-PnPSite -Identity $SharePointUrl -Sharing ExternalUserSharingOnly -Classification "Private External"
        write-host "External Sharing Enablement for $($SharePointUrl) completed Successfully!" -foregroundcolor Green
        get-date
        }

How to highlight a match within a column.

$
0
0
We would like to have a column and when one column entry matches the same value in the same column for a different line item, then it would be highlighted in some way.  Think reconciling entries that require two line items; one for start and one for end, and we want to know when both are present.  How to do this?  JSON?

Add-SPOHubToHubAssociation cannot read site information

$
0
0

I am running into an issue when attempting to associate a Hub site with another Hub site.  The documentation (https://docs.microsoft.com/en-us/powershell/module/sharepoint-online/add-spohubtohubassociation?view=sharepoint-ps) says to use to the urls as the source and target - this however does not work.

PS C:\> Add-SPOHubToHubAssociation -Source https://XXXXX.sharepoint.com/sites/IT -Target https://XXXXX.sharepoint.com/sites/depts
Add-SPOHubToHubAssociation : Cannot bind parameter 'Source'. Cannot convert value
"https://XXXXX.sharepoint.com/sites/IT" to type "System.Guid". Error: "Guid should
contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)."
At line:1 char:36
+ ... ciation -Source https://XXXXX.sharepoint.com/sites/IT -Target ...
+                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Add-SPOHubToHubAssociation], ParameterBinding
   Exception
    + FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.Online.SharePoint.PowerShe
   ll.AddSPOHubToHubAssociation

Finding the GUIDs for sPOnline is a challenge to itself.  But when I find them and try to use them SPO does not like this either:

PS C:\tech\scripts> Add-SPOHubToHubAssociation -Source a2cc8a82-c090-4c12-9152-0bce2f52e8f2 -Target fc67e39b-be25-404e-95df-0015ba247249
Add-SPOHubToHubAssociation : The method or operation is not implemented.
At line:1 char:1
+ Add-SPOHubToHubAssociation -Source a2cc8a82-c090-4c12-9152-0bce2f52e8 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Add-SPOHubToHubAssociation], ServerException
    + FullyQualifiedErrorId : Microsoft.SharePoint.Client.ServerException,Microsoft.Online.ShareP
   oint.PowerShell.AddSPOHubToHubAssociation

Has anyone found a way to make this work?

Linking an on-prem Distribution List to a SharePoint online site

$
0
0

We have a distribution list that have been created using our on-prem Exchange server that we have given to our customers and they have been using this for many many years...

We have created a SharePoint site with the same users that are in the DL and would like to somehow get the email that comes in from the DL to go to the SP site, which would then go to all the members of the site.

Is this possible? I could not find anything regarding this when I attempted to search for anyone else having this situation

Generate OneDrive Site Report Via PowerShell for Specific Geographic Region

$
0
0

Hi, we have a need to run a report for all OneDrive user site by using SPO PowerShell, the report should include the hidden SharePoint hidden site collection for personal site like below:

https://mycompany.sharepoint.com/personal/tee_ng_mycompany_com/

We need to run a specific Region like US or Canada.

Can you point my if there are any PowerShell script that can generate report to meet above requirement?

Thanks

Tee


Stop Auto play videos

$
0
0

We have SharePoint online as our company Intranet and it has yammer webparts, some third party we are using.

When SharePoint page load then the audios and Videos with in Yammer which is being used as webpart automatically play in Chrome browser. Kindly help me with a solution to stop yammer videos autoplay from SharePoint online.

i tried with HTML code but no luck

<audiotype="audio/wav"id="audio"autoplay="false"autostart="false"></audio>


Santosh sethi

Anyone else experiencing slow SharePoint Online

$
0
0

Searching, navigating, creating new items, Everything is so slow recently.

Any ideas why?

Sharepoint giving 401 unauthorized error instead for 404 file not found for a site that doesnt exists using CSOM

$
0
0
I have created an azure function which gets the site name from the end user and uses CSOM code to get the owners of a sharpoint online site collection using service account credentials. Now there are few sites where event service account doesnt have permission(Lets call them super secret sites). For this we get 401 unauthorized error and we show the same to the end user. However the issue is with the sites that doesnt exists. when the end user enters a site that doesn't exists, the azure function using csom code throws the 401 unauthorized error instead of something like "Cannot contact site at the specified URL . There is no Web named ". if I enter incorrect url in the brower I get the 404 file not found error.  how can i differentiate between a super secret site and a site that doesnt exists i.e a wrong url, to show the user proper error message.

SharePoint Online - Default Link Type

$
0
0

I updated the "Default Link Type" to "Direct"(Specific People) both at Tenant level and site level.

At Tenant level, I updated using the URL: https://Tenant-admin.sharepoint.com/_layouts/15/online/ExternalSharing.aspx

At site level, I updated using the PS Script : Set-SPOsite -Identity SiteURL -DefaultSharingLinkType Direct

The default link type setting is reflecting correctly at Tenant and site level.But still when I go to a document library in that site --> select any document --> clicked on "copy Link" ,it shows "People with existing access" as the default value instead of "Specific People"

How to fix this?

What is the purpose of enabling and disabling the tenant service principal in SharePoint Online?

$
0
0

Hi everyone,

I'm in a learning process of SharePoint Online PowerShell commands and I have some trouble understanding what is the purpose of the command set for managing the service principal. I don't understand the sense of enabling or disabling the service principal in SharePoint (Enable-SPOTenantServicePrincipal andDisable-SPOTenantServicePrincipal).I implemented a basic webpart to retrieve User's OneDrive root files and folders and everything works fine. I'm using the context property to get a proper token and query graph, I took the example from this page: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/guidance/connect-to-api-secured-with-aad

I supposed that disabling the service principal will take effect and I would not get a proper token to make the call. However, the webpart always retrieves the files and folders from user OneDrive. Can anyone explain a real scenario of how the service principal is used?

Regards.

What is the crawl property for a site column of type single line of text named "EntityName"? is it "Ows_EntityName" or "ows_q_TEXT_EntityName"

$
0
0

I am a bit confused on what should be the crawl property for a single line of text site column named "Entity Name"? based on my test the crawl property is "OWS_EntityName", while inside this link @ https://docs.microsoft.com/en-us/sharepoint/technical-reference/automatically-created-managed-properties-in-sharepoint it is mentioned that the crawl property for single line of text should be in this format "ows_q_TEXT_SiteColumnName"

but inside our tenant we do not have such a crawl property? and when i used the "ows_entityname" inside a refiner it worked well... the only issue is that the link applies for SP serve not SP online, so is this the reason? and from where i can get similar list of crawl properties inside SP online?

Thanks

Adding a crwal property for a Yes/No as a refiner will show the result as "All","1" & "0"

$
0
0

I have a Yes/No site column named "Deal", and i want to add it as a refiner inside a search result web part. so i search for the available crawl properties and i found one named "ows_q_BOOL_deal", but when i added it as a refiner inside my refiner web part i got the values as "All","1" & "0" instead of  All,"Yes" & "No", as follow:-

.. any advice?

Thanks


File Upload Issue in SharePoint Online

$
0
0

Hi, I have a PDF file of 25.8 MB in size. Somehow I am not able to upload this file to SharePoint Online. I did following steps to upload this file.

1. Dragged the file to document set.

2. Upload progress bar appeared and it took roughly 20 minutes to upload.

3. After 20 to 25 minutes file upload failed.

I have verified SharePoint server is available and other files are uploading properly.

File details:

File Type: pdf

Language: File content is in Chinese language

File contains signatures in it that are not verified.

File size: 25.8 MB

Questions:

Is there any logs exist for the uploaded file?

Does SharePoint perform any background activity during file upload. Some kind of indexing or signature verification or some other activity?

I have tried to upload using Upload button and also dragged/dropped file but file didn't upload. Is there any other way to upload this document?

Thanks,

Furqan

Rename of Team Channel doesn't rename associated SharePoint files Folder

$
0
0

When renaming a Team Channel, the associated SharePoint folder continues with it's previous name. https://microsoftteams.uservoice.com/forums/555103-public/suggestions/16934143-rename-of-team-channel-doesn-t-rename-associated-s

Any workaround?

Protect sensitive / confidential data in SharePoint online List

$
0
0

I am developing a custom application in my company which is in SharePoint online. This portal has multiple integrations with other O365 suites. My application contains sensitive user transactions which need to be masked from everyone, its like financial transactions. And only this application requires to access this data for making the judgement. I wish to know what all steps need to be followed other than data encryption in list, remove permission to list, mask the list from SharePoint search if I use a SharePoint list for storing the data. 

The data is used by ASP.NET web api and SPFX framework also.

Kindly suggest.


Breaking permissions on Document Library or Folder which has more than 100K items

$
0
0

Hi,

I am using SharePoint Online Modern environment.

Library Name

Folder

No of files

Total in the Document Library

XYZ - Document Library

A – Folder (Broken Permissions)

5000

256000

B- Folder (Broken Permission)

50000

C – Folder (Broken Permission)

200000

files

1000

Q1. If 3 folders total up to 100K documents, does this mean

  1. I cannot break permissions on the document library
  2. I can even break permissions on a 4th folder like D which is a sibling of A,B,C even though folder D has just a few files.

Q2. If Folder A, B and C are migrated with the broken permission and they total more than 100K files like the above example, will they still retain their unique permissions or since they now total more than 100K, all permissions from document library are automatically inherited by the A B C folder?

Q3. If the document library already has more than 100K and now we migrate more folders with broken permissions like folder D,E, F from file share using Microsoft migration tool, will the broken permissions come along i.e. will I now see folder A, B, C, D, E, F with broken permissions?

Please let me know if you have any answers.

Thanks      


How to create "View Only" permission Level in SharePoint Online

$
0
0

Is it possible to create a View Only Permission level in SharePoint online?

I want to assign permission to certain folder in a document library so I want the user to have view Only access to the Document library. I don't want the user to have Read access to the document library or any other folder. 

I know, I can share the folder to the user, but without the folder path user will not be able to access the folder, So I am looking for a way to create a view only custom permission level.

Please let me know if you have any suggestions.

FYI: I am talking about the Custom Permission Level for View Only not the default Read permission level.

Thanks.

Viewing all 10096 articles
Browse latest View live


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