Pages

Showing posts with label SharePoint Designer. Show all posts
Showing posts with label SharePoint Designer. Show all posts

Monday, December 5, 2016

Visual Studio SharePoint Workflow - DynamicValue Variable Type is Missing

When trying to add a DynamicValue variable type in a Visual Studio 2015 SharePoint workflow, you may notice that the type is missing.

image

This can happen if Microsoft.Activities namespace is not referenced in your project. Add the reference and you can access the DynamicValue variable type.

image

image

Sunday, December 4, 2016

SharePoint 2013/2016 Workflows are Cancelled

When working with SharePoint 2013/2016 workflows, the workflows are cancelled by the system with the following similar error message:

 

  • RequestorId: e88c6282-6a6a-710f-1045-5697183081a9. Details: System.ApplicationException: HTTP 401 {"error_description":"The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs."} {"x-ms-diagnostics":["3001000;reason=\"There has been an error authenticating the request.\";category=\"invalid_client\""],"SPRequestGuid":["b8975112-6d46-4c69-a66f-87031b27db53"],"request-id":["b8975112-6d46-4c69-a66f-87031b27db53"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"SPRequestDuration":["46"],"SPIisLatency":["0"],"Server":["Microsoft-IIS\/8.5"],"WWW-Authenticate":["Bearer realm=\"03bd1a89-605f-4d25-baa7-5eb9f69897a3\",client_id=\"00000003-0000-0ff1-ce00-000000000000\",trusted_issuers=\"00000005-0000-0000-c000-000000000000@*,00000003-0000-0ff1-ce00-000000000000@03bd1a89-605f-4d25-baa7-5eb9f69897a3\"","NTLM"],"X-Powered-By":["ASP.NET"],"MicrosoftSharePointTeamServices":["15.0.0.4569"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1; RequireReadOnly"],"Date":["Sat, 03 Dec 2016 22:04:48 GMT"]} at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

 

Ensure about the following:

  • User profile and user profile synchronization services are started. Make sure that you have configured permissions for service accounts properly. For development machine, you can add thye service accounts to the domain administrator group.
  • Full profile synchronization is completed.

Saturday, December 3, 2016

SharePoint Designer Crashes when Trying to use Visual Designer for Workflow

When trying to use Visual Designer in SharePoint Designer for workflow development, SharePoint Designer crashes. Make sure that you have SharePoint Designer 2013 and Visio 2013 installed for SharePoint 2013 and SharePoint Designer 2016 and Visio 2016 installed when using SharePoint 2016.

Server-side activities have been updated. You need to restart SharePoint Designer to use the updated version of activities.

When working with SharePoint Designer 2013/2016, you may get the following error:

“Server-side activities have been updated. You need to restart SharePoint Designer to use the updated version of activities.”

This issue can happen if Visual Studio and SharePoint Designer are installed on the same machine which is the case for development machines.

  • Try installing SharePoint Designer update from https://support.microsoft.com/en-us/kb/3114337.
  • Removing Visual Studio and installing it again should fix the issue.
  • Check if you have Workflow Manager Client installed and uninstall it and it should fix the issue.

Tuesday, September 23, 2014

What’s new in SharePoint 2013? ----Download for free on Amazon 9/25/2014 - 9/26/2014!

This is my first publication on Microsoft SharePoint 2013 which I originally wanted to publish a lot sooner! This book is intended for various Information Technology professionals including architects, administrators, support individuals, power users, content management specialists, compliance specialists, power users and end-users who work with the Microsoft SharePoint and are interested to learn about new and improved features in Microsoft SharePoint 2013.  The book is available through Amazon and you can read it on Kindle or on Kindle App. Please go to http://www.amazon.com/dp/B00NTSTRQ8 to buy the kindle edition of this book.

 

Tuesday, July 3, 2012

SharePoint 2010 – Save Site as Template Option Missing

Saving a site or sub-site as template allows you to save an existing site with or without the content and use it as a template for new SharePoint sites or sub-sites. This option is available in the site settings page under “Site Actions” section.

image

Alternatively, you can open a site in SharePoint Designer and click on “Save as Template” icon in the ribbon.

image

This action will open the a page at http://yoursite/_layouts/savetmpl.aspx which will allow you to save your site as template. If you want to include content in the template, you can select the “Include Content” checkbox.

image

Now comes the question of why this option is missing in the “Site Actions” section of the Site Settings page or why it is disabled in the SharePoint Designer ribbon. When “SharePoint Publishing Infrastructure” feature is activated in Site Collection features, this options gets hidden.

Site Collection Features                      Site Features            
image  image

image

So why we can not save a file from the interface in this case? Well, as the publishing infrastructure consists of publishing pages and several other content types that CANNOT BE COPIED using OOB options. One way of accessing the save a site as template page is to append the URL /_layouts/savetmpl.aspx at the end of site or sub-site URL. Do remember that this option may not save the publishing pages in the site template.

Friday, June 8, 2012

SharePoint Console Application: File Not Found Exception

You are developing a console application referencing Microsoft.SharePoint.dll and trying to connect to a SharePoint resource for e.g., site collection, web, list, or list item. The code compiles without any problem but when you try to run your application, you get the following exception:

image

Out of many reasons why you would get this message, one main reason is you forgot to change the platform target to 64-bit in your project properties. Change the platform target to 64-bit and then try to run your application and it should run fine this time. Remember, SharePoint 2010 is a 64-bit platform so none of the x86 based settings or application would work with SharePoint 2010 Smile

image

Monday, April 2, 2012

How to Display Edit Link in a Datasheet View?

The DataSheet view in SharePoint doesn’t display edit columns that allows user to go to the edit form of an item right from datasheet view. Why Microsoft didn’t want to add that column? Well, technically you are in edit mode once you are in datasheet view so there is no point (smart huh!!). This limitation, however, can cause some trouble when you are not displaying all of the fields from a list or document library in the datasheet view and this is what I had to face today and made me think what would be a solution. After having some fun with calculated column and formula, I got a good news and a bad news.

First the good news: in order to have that extra column added to datasheet view, I can just add a calculated column with link to the edit form in the formula value. In order to do that,

  1. Go to the standard view of your list, edit an item and note the item URL in the address bar.
  2. Create a calculated field in the list or document library e.g., CustomEditLink. The formula that you need to place in the calculated field looks like this:

    ="http://sharepoint/sites/demosite/Lists/DemoList/EditForm.aspx?ID="& [ID] &"&http%3A%2F%2Fsharepoint%2Fsites%2Fdemosite%2FLists%2FDemoList"
    image

  3. Uncheck the checkbox so that this column is not added to the default content type and default view if you don’t want to display this column to everyone.

    image

  4. Select “OK”.

That’s it, if you go to your view or page where you added the list web part and configured it to show the edit link column, you will see the link.


Now the bad news: this solution doesn’t work for new items. The reason is when you add a new item to the list, the ID field is empty and it gets populated after the item is saved. You will need to edit the field by going to list settings and resave it and it will populate the ID field correctly since the item already exist
– or –  you can write a workflow that populates field value of this column after an item is created (in my case, this is out of scope of the project :[ so I had to stop)

Thursday, January 12, 2012

SharePoint 2010 Themes

SharePoint 2010 provides twenty out-of-the-box themes that you can use in your site collections or sub-sites. I don’t really like the theme color preview as it doesn’t really tell how your SharePoint site will look. You either have to apply the selected theme to see how it looks or click on the preview button to take look at the preview. I am providing screenshots of SharePoint themes for ease of use.

  1. Azure
    image image
  2. Berry
    image image
  3. Bitter Sweet
    image image
  4. Cay
    image image
  5. Classic
    imageimage
  6. Construct
    image image
  7. Convention
    image image
  8. Felt
    image image
  9. Graham
    image image
  10. Grapello
    image image
  11. Laminate
    image image
  12. Mission
    image image
  13. Modern Rose
    image image
  14. Municipal
    image image
  15. Pinnate
    image image
  16. Ricasso
    image image
  17. Summer
    image image
  18. Vintage
    image image
  19. Viewpoint
    image image
  20. Yoshi
    image image