Thursday 22 May 2014

This form template is browser-compatible but it cannot be browser-enabled on the selected site Infopath Designer

Steps to solve this issue
 

1. Navigate to your Site then go to Settings> Site Settings > under Site Collection Administration > click "Site Collection Feature" .

2. From the list of available features, please find "SharePoint Server Enterprise Site Collection features"and click Activate.
 

This form cannot be opened in a Web browser. To open this form, use Microsoft InfoPath.

Steps to solve this issue
 
1. Navigate to your Site then go to Settings> Site Settings > under Site Collection Administration > click "Site Collection Feature" .

2. From the list of available features, please find "SharePoint Server Enterprise Site Collection features"and click Activate.

If error persist re-publish the form, and make sure the "Enable this form to be filled out by using a browser" is checked.
 

Tuesday 20 May 2014

Errors were found when compiling the workflow. The workflow files were saved but cannot be run. SharePoint 2013

Recently I had come up with a strange issue when trying to publish SharePoint 2013 Workflow. The error is
 
 
After Re-registering the Workflow Service in  PowerShell using the -force parameter the error gone and the workflow published successfully.

Register-SPWorkflowService –SPSite http://sharepointsite –WorkflowHostUri http://localhost:12291 –Force

Thursday 15 May 2014

Unable to start Workflow manually by system account Share Point 2013

Last week I had come up with this issue. I had tried whatever I know. But for Share Point 2013 edition workflow, once the workflow is triggered, the Internal Status of the workflow instance is first changed to "Started", then ended as "Suspended".

Finally I have ended up with a conclusion that, we have to run workflow as "non-system account" for both manually and automatically.

But we still can manually run Share Point 2010 edition workflows on SharePoint 2013 with System Account.

Wednesday 14 May 2014

How to change the url of a document library in SharePoint

When you create a document library in SharePoint, normally both name and url will be same. If you put any space in the library name, that makes you trouble in url. In that case if you want to change the url,
  1. Login as site collection admin.
  2. Open the site in SharePoint Designer
  3. Locate "All Files" from left hand navigation pane, which will open all folders in your site on the right.
  4. Right Click on the list that you want to change the URL/Web Address for and choose "Rename"
Renaming the library will not make any change to the attached workflow, the Workflow history as well as version history will update with new url.

However, we have to re-save the List Title/Description/Navigation settings because the left nav link did not get updated. Open the new library url in browser. Go to library settings, click on List name ,description and navigation and do save.

Hope this helps..

How to change FireFox’s default Accept header to JSON

As everyone knows SharePoint 2013 REST APS doesn’t understand the $json, it will render its result in XML, however there are quite a few tools there that can convert XML to JSON. Here I have used the default “Accept” HTTP header of the FireFox browser to see JSON. Steps to change this as follows.
  1.  In the address bar in FireFox, type “about:config”.
  2.  Click the “I promise” button.
  3.  In the search bar type “network.http.accept.default”.
  4.  Double-click the Preference Name.
  5.  Enter the String value as "application/json;odata=verbose"

Now when we use FireFox to view WebApi results it defaults to JSON and not XML


Thursday 8 May 2014

An exception occurred when trying to issue security token: There was no endpoint listening SharePoint 2013

Recently I got stuck with the below issue while publishing workflow. When I checked the Event viewer got the following Error.

"An exception occurred when trying to issue security token: There was no endpoint listening athttp://localhost:32843/SecurityTokenServiceApplication/securitytoken.svc/actas that could accept the message. This is often caused by an incorrect address or SOAP action ."
The issue is generally caused by the service application is not provision, and the application pool for the service application is not running.
To fix the issue, please follow these steps:
  1. Open Internet Information Manager(IIS)
  2. Go to "Application Pools"
  3. Select "SecurityTokenServiceApplicationPool", ensure its status is "Start".
  4. After that, open "SharePoint 2013 Management Shell". Run the following command:
     
    $sts = Get-SPServiceApplication | ?{$_ -match "Security"}
    $sts.Status
    $sts.Provision()
      
  5. Do IISReset

How to save Publishing Site as template SharePoint 2013

SharePoint doesn’t support saving publishing sites as a template. But there is an easy way to save the template of a publishing site in SharePoint 2013 . The steps are as below.

1.Deactivate the Publishing feature of the site.
2. Open the site in SharePoint Designer 2013.
3. In SharePoint Designer, under Sites tab select “Site Options” (see screen below)
4. Find 'SaveSiteAsTemplateEnabled' in Site Options (see below). 
5. Click on Modify button and change value “true”.

6. Now you can find 'Save site as template' Option under Site Settings (http://sitename/_layouts/15/settings.aspx) and create the template.
7. Your template is saved under solution gallery(/_catalogs/solutions/Forms/AllItems.aspx)