share point workflow problem and its resolution

20
SharePoint Workflow Problem and it’s Resolution (Level 200) MJ Ferdous SharePoint Architect | Brain Station-23 Founder, SharePoint Experts-Bangladesh Community SharePoint Experts-Bangladesh usergroup meet-up on Feb 2013

Upload: mj-ferdous

Post on 20-Nov-2014

2.959 views

Category:

Education


3 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Share point workflow problem and its resolution

SharePoint Workflow Problem and it’s Resolution (Level 200)

MJ FerdousSharePoint Architect | Brain Station-23Founder, SharePoint Experts-Bangladesh Community

SharePoint Experts-Bangladesh usergroup meet-up on Feb 2013

Page 2: Share point workflow problem and its resolution

I will talk about …• SharePoint Experts-Bangladesh Community• Why, when and where User-group meet-up?• SharePoint 2010 RTM Bug• Working with Workflow Start Manually• SharePoint 2010 SP1 Bug• Working with SPD Workflow Publish Error• General Feedback from you

Page 3: Share point workflow problem and its resolution

SharePoint Experts-Bangladesh Community

MJ Ferdous

Rakib Hasan

Sohel Rana

Members!!

Members!!

Robiul Islam

Page 4: Share point workflow problem and its resolution

About User-group meet-up

?

Page 5: Share point workflow problem and its resolution

We are going to start our usergroup meet-ups monthly to share our experience of SharePoint and SharePoint related technologies to improve our knowledge .

We will do every meet-up on Microsoft Bangladesh office:

RM center, 3rd floor, 101 Gulshan Avenue, Dhaka-1212

Page 6: Share point workflow problem and its resolution

SharePoint 2010 RTM Bug!− Workflow doesn’t Auto start when item

created specifically if item create using custom web part programmatically

Related Error:http://connect.nintex.com/forums/thread/16616.aspxhttp://social.msdn.microsoft.com/Forums/bg-BG/sharepointdevelopmentprevious/thread/6bb56995-3a61-4095-aac8-9ca3a883d12chttp://social.technet.microsoft.com/forums/en-US/sharepointadminprevious/thread/83ae2900-6ed5-41d3-8682-73fc2ddea43f/http://social.technet.microsoft.com/forums/en-US/sharepointcustomizationprevious/thread/fc4e1073-d67f-449a-b443-e5805f5358c7/http://social.msdn.microsoft.com/forums/en-US/sharepointcustomizationlegacy/thread/724d1347-c1ab-4dce-96b4-a97a0a320b8b/

Page 7: Share point workflow problem and its resolution

SharePoint 2010 RTM Bug!− “Check for Error” shows − No Publishing Error− All good− But still !!!

Page 8: Share point workflow problem and its resolution

SharePoint 2010 RTM Bug!• My SharePoint Environment:

− SP 2010 Enterprise (Build Version 14.0.4762.1000) − SPD 2010 Workflow

• It can happen if yours Server Farm Version is− SharePoint Server 2010 RTM – Build Version 14.0.4762.1000 

(my case)

• or below the following build version− Build Version 14.0.6029.1000

Page 9: Share point workflow problem and its resolution

SharePoint 2010 RTM Bug!

Solutions:• The problem can be solved easily if you upgrade

the Server Farm to Build Version 14.0.6029.1000. • because the same scenario is working for me in

Another Server where Build Version is 14.0.6029.1000.

• It means this is a bug of Initial Product Version (Exactly I don’t know when it is solved after 14.0.6029.1000).

Page 10: Share point workflow problem and its resolution

Working with Workflow Start Manually• But if you are unable to Upgrade Farm due

to some other dependency then Start Workflow Manually.

• I am having the same problem for adding List Item from custom web part and Start Manually

• But First time it works but from the next time it shows the following error:

Page 11: Share point workflow problem and its resolution

Working with Workflow Start Manually• I have changed the code to Start Workflow

which executes faster that the previous one.

• Call it from Entry From "Save" Button

Page 12: Share point workflow problem and its resolution

Working with Workflow Start Manually• One more Important! Thing

− Set AllowUnsafeUpdates = true; before you calling StartWorkflow() Method

− Set AllowUnsafeUpdates = false; after you calling StartWorkflow() Method

Page 13: Share point workflow problem and its resolution

SharePoint 2010 SP1 BugScenario:• I upgraded the development Environment to

14.0.6029.1000 as same as Pre-Production and Restored the SharePoint Site in Pre-Production.

• But Workflow Failed to Start

So when I tried to Publish workflow again using SharePoint Designer, I got the above error even from Development Server. It Means this is SP1 Bug for this specific version. Publishing Error!!!Error were found when compiling the workflow

Page 14: Share point workflow problem and its resolution

Working with SPD Workflow Publish ErrorPublishing Error!!!Error were found when compiling the workflow

Page 15: Share point workflow problem and its resolution

Working with SPD Workflow Publish ErrorSolutions:

− To resolve this issue, install the hotfixes that are provided in the following articles in the Microsoft Knowledge Base: − 2687614 (http://support.microsoft.com/kb/2687614/ )

− Description of the SharePoint Server 2010 hotfix package (Coreservermui-xx-xx.msp): October 30, 2012

− 2687557 (http://support.microsoft.com/kb/2687557/ ) − Description of the SharePoint Foundation 2010 hotfix package (Wss-x-none.msp):

October 30, 2012

− I installed those in the Pre-Production Server and Update my Farm. Each time I run “SharePoint 2010 Products Configuration Wizard” to Update Farm (It is required to Update Farm who doesn’t know about it)

• Error still not solved !

Page 16: Share point workflow problem and its resolution

Working with SPD Workflow Publish ErrorSolutions:

− Open SharePoint management shell as administrator and run the bellow command− $app = get-spwebapplication

http://portal.contesto.com− $app.UserDefinedWorkflowMaximumCom

plexity = 10000− $app.Update()

− Then I try to publish the workflow and it works without any problem

Page 17: Share point workflow problem and its resolution

Working with SPD Workflow Publish ErrorFinal Steps:

The above solution doesn’t work in the Production and confused what to do. Possible reason(s) I realized its something to do with SPD to Web Application communication. So I guess it was request size / timeout related issue. SO, I increased the web application execution time to Solve this Problem :

1. Navigate to web.config file of the WebApplication Usually its

@ C:\inetpub\wwwroot\wss\VirtualDirectories\xxxx\web.config

2. Look for this<httpRuntime maxRequestLength="51200" />

3. Replace with <httpRuntime maxRequestLength="51200" executionTimeout="300" />

That's all!!

Page 19: Share point workflow problem and its resolution

Contact meMJ Ferdous

[email protected] In: http://bd.linkedin.com/in/mjferdous

Technical Blog: http://geekswithblogs.net/ferdous

Page 20: Share point workflow problem and its resolution

Thank You