SharePoint 2013 State Machine Workflow Developped using Visual Studio 2013 Terminated

Hi all,
I developped a state machine workflow using Visual Studio 2013, and deplyed to SharePoint 2013, the workflow work fine for first task, and some times for second task.
after that the workflow become terminated with below error:
- System.Activities.Statements.WorkflowTerminatedException: The workflow instance exceeded the throttle of 10000 activities executed in a row and could not be unloaded because it was not persistable.
I spent many days to solve this issue but witout any result...
Please advice...

Hi,
According to your description, there seems an endless loop in your workflow which makes the workflow exceed the throttle.
A suggestion is that you can create a new clean sample state machine workflow firstly, when it works without error, then adding other activities with custom logic
gradually.
By doing this, it would be easier to find out what might cause the error in this workflow.
A demo about Create State machine Workflow In SharePoint 2013 for your reference:
http://www.splessons.com/2013/12/create-state-machine-workflow-in-sharepoint-2013-using-visual-studio-2012/
Best regards,
Patrick
Patrick Liang
TechNet Community Support

Similar Messages

  • Sharepoint 2010 Remote Development using Visual Studio 2013 Connection Errors

    I have a customer who is using a custom skinned site developed in Sharepoint 2010.
    I am trying to debug a webpart that is not loading on a page.
    My Environment:
    Local Laptop running Win 7 64 Enterprise, Visual Studio 2013, and Sharepoint Designer 2010.
    I connect to the customers network via VPN and use RDP to access the server. I have Admin rights to the server.
    Everything that I have read indicates that Web Part dev has to be done in VS. When I try to connect using server explorer, VS kicks back a 'Server Can not be found' error.
    I have tried using the computer name, the app url listed in SP Central Admin, the IP address of the box, and the actual URL of the site. However, VS can not connect to the server.
    I have done some homework on connecting VS to a remote machine:
    Adding New Servers in Server Explorer
    http://msdn.microsoft.com/en-us/library/edfcxas2%28v=vs.71%29.ASPX
    Add Server Dialog Box
    http://msdn.microsoft.com/en-us/library/107b72aa%28v=vs.71%29.ASPX
    SharePoint -how to connect remotely to production server
    http://stackoverflow.com/questions/3188364/sharepoint-how-to-connect-remotely-to-production-server
    SharePoint 2010 Development with Visual Studio
    http://stackoverflow.com/questions/10529917/sharepoint-2010-development-with-visual-studio
    Setting Up the Development Environment for SharePoint 2010 on Windows Vista, Windows 7, and Windows Server 2008
    http://msdn.microsoft.com/en-us/library/ee554869%28office.14%29.aspx
    Using SharePoint Designer 2010 to Work with Web Parts
    http://msdn.microsoft.com/en-us/library/ff630941%28v=office.14%29.aspx#odc_sp14_qn_UsingSharePointDesigner2010WorkwithWebParts_CreateXSLTListView
    The last connection article is confusing because one of the SO answers indicates that you do not need to have SP2010 installed.
    I have been doing lots of reading on SP structure, and it seems to jump all over the place. (Or at least my research does). I have been reading this Ebook:
    SharePoint 2010 Development with Visual Studio 2010
    http://books.google.com/books/about/SharePoint_2010_Development_with_Visual.html?id=TVKICs4vHTcC
    My questions are:
    Why cant I connect to the Server if I connected through VPN which would inherently make the server a local network computer?
    Do I need to have VS installed on the actual server? I read that I can install Sharepoint Foundation locally and this will give me access to the server in VS.
    Do I need to have the full version of VS installed in order to use Remote Tools?
    For the Web Parts:
    Why cant I see the web parts in Sharepoint Designer? I take it they are exclusively designed in VS, which brings me back to the questions above.
    In Sharepoint Designer, I can see a custom view that was created from a custom list. I want to add that list to the page where the web part isnt working. When I open up the Edit Interface, and try to find that list, it does not display in the 'Lists and Libraries'
    menu

    Hello,
    As per your description, remote deployment is not possible for server side code in sharepoint so if you are using server object model then you won't be able to debug or deploy your solution from visual studio.
    VS is not required to installed on UAT/prod server but you need sharepoint along with visual studio in same development machine to develop any custom webpart.
    Once you deploy your custom webpart on site then you will be able to see that webpart in webpart gallery and that gallery is also available in designer so it means you can also add your custom webpart from designer to any page.
    Correct me if i misunderstood you
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How to create a three state approval workflow in SharePoint 2013 using visual studio 2013

    Hi Everyone,
    i have a requirement like 3 state to approve. Here is the details:- when the item added into the list it will go for reviewer. Once the reviewer review the item, he will assign the task to concern person/department(Parallel process more than two persons).
    Once they will approve the request again it will come back to reviewer and he will assign the task to team member(parallel process). Once the team member accepted then workflow terminate.
    i want develop this workflow using visual studio 2013 only, not using designer.. 
    Thanks in Advance.....
    Mallesh

    Hello,
    you can find multiple sample on the web like those
    http://www.splessons.com/2013/12/create-state-machine-workflow-in-sharepoint-2013-using-visual-studio-2012/
    http://msdn.microsoft.com/en-us/library/ee231606.aspx
    I don't think that's very different using VS2013 or VS2012
    Best regards, Christopher.
    Blog |
    Mail
    Please remember to click "Mark As Answer" if a post solves your problem or
    "Vote As Helpful" if it was useful.
    Why mark as answer?

  • Create SharePoint 2013 workflow using visual studio 2013

    Dear Team,
    How  to create a workflow for template approval process using visual studio 2013.To achieve this do i need to install share point on my machine.

    Hi,
    According to your post, my understanding is that you want to create a SharePoint 2013 workflow using Visual Studio 2013.
    We need setting up and configuring Microsoft SharePoint Server 2013 and the Workflow Manager Client 1.0 server, see Start:
    Set up and configure SharePoint 2013 Workflow Manager.
    The following materials for your reference:
    Develop SharePoint 2013 workflows using Visual Studio
    http://msdn.microsoft.com/en-us/library/office/jj163199(v=office.15).aspx
    How to: Create SharePoint 2013 Workflows using Visual Studio
    http://msdn.microsoft.com/en-us/library/office/dn584771(v=office.15).aspx
    Developing SharePoint 2013 workflows with Visual Studio demo
    http://www.bing.com/videos/watch/video/developing-sharepoint-2013-workflows-with-visual-studio-demo/10t0er5gh
    Best Regards
    Dennis Guo
    TechNet Community Support

  • How to REpublish Custom Task Forms (InfoPath) to SharePoint 2010 State Machine Workflows

    I am new to SharePoint. Sorry if answer to my question is obvious.
    I've create Custom Task Form in InfoPath and publish it (File/Publish/Network Location [Form Template Path and filename='MYPROJECT/Forms/ApprovalForm.xsn'; Form template name='ApprovalForm'], in the next window I've cleared Public URL according to the articlehttp://www.codeproject.com/Articles/195348/SharePoint-2010-State-Machine-Workflows-with-Custo).
    After it I've added module Forms, and added ApprovalForm.xsn from the existing items.
    My xml files: Elements.xml
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <Workflow
    Name="Order New Server"
    Description="My SharePoint Workflow"
    Id="482cbc86-b717-4981-a49a-3cf4c89e9399"
    CodeBesideClass="Myproj.OrderNewServer.OrderNewServer"
    CodeBesideAssembly="$assemblyname$"
    TaskListContentTypeId="0x01080100C9C9515DE4E24001905074F980F93160">
    <Categories/>
    <AssociationData><Data></Data></AssociationData>
    <MetaData>
    <AssociationCategories>List</AssociationCategories>
    <Task2_FormURN>urn:schemas-microsoft-com:office:infopath:ApprovalForm:-myXSD-2012-03-09T14-11-55</Task2_FormURN>
    <StatusPageUrl>_layouts/WrkStat.aspx</StatusPageUrl>
    </MetaData>
    </Workflow>
    </Elements>
    Feature.Template.xml:
    <?xml version="1.0" encoding="utf-8" ?>
    <Feature xmlns="http://schemas.microsoft.com/sharepoint/" ReceiverAssembly="Microsoft.Office.Workflow.Feature, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Receiverlass="Microsoft.Office.Workflow.Feature.WorkflowFeatureReceiver">
    <Properties>
    <Property Key="GloballyAvailable" Value="true" />
    <Property Key="RegisterForms" Value="Forms\*.xsn"/>
    </Properties>
    </Feature>
    My form work fine, but when I make changes and republish it, it doesn't update (I see old form). What I tryed:
    IISReset
    Clear all cookies and cache in IE
    Retract solution, restart VS2010, reboot computer.
    Change assembly number, guid.
    I have no ideas, what can I try for republish my form with changes.
    Thank you in advance for any suggestions.
    PS: sorry for my writing. English is not my native language.
    PPS: when I save new Form to new location and add it to the project, it works.

    I've found how can I republish changes. But it seems more like crutch than solution, but it works:
    After republishing InfoPath form, I delete file from project (DEL on ApprovalForm.xsn in Solution explorer) and after it add it again. (Add/Existing Item). And then redeploy! Hurray!
    Is there any way to redeploy a Task Form directly on the server without importing it in Visual Studio again? I am using some data connections in my task form which are different for different environments (staging, dev. etc.). Seems like I've to create a separate
    Workflow WSP file for each envrionment. Any comments?

  • Create SharePoint 2013 hosted app using visual studio 2013

    i tried to create sharepoint hosted app, i just created a new project and try to deploy it but it failed every time with different error sometimes system account can't run the project, created another administrator and try to re deploy it so i had a new
    error that the visual studio project need a administration permissions and i already grant the administration permissions for the new user, any one can provide a complete tutorials on how we can create new hosted sharepoint app using visual studio 2013
    Mohamed Abdeen

    Hi,
    According to your post, my understanding is that you want to create SharePoint 2013 hosted app using visual studio 2013.
    Here are some great blogs for your reference:
    How to: Create a basic SharePoint-hosted app
    My First Sharepoint-Hosted App in 2013 - CodeProject
    Setting up your App domain for SharePoint 2013
    Thanks,
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • Create office app for word using visual studio 2013

    i tried to create an app for office using visual studio 2013 i just created one in task pane with all default settings and then deployed succesffully and i can't find the app in task pane in word office any ideas
    Mohamed Abdeen

    Hi Mohamed Abdeen,
    Please try to enable a build-in app for Office, such as "Bing dictionary" and check if the task pane pop-up.
    If the "Bing dictionary" works well, I suppose that this issue might be caused by itself. I recommend you post the question to Word for DEV forum:
    https://social.msdn.microsoft.com/Forums/en-US/home?forum=worddev&filter=alltypes%2Calllanguages&sort=lastpostdesc
    If all the apps can't be used, they might be blocked. Please go to File/option/trust center/trusted app catalogs/enable it.
    Reference:
    https://technet.microsoft.com/en-us/library/jj219429.aspx?f=255&MSPPError=-2147217396
    https://msdn.microsoft.com/en-us/library/office/jj220060.aspx?f=255&MSPPError=-2147217396
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Finding Memory leaks in C using Visual Studio 2013

    I am using Visual Studio 2013, and taking a course in C programming and we started
    talking about memory bugs detaction, in particular memory leaks, and how to detect them using Valgrind on Linux.
    I want to know if there is a way to detect such memory leaks using VS 2013. I tried searching online but it just leads to lots of articles and blogs and msdn posts and blogs with lots of words like dump files, and analyzing them, etc which is weird
    because:
    1) It sounds so complex, convoluted and unintuitive it is actually hard to comprehend it.
    2) The main reason this is weird is due to the fact that VS is the most advanced IDE around and Microsoft spends so much money on in, yet from what I have read it seems that there is no simple way to use VS to detect memory leaks
    - certainly no way that's as simple as Valgrind where I only have to compile the program and run the command valgrind -leaks-check=yes ProgramName
    and it simply prints to me all location it thinks there is a memory leak and describes the error (like not freeing memory after allocating it with malloc hence having "dead" memory after the program finishes, or accessing memory that's out of
    the array bounds)                                                                                                                                                               
    So my question is how to use VS 2013 in order to achieve the same results and to find out First in high level if there are memory leaks in the program, and Second - to detect in a simple manner where those leaks are- preferably without involving dump files
    (not that I know how to use them anyway in VS).

    Hi MicrosoftLaw,
    Thanks for your post.
    Based on your issue, if you want to check if there are memory leaks in the C program from this VS2013. I suggest you could try to find Memory Leaks Using the CRT Library, for more information:
    https://msdn.microsoft.com/en-us/library/x98tx3cf.aspx?f=255&MSPPError=-2147217396
    In addition, I find a similar thread about this issue, please you refer the Dusty's suggestion to check this issue.
    http://stackoverflow.com/questions/45627/how-do-you-detect-avoid-memory-leaks-in-your-unmanaged-code
    I did some research about this issue, I found that the Visual Leak Detector extension tool is a free, robust, open-source memory leak detection system for Visual C++. So if possible, I suggest you could try to use the Visual Leak Detector extension
    tool to find the memory leak for Visual C/ C++ program.
    https://visualstudiogallery.msdn.microsoft.com/7c40a5d8-dd35-4019-a2af-cb1403f5939c
    However, if you have any issue about how to use this Visual Leak Detector extension tool to find the memory leak for C program. I suggest you could directly to write a review to this REVIEW tab in Visual Leak Detector site.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Sharepoint 2013 Workflow InitForm.aspx Visual Studio 2013

    Hi,
    I have a small problem. In my initform.aspx for my SP 2013 workflow I have a people editor element so that users can select multiple users (reviewers). I successfully used jquery to get the login-names. I want to use these names for a composite task in my
    workflow, and the task want a collection<string> in the AssignedTo-box. How do i store these logins in a collection<string> object? What datatype do I use for my workflow argument to store these logins from the javascript(wfParams) in my InitForm.aspx?
    //Regards Kjell 

    Hi,    
    To develop SharePoint 2013 workflows using Visual Studio 2012, it requires to set up a workflow development environment first.
    It is recommended to look through the two documentations from MSDN about
    Prepare to set up and configure a SharePoint workflow development environment
    before starting the workflow development:
    http://msdn.microsoft.com/en-us/library/office/dn413607.aspx
    http://msdn.microsoft.com/en-us/library/office/jj163917.aspx
    Best regards
    Patrick Liang
    TechNet Community Support

  • Version of jvm.dll compatible with 64-bit development on Visual Studio 2013?

    Hi.  I am building a 64-bit C++ application under Visual Studio 2013. I am using jvm.dll to call Java methods from within the application.  The issue is that the version of jvm.dll that is distributed with Java 7 and Java 8 are compiled with Visual Studio 2010 (and thus rely on the msvcr100.dll runtime library).  This makes it very dangerous to use with a Visual Studio 2013 application which uses msvcr120.dll (mixing runtime libraries is a very big no-no).  I am seeing random memory errors as a result, at the JNI interface level.
    Is there any way to get a version of jvm.dll that is compiled with Visual Studio 2013 and is thus dependent on msvcr120.dll?
    Thanks,
    Dan

    Hello,
    As per your description, remote deployment is not possible for server side code in sharepoint so if you are using server object model then you won't be able to debug or deploy your solution from visual studio.
    VS is not required to installed on UAT/prod server but you need sharepoint along with visual studio in same development machine to develop any custom webpart.
    Once you deploy your custom webpart on site then you will be able to see that webpart in webpart gallery and that gallery is also available in designer so it means you can also add your custom webpart from designer to any page.
    Correct me if i misunderstood you
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How I can use Visual Studio 2013 to create lists or libraries via remote?

    Hello guys,
    I use visual studio on my machine and try to create a list, but the sharepoint server is on another machine. It is possible to run a program on my computer and then create a list on the sharepoint server. If yes, how can I achieve this?
    Best regards
    Matthias

    You can create and manage lists and libraries using SharePoint Designer. To use Visual Studio you would have to create a SharePoint project, create a feature, define the list, etc. then create a Solution package and deploy that to the server. If you just
    want to manually add a list then use Designer.
    Mike Smith TechTrainingNotes.blogspot.com
    Books:
    SharePoint 2007 2010 Customization for the Site Owner,
    SharePoint 2010 Security for the Site Owner

  • Display issue typing and using visual studio 2013

    Hi
    So i installed visual studio 2013 with update 4 last night and now i am having an issue with it. When i start up my project it doesn't show anything until i minimize and un-minimize the screen. Also when I to try type within the code there is no pointer
    shown and nothing is shown the screen i am typing or changing any text. Also with clicking on the explorer it doesn't highlight what i select and also when i right click within the explorer the properties disappear when i move over them.
    I have pictures that i have uploaded to look at;
    http://imgur.com/a/7WZWW
    Thanks

    Hello popp09,
    The issue sounds more like a problem related to your Graphic driver. Could you please make sure your "graphic driver" is update to date?You should also make sure you've applied all Windows Updates in your OS.
    Best regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How do i get SharePoint list as a data source in visual studio 2013

    In word add-in application,i have added the tree view as a custom pane.Now i wanted to load tree view from share point list.Could you please help to load sharepoint list from Visual Studio.

    Refer to the following posts, hope it helps
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/b392871a-b504-4679-a724-f85deb602ed2/how-to-bind-sharepoint-list-to-wpf-treeview
    http://www.codeproject.com/Tips/627580/Build-Tree-View-Structure-for-SharePoint-List-Data
    --Cheers

  • How to create Event Receivers using Visual Studio 2013

    No parsing error came while creation of Event Receiver in Visual Studio 2013

    Hi Shaheena
    Please search MSDN Articles, TechNet Articles and The Code Project Articles before asking questions.
    Answers to the basic as well as professional questions are available there.
    Go through the links below for the issue.
    Create an Event Receiver
    Indul Hassan
    Microsoft Community Contributor
    http://www.indulhassan.com
    You Snooze.. You Lose !!

  • I am converting existing wpf application to Windows phone 8 app using visual studio 2013

    i want to replace the  xmltextreader for windows phone 8 project ????
    as we dont have  xmltextreader.whitespacehandling...... how to replace this for windows phone project.....
    and i am getting some more error like 'system.net.sockets.socket' doesnot contain a defination for 'beginconnect' and no extension method 'beginconnect' accepting a first argument........

    Hi sagaradi,
    >> So now i want to target that application  to windows 8.1 store and Windows phone 8.1
    For the exception about "System.net.sockets.socket doesnot contain a defination for 'BeginAccept' and no extension mehod 'BeginAccept' accepting a first argument of type 'system.sockets'cuold not be found",
    it is because that System.Net.Sockets is not available in Windows Phone Runtime app, we have to use the
    Windows.Networking.Sockets for instead, for more information, please try to refer to:
    http://stackoverflow.com/questions/23477961/cannot-find-system-net-sockets-assembly-for-wp-8-1 .
    For others exceptions, since I do not have your code, it will be hard to tell. But although WPF/Windows Phone/Windows Store are all XAML-based platforms, they still have a lot of difference among them. Some API which are available in the WPF
    may be not available in the Windows Store and Windows Phone. So please pay attention on it, for more information, please try to refer to the following article:
    #Move form WPF and Microsoft Silverlight to WinRT:
    https://msdn.microsoft.com/en-us/library/windows/apps/br229571.aspx .
    Best Regards,
    Amy Peng
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • IPOD is freezing up my computer

    Can someone please help me!?! Got an IPOD w/video 60 gb for Christmas, a refurbished. Nothing but problems with it - it froze up computer, it froze itself, would play some songs, but not others, etc. Sent it back, received a new one Trying to sync it

  • Which is better for labview - 2000 or XP?

    I am upgrading an image acquisition system to LabVIEW 7 and was wondering what are the relative benefits, if any, of 2000 and XP (both Pro). I primarily use two 1422 boards to grab simultaneous images from two cameras at a rate of up to 60 Hz (320x25

  • Tutorial: Azure AD integration with Envoy

    Click reply and tell us what you think: Azure AD integration with Envoy Markus Vilcinskas, Knowledge Engineer, Microsoft Corporation

  • PDA (Pocke PC) - Serial Write Timeout

    Hello List, I am developing serial routines to communicate with external hardware. In many cases, XON/XOFF flow control is used. I have configured my PDA device to write out a large file. During the transmission, I use my development computer to moni

  • TS1702 How do you removed applications completed from devices

    I am having difficulty removing apps from my iphone deviced. This is causing all my usage to be used up however on my phone i have no apps currently on my deviced. However, itunes shows all previously downloaded apps and will not allow me to delete t