Form Template Failed to Load Error

When trying to access a form template, I am getting the below error.

Access is denied. (Exception from HRESULT: 0×80070005 (E_ACCESSDENIED))
An entry has been added to the Windows event log of the server.
Log ID:5566
Correlation ID:03be9dee-08b1-4987-93f8-12a5d0ba66c5

I searched the logevent and below is the error related to that correlation ID.

Area     : SharePoint Foundation
Category : Logging Correlation Data
Level    : Medium
EventID  : xmnv
Message  : Name=Request ([LINK])
Area     : SharePoint Foundation
Category : Logging Correlation Data
Level    : Medium
EventID  : xmnv
Message  : Site=/sites/Legal
Area     : SharePoint Foundation
Category : Monitoring
Level    : High
EventID  : b4ly
Message  : Leaving Monitored Scope (PostResolveRequestCacheHandler). Execution 
Area     : SharePoint Foundation
Category : General
Level    : Medium
EventID  : 8e2s
Message  : Unknown SPRequest error occurred. More information: 0x80070005
Area     : InfoPath Forms Services
Category : Maintenance
Level    : Critical
EventID  : 82fv
Message  : The form template failed to load. (User: username, Form Name: 
           Template, IP: , Request: [LINK], Form ID: urn:schemas-m
            Type: DataAdapterException, Exception Message: The form cannot run 
           the specified query. The list could not be found. Access is denied. 
           (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)))
Area     : SharePoint Server
Category : State Service
Level    : Medium
EventID  : bm0u
Message  : StateManager.GetState() No data (920713ee-094e-4a5e-9ac4-26d4eac3627
Area     : SharePoint Foundation
Category : Monitoring
Level    : High
EventID  : b4ly
Message  : Leaving Monitored Scope (EnsureListItemsData). Execution Time=19.302
Area     : SharePoint Server
Category : State Service
Level    : Medium
EventID  : 8kfs
Message  : The StateManager is disposing and calling ReleaseLockedStates() (Cou
Area     : SharePoint Foundation
Category : Monitoring
Level    : Medium
EventID  : b4ly
Message  : Leaving Monitored Scope (Request (GET:LINK)). Execution Time=80.979565838675*

Any idea of how to fix it? When logging in as site collection administrator it works fine.

implementing fullcalendar with angular js

I am building an event scheduling app by using angular js framework and fullcalendar plugin. I tried to google and implement different ways to make the calendar visible but it’s not working.
I have attached my snippets as follows:


Planning App

<!-- the following 5 js files are required to use CSOM -->
<script type="text/javascript" src="../_layouts/1033/init.js"></script>
<script type="text/javascript" src="../_layouts/15/MicrosoftAjax.js"></script>
<script type="text/javascript" src="../_layouts/15/sp.runtime.js"></script>
<script type="text/javascript" src="../_layouts/15/sp.js"></script>
<script type="text/javascript" src="../_layouts/15/sp.core.js"></script>

<link rel="stylesheet" href="//" />
<link rel="stylesheet" href="//" />
<link href="../Content/App.css" rel="stylesheet" />

<script src=""></script>
<script src=""></script>
<script src="//"></script>
<script src="//"></script>
<script src=""></script>
<script src=""></script>
<script src="//"></script>

<script type="text/javascript" src="../Scripts/App.js"></script>
<script type="text/javascript" src="../Scripts/LoginCtrl.js"></script>
<script type="text/javascript" src="../Scripts/calendarCtrl.js"></script>

<div class="container">

     <div ng-controller="calendarEvent">
    <div id="calendar" ui-calendar="uiConfig.calendar" class="span8 calendar" ng-model="eventSources"></div>



‘use strict’;

scheduleApp.controller('calendarEvent', ['$scope', '$compile', function ($scope, $compile) { 

    var date = new Date();
    var d = date.getDate();
    var m = date.getMonth();
    var y = date.getFullYear();

    /* event source that contains custom events on the scope */
    $ = [
      { title: 'All Day Event', start: new Date(y, m, 1) },
      { title: 'Long Event', start: new Date(y, m, d - 5), end: new Date(y, m, d - 2) },
      { id: 999, title: 'Repeating Event', start: new Date(y, m, d - 3, 16, 0), allDay: false },
      { id: 999, title: 'Repeating Event', start: new Date(y, m, d + 4, 16, 0), allDay: false },
      { title: 'Birthday Party', start: new Date(y, m, d + 1, 19, 0), end: new Date(y, m, d + 1, 22, 30), allDay: false },
      { title: 'Click for Google', start: new Date(y, m, 28), end: new Date(y, m, 29), url: '' }
    /* event source that calls a function on every view switch */

    /* Render Tooltip */
    $scope.eventRender = function (event, element, view) {
            'tooltip': event.title,
            'tooltip-append-to-body': true

    /* config object */
    $scope.uiConfig = {
        calendar: {
            height: 450,
            editable: true,
            header: {
                left: 'title',
                center: '',
                right: 'today prev,next'
            eventRender: $scope.eventRender
    /* event sources array*/
    $scope.eventSources = [$];



var scheduleApp = angular.module('scheduleApp', ['ngRoute', 'ui.calendar', 'ui.bootstrap']);

How to create a Sharepoint list that can be used by both an Access desktop application and a web app

A Sharepoint list that can be edited by both desktop and web apps (Access 2013).

I want a Sharepoint list that works off line and then syncs when the network is working.

Sorry, I have tried several things but getting nowhere. I am new to using share point, but have spent years creating databases/software.

Things I have tried, and failed:

  • creating tables offline then uploading as a linked sharepoint list. It uploads but then the web app only has read access.
  • creating a web app, adding a list. But then the offline app is unable to see the table.
  • Creating an Access 2013 desktop application. Create a linked sharepoint list from the application. But the web app only has read access.

Edit: It says ‘Read only’ when I link a sharepoint list to a web app. i.e when I use Access 2013 to create a web app, at the point when I link the share point list, it only gives me the option of a read only style link. No OAuth2?

One time authenticating a user for both JSOM and CSOM calls

I have a SharePoint hosted app that requests the user’s login credentials and sends them to a WCF service that at some point creates a context in CSOM using these credentials to issue some requests to SharePoint.
Is there a better way to create the CSOM context for the user by maybe passing an oAuth token to the WCF service instead of the login credentials?


SharePoint App Upgrade Failure

We are developing an Angular based SharePoint hosted application that installs successfully through F5 deployment from visual studio and also through our CI process (via PowerShell). However, when trying to upgrade the app package, there is an undefined runtime exception thrown. Looking through the ULS logs the failure seems to be caused by the following issue:

Safe mode did not start successfully.
Microsoft.SharePoint.WebPartPages.WebPartPageUserException: This page
has encountered a critical error. Contact your system administrator if
this problem persists.

Could not find Web Part [Unknown:
a6524906-3fd2-ee4e-23ee-252d3c6e0dc9] on page
/site/_catalogs/design/AllItems.aspx in the safe controls list.

This is repeated several times and seems bizarre given that we have no custom web parts in the host web (and they obviously can’t be deployed in the app web).

Has anyone seen or managed to resolve this?


How do I backup SharePoint hosted app?

I have deployed heavily used SharePoint 2013 app to one of my customer . The app frequently need changes. Since I’m using incremental development, I need a solid back up strategy at each app upgrade

My question is How do I back up a SharePoint hosted app? . According to the TechNet it is not a straightforward.

Back up an app :

Get the ID of the list row of the item your getting

Title | Priority | Status

title1 | priority1 | status1

This is what my list looks like, If I get the “status1″ from Status, how do i get the ID of the items row?

what I want to do is having an on-click(onselected) on the status item I’m getting from the list, and through the ID get the value of Title1 on the same row. this must be possible? so far i’ve tried the following code:

function RetrieveListItems() {
var query = new SP.CamlQuery();

query.set_viewXml("<View>" +
"<Query>" +
"<Where>" +
//"<And>" +
"<Eq><FieldRef Name='Status'/><Value Type='Text'>Skapad</Value></Eq>" +
//"<Eq><FieldRef Name='Assigned_x0020_to'/><Value Type='Lookup'>"+ theuser +"</Value></Eq>" +
//"</And>" +
"</Where>" +
"</Query>" +

listItems = list.getItems(query);

context.load(listItems, 'Include(Status, ID)');

context.executeQueryAsync(OnSuccess2, OnFail)
function OnSuccess2() {
var OnGoing = document.getElementById('OnGoing');

OnGoing.options.length = 0;

var listEnumerator = listItems.getEnumerator();

while (listEnumerator.moveNext()) {

    var currentItem = listEnumerator.get_current();

    OnGoing.options[OnGoing.options.length] = new     Option(currentItem.get_item("Status"), currentItem.get_item("ID"));
    //var id = $(this).find('option:selected').attr('id');

function doSomething() {
var id = $(this).find('option:selected').attr('ID');
var query = new SP.CamlQuery();

query.set_viewXml("<View>" +
"<Query>" +
"<Where>" +
"<And>" +
"<Eq><FieldRef Name='Title'/><Value Type='Text'></Value></Eq>" +
"<Eq><FieldRef Name='ID' LookUpId='TRUE'/><Value Type='Counter'>" + id + "</Value></Eq>" +
"</And>" +
"</Where>" +
"</Query>" +

listItems1 = list.getItems(query);


context.executeQueryAsync(OnSuccessdoSomething, OnFail)
function OnSuccessdoSomething() {
var ListEnumerator = listItems.getEnumerator();
while (ListEnumerator.moveNext()) {
    var currentItem = ListEnumerator.get_current();
    var Description = currentItem.get_item('Title');

How to join two lists using REST API sharepoint 2013

I have two lists with look up column. How do i join two lists using REST API call.

Thanks in advance

CSOM site provisioning error: The request uses too many resources

I continue to get an error (sometimes) when provisioning a web using CSOM. According to this MSDN article, this error is returned when the CSOM request exceeds 2MB. I watched the call in Fiddler and the request is not greater that 2MB. What could the problem be? Below is the code and request/response from fiddler:

   using (ClientContext cc = new ClientContext(url))

       cc.Credentials = new SharePointOnlineCredentials(username, password);

       WebCreationInformation information = new WebCreationInformation();
       information.WebTemplate = "CMSPUBLISHING#0";
       information.Description = "My New Site";
       information.Title = "My New Site";
       information.Url = "newsite";
       // Currently all English, could be extended to be configurable based on language pack usage
        information.Language = 1033;
        information.UseSamePermissionsAsParentSite = false;


Fiddler Request:

<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="" LibraryVersion="" ApplicationName=".NET Library" xmlns=""><Actions><ObjectPath Id="1158" ObjectPathId="1157" /><ObjectIdentityQuery Id="1159" ObjectPathId="1157" /></Actions><ObjectPaths><Method Id="1157" ParentId="923" Name="Add"><Parameters><Parameter TypeId="{8f9e9fbe-189e-492f-884f-98f9ef9cc4d6}"><Property Name="Description" Type="String"></Property><Property Name="Language" Type="Int32">1033</Property><Property Name="Title" Type="String">Manuals</Property><Property Name="Url" Type="String">manuals</Property><Property Name="UseSamePermissionsAsParentSite" Type="Boolean">false</Property><Property Name="WebTemplate" Type="String">CMSPUBLISHING#0</Property></Parameter></Parameters></Method><Property Id="923" ParentId="384" Name="Webs" /><Identity Id="384" Name="7e19049d-e009-2000-008d-b659834a548f|740c6a0b-85e2-48a0-a494-e0f1759d4aa7:site:a43f2ef7-f1aa-423a-ad26-59b66edef6bb:web:a30643dc-7034-47ae-b87e-119ef8a2975d" /></ObjectPaths></Request>

Fiddler Response:

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/json; charset=utf-8
Vary: Accept-Encoding
Server: Microsoft-IIS/8.5
X-SharePointHealthScore: 0
SPClientServiceRequestDuration: 7513
X-AspNet-Version: 4.0.30319
SPRequestGuid: 7e19049d-601e-2000-008d-b31e125c7e26
request-id: 7e19049d-601e-2000-008d-b31e125c7e26
X-RequestDigest: 0x1B109C2C5737406AB9E9A2983D743443F86CEF7D92CD6041BB1510FCDD2A4866A55C5BF0D32E4E55C4448C12C9727F191740AAF929E6353320C1CAE0FBBC1D16,07 May 2015 17:27:33 -0000
X-Powered-By: ASP.NET
X-Content-Type-Options: nosniff
X-MS-InvokeApp: 1; RequireReadOnly
Date: Thu, 07 May 2015 17:27:40 GMT
Content-Length: 574

"ErrorMessage":"Provisioning did not succeed. Details: Failed to initialize some site properties for Web at Url: 'https:u002fu002fslalomdev123.sharepoint.comu002fsitesu002fPaulDevu002fcompanyu002fACSu002fmanuals' OriginalException: The request uses too many resources.","ErrorValue":null,"TraceCorrelationId":"7e19049d-601e-2000-008d-b31e125c7e26","ErrorCode":-2146232832,"ErrorTypeName":"Microsoft.SharePoint.SPException"

Increase reponse size limit in sharepoint cross-domain library

As mentioned here, the response-size expected shouldn't be more than 200 kb when using the cross-domain library with web proxy. Is it possible to increase this limit?

I am trying to build a sharepoint-hosted application.

Question and Answer is proudly powered by WordPress.
Theme "The Fundamentals of Graphic Design" by Arjuna
Icons by FamFamFam