sharepoint / pnp-guidance Goto Github PK
View Code? Open in Web Editor NEW-
-
Hi,
I am extracting office 365 project site collection by using the below powershell script
Connect-SPOnline
Get-SPOProvisioningTemplate -Out "PnP-Provisioning-File.xml"
but i am getting below error while extracting the project site collection
**The object specified does not belong to a listGet-SPOProvisioningTemplate : The object specified does not belong to a list.
At line:1 char:1
- CategoryInfo : WriteError: (:) [Get-SPOProvisioningTemplate], ServerException
- FullyQualifiedErrorId : EXCEPTION,OfficeDevPnP.PowerShell.Commands.Branding.GetProvisioningTemplate**
Please help me out on this
Repro Steps:
Actual Result:
The link redirect to 404 page
Expected Result:
The link redirect to correct page
I followed the exact same steps as mentioned in the sample but I get this error for a simple site.
at System.String.Substring(Int32 startIndex, Int32 length)
at System.String.Substring(Int32 startIndex)
at OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.TokenParser..ctor(Web web, ProvisioningTemplate template)
at OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.SiteToTemplateConversion.ApplyRemoteTemplate(Web web, ProvisioningTemplate template, ProvisioningTemplateApplyingInformation provisioningInfo)
at Microsoft.SharePoint.Client.WebExtensions.ApplyProvisioningTemplate(Web web, ProvisioningTemplate template, ProvisioningTemplateApplyingInformation applyingInformation)
XMLTemplateProvider provider = new XMLFileSystemTemplateProvider(@"D:\templates", "");
var result = provider.GetTemplate("SampleTeamSite.xml");
if(result.PropertyBagEntries.Count >1)
{
ProvisioningTemplate template = result;
Web newweb = ctx.Web.GetWeb("amarnugettest5");
newweb.ApplyProvisioningTemplate(template);
}
Repro Steps:
Actual Result:
The link redirect to 404 page.
Expected Result:
The link redirect to correct page.
Repro Steps:
Actual Result:
The link "Branding.Refresh" redirect to 404 page.
Expected Result:
The link redirect to correct page.
Is Taxonomy user profile properties sync considered in next release?
Add more details on timeouts and best practices for long running operations
Repro Steps:
Actual Result:
Link is not "clickable".
Expected Result:
Link should be "clickable"
Repro Steps:
Actual Result:
The link redirect to 404 page
Expected Result:
The link redirect to correct page
When deploying version 2 of a template is there an advised path for handling data migration?
Hello,
I'm trying to provision programmatically an Unified group using the following command:
New-PnPUnifiedGroup -DisplayName "PnpGroup1" -Description "Group Created With Pnp" -MailNickname "PnpGroup1" -Members "[email protected]" -IsPrivate
The group itself is well provision but the linked sharepoint site collection is never provision. After two days, the "Site Url" property of my unifiedgroup still returns "Unable to provision resource".
Note that if I browse through the group using outlook online and then I click on the "file" tab and the button "browse library" then it triggers the sharepoint site collection creation.
Is there a way to fully generate the unified group (and the linked sharepoint site collection) using cmdlet ?
Thx for your feedback
Article that describes how to use app-only and more important that describes what doesn't work using app-only
Repro Steps:
Actual Result:
The link redirect to 404 page.
Expected Result:
The link redirect to correct page.
Repro Steps:
Actual Result:
This link "Azure Management Portal" is jump error.
Expected Result:
This link should jump correct.
Repro Steps:
Actual Result:
The link "OfficeDevPnP.Core " redirect to 404 page.
Expected Result:
The link redirect to correct page.
Repro Steps:
Actual Result:
The links like "Provisioning.Pages sample" redirect to 404 page
Expected Result:
The links like "Provisioning.Pages sample" redirect to correct page
Article to collect all property bag keys and how they can be used to control settings, which are not available directly with CSOM. Things like.
One article with all the supported properties (table listed with sub chapters for additional details), including sample for each of them
Repro Steps:
Actual Result:
The format of bullet dispalys incorrectly
Expected Result:
The format of bullet dispalys correctly
A lot of guidance material, PowerPoints etc. are referring to "App model". Would it be worth going through these now and updating with new nomenclature?
I'm trying to follow this guide for customizing Sharepoint on O365 with javascript:
https://github.com/OfficeDev/PnP-Guidance/blob/master/articles/Customize-your-SharePoint-site-UI-by-using-JavaScript.md
When I run the Core.EmbedJavascript project, it deploys to my O365 developer site successfully, but after I authorize O365 to trust my app and my browser redirects to
I get this error:
Server Error in '/' Application.
Access denied. You do not have permission to perform this action or access this resource.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: Microsoft.SharePoint.Client.ServerUnauthorizedAccessException: Access denied. You do not have permission to perform this action or access this resource.
The entire error listing is here:
http://pastebin.com/73TJvDW7
Does anyone know how to fix this?
Thanks in advance.
Repro Steps:
Actual result:
Sentence is not placed under the picture
Expected result
Sentence should be placed under the picture
On this page --> https://msdn.microsoft.com/en-us/pnp_articles/upload-large-files-sample-app-for-sharepoint is a method - UploadFileSlicePerSlice - I have re-purposed but essentially follows the same process i.e. if file is < 3MB use ContentStream otherwise upload the file in slices (StartUpload/ContinueUpload/FinishUpload).
I have discovered that the returned 'uploadFile' is in a different state depending on which of the two options are used. When attempting to access 'uploadFile' (e.g. ListItemAllFields) after FinishUpload an error is thrown saying can't access stream once closed. I added a ctx.Load(uploadFile) between the FinishUpload and the ctx.ExecuteQuery() and now uploadFile is returned from both paths in a similar state. Should the sample function be amended to show this?
However, further to this, it seems the slicing option does not honour the Libraries ForceCheckout and EnableVersioning settings when set to false.
After uploading a large file to a Library where "Document Version History" is set to "No Versioning" and the "Require Check Out" is set to "No". There are two versions of the file (one version for file upload and the other version where values on the ListItem are set) and the file is in a Checked Out state to the user who ran the upload.
I suspect only part of this issue is relevant to this repo.
Repro Steps:
Actual Result:
The link "sample project" redirect to 404 page
Expected Result:
The link "sample project" redirect to correct pae
Repro Steps:
Actual Result:
The links redirect to 404 error:
Core.SiteClassification
Core.EventReceiversBasedModifications
Core.SitePermissions
Core.GroupManagement
Expected Result:
The links redirect to correct page.
Repro Steps:
Actual Result:
This link is jump error.
Expected Result:
This link should jump correct.
Repro Steps:
Actual Result:
The links like "Core.EventReceiversBasedModifications " redirect to 404 page
Expected Result:
The links like "Core.EventReceiversBasedModifications " redirect to correct page
Repro Steps:
Actual Result:
The link redirect to 403 page
Expected Result:
The link redirect to correct page
Repro Steps:
Actual Result:
This link is jump error.
Expected Result:
This link should jump correct.
Hi, The article on performance gave great advice on optimizing ajax calls. I've found one of the best optimizations was to avoid making the ajax call at all and just delivering the content on the initial payload from a listviewwebpart..
It would be great if this was supported out-of the box.
It would be even better if an SPFX webpart could include a CAML(or rest) query in its manifest that specified the data it needed to start, and that data was just there automatically when the webpart started without making any ajax calls.
Repro Steps:
Actual Result:
The link redirect to 404 page
Expected Result:
The link redirect to correct page
Repro Steps:
Actual Result:
The link "Provisioning.Framework.Console (O365 PnP Sample)" redirect to 404 page.
Expected Result:
The link redirect to correct page.
I tried create "modern" site using CSOM method "ManipulateModernTeamSite(string accessToken)", but I am getting invalid Access Token.
I have created Azure Hosted app to create Modern site. App is installed in one of the SharePoint Site with App-only Access policy. This App has SharePoint Online Administrator Access. When User submit the request it should create Modern site. I am using below code snippet to get Access token but I am getting Invalid access token. Please let me know how to get access token to create Modern site.
Any Quick Solution to resolve this issue is Appreciable. Thanks.
Current code snippet to get access token getting invalid access token:
var tenantStr = hostWebUrl.ToLower().Replace("-my", "").Substring(8);
tenantStr = tenantStr.Substring(0, tenantStr.IndexOf("."));
var tenantAdminUri = new Uri(String.Format("https://{0}-admin.sharepoint.com", tenantStr));
string realm = TokenHelper.GetRealmFromTargetUrl(tenantAdminUri);
var accessToken = TokenHelper.GetAppOnlyAccessToken(TokenHelper.SharePointPrincipal, tenantAdminUri.Authority, realm).AccessToken;
Error:
[07.19.2017 02:44:09] Error at CreateSiteCollection : Code: InvalidAuthenticationToken
Message: Access token validation failure.
Inner error
[07.19.2017 02:44:09] Error is: at Microsoft.Graph.HttpProvider.d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Graph.BaseRequest.d__36.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Graph.BaseRequest.d__32`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at OfficeDevPnP.Core.Framework.Graph.UnifiedGroupsUtility.<>c__DisplayClass4_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at OfficeDevPnP.Core.Framework.Graph.UnifiedGroupsUtility.CreateUnifiedGroup(String displayName, String description, String mailNickname, String accessToken, String[] owners, String[] members, Stream groupLogo, Boolean isPrivate, Int32 retryCount, Int32 delay)
at Takeda.SelfService.AppOnlyWeb.Helper.ManipulateModernTeamSite(ClientContext ctx, SiteRequestInformation siteInfo, String hostWebUrl)
Repro Steps:
Actual Result:
This link is jump error.
Expected Result:
This link should jump correct.
Repro Steps:
Actual Result:
The links like "sample project" redirect to 404 page
Expected Result:
The links like "sample project" redirect to correct pae
As far as i know: Best Practice is to create ContentTypes only on the Rootweb of the Site Collection.
Just wanted to share some resources on that with a colleague, but couldn't find this in the pnp-articles.
I would have expected the information in this article:
https://msdn.microsoft.com/en-us/pnp_articles/site-columns-and-content-types-sharepoint-add-in
The only place where i can find this is in the following comment of the "ObjectContentType.cs":
// if this is a sub site then we're not provisioning content types. Technically this can be done but it's not a recommended practice
https://github.com/SharePoint/PnP-Sites-Core/blob/master/Core/OfficeDevPnP.Core/Framework/Provisioning/ObjectHandlers/ObjectContentType.cs
So it would be nice to get more detail about the reason why this is not recommended.
Repro Steps:
Actual Result:
This link "https://o365api-01.azurewebsites.net" is jump error.
Expected Result:
This link should jump correct.
Repro Steps
Actual Result:
The link redirect to 404 page
Expected Result:
The link redirect to correct page
Repro Steps:
Actual Result:
The link likes "Branding.Themes " redirect to 404 page.
Expected Result:
The link should redirect to correct page.
Repro Steps:
Actual Result:
The link "PnP Provisioning Schema" redirect to 404 page.
Expected Result:
The link redirect to correct page.
Repro Steps:
Actual Result:
The link redirect to 404 page.
Expected Result:
The link redirect to correct page.
Repro Steps:
Actual Result:
The link "Provisioning.Pages" redirect to 404 page.
Expected Result:
The link redirect to correct page.
Repro Steps:
Actual Result:
The format of bullet dispalys incorrectly
Expected Result:
The format of bullet dispalys correctly
Repro Steps:
Actual Result:
This link is jump error.
Expected Result:
This link should jump correct.
Based on MVA class material. See also following Yammer thread for additional details - https://www.yammer.com/itpronetwork/#/inbox/show?threadId=492976513
For all newcomers (like me) there should be no need to browse the history of the project to find out PnP cmdlets where renamed from ...-SP
to PnP
.
hi,
excellent series of articles. thanks,
the discussion on navigation seemed to write off search based nave, and did not even mention security trimming.
is there a reason search based nav is discouraged?
can security trimming be added to the other options?
Hi,
the guidance in subject
SharePoint site branding and page customization solutions
contains many broken links. They are especially at the bottom section of the guidance.
I'm getting the following exception during ApplyProvisioning Template:
Only one usage of each socket address (protocol/network address/port) is normally permitted
In my code I first create the site collection using CreateSiteCollection which goes fine. Next, I call ApplyProvisioningTemplate which throws the exception.
The full stack trace is below:
Error when processing request 4d33277a-e0b8-4e7b-9733-66b2839f3896|System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: Only one usage of each socket address (protocol/network address/port) is normally permitted 10.225.8.182:80
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetResponse()
at Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute()
at Microsoft.SharePoint.Client.ClientContext.GetFormDigestInfoPrivate()
at Microsoft.SharePoint.Client.ClientContext.EnsureFormDigest()
at Microsoft.SharePoint.Client.ClientContext.ExecuteQuery()
at Microsoft.SharePoint.Client.ClientContextExtensions.ExecuteQueryImplementation(ClientRuntimeContext clientContext, Int32 retryCount, Int32 delay)
at Microsoft.SharePoint.Client.TenantExtensions.CreateSiteCollection(Tenant tenant, SiteEntity properties)
at Pfa.SharepointProvisioning.Integration.Sharepoint.SharepointConnector.CreateSiteCollection(SiteCollectionCreationInformation information, SharepointInstanceInformation sharepointInstanceInformation) in E:\T\b2\w\29\s\Pfa.SPProvisioning\Pfa.SPProvisioning.Integration.Sharepoint\SharepointConnector.cs:line 51
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.