Monday, May 11, 2015

Strangest error using power shell to connect to SharePoint online

My simple power shell script which I used to create large lists stopped working, reporting the following strange error: "The Application ID (AppID) for which the service ticket is requested does not exist on the system." After struggling with what appears to be a mess of people reporting it on different forums and blogs, even offering vudu solutions on how working from home would cause this issue, and running to the office might resolve it - I almost gave up. Until I noticed my login user name had a typo in it. Correcting it resolved the issue - so I guess this error message is actually a login user name / password are wrong... The error comes as soon as you try to create client context or pull any information. Not saying there couldn't be any other causes for this issue, just be sure to triple check you provided the correct login information... my code: $User = "" $SiteURL = "" $Password = Read-Host -Prompt "Please enter your password" -AsSecureString $Creds = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($User,$Password) $Context = New-Object Microsoft.SharePoint.Client.ClientContext($SiteURL) $Creds = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($User,$Password) $Context.Credentials = $Creds ... Good luck!

Monday, March 23, 2015

App part does not show custom properties

Something very strange was happening on my dev sites on SharePoint online.

Suddenly, my app parts “lost” all their custom properties and when ever I would go to add/edit an app part to my pages I would only see the built in app part properties groups: appearance, layout and advanced:

imageFor some reason, on my other non-dev tenants it always worked perfectly, this issue was only with my dev environments.

After reporting this to Microsoft, I got the following KB article back as a possible solution:

It suggested a new feature that was introduced a while ago and turned on by default to everyone could be the cause for this issue.

It suggested to allow custom scripts on my site pages, and that should do the trick. Now, there is a note in that settings page saying it might take up to 24 hours for this change to take place after you visit the settings page, so did it work?


I did confirm this issue happens with all app parts that have custom properties, I have tested few other app parts from the store and they all exhibited the same behavior on my dev sites.

I guess I will test it tomorrow and have to update you… fingers crossed…

Thursday, February 19, 2015

Building .NET client tools for SharePoint online

Hi guys,
Here is my presentation from today's webcast.

If you wish to see the webcast recording click here.

Thanks for joining me, please feel free to comment on this post if you have questions about this topic.
For more resources, please visit the last page of the presentation for additional links.