Question

CRM 4.0 Automatic Change Attribute Workflow not triggered, why?

Asked by: Jacques_Pretorius

I would like a workflow to be triggered on my custom entity which changes the status of the same entity when a certain condition is met.
1. When a SAGE Reference is entered into the SAGE reference text field
2. Check that there is a value (ANY VALUE FOR NOW) in the SAGE Reference field.
3. IF above conditions are met set the status to "Invoiced"
Please find attached a screenshot which displayes how I've configured the Workflow.
I cannot understand why this is not firing.
Thank you

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-02-25 at 08:31:11ID24176545
Tags

Dynamics CRM 4.0 Workflow

Topics

CRM Software

,

Microsoft Dynamics

Participating Experts
1
Points
500
Comments
6

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. SharePoint Workflow
    I have two sharepoint workflows which I would like to execute based on a condition. If the condition is met I want workflow A to run. If the condition is not met I want workflow B to run. Is this possible?
  2. MS CRM - Workflow query
    Hi, I want to create a workflow query that will increment the number of minutes used by a case - using a workflow trigger on each activity for example the task entiy. When a workflow is created it can update the case used minutes by using the "Regarding (Case)" li...
  3. Sage CRM Introducing a custom table to a workflow
    Hi, This one has long been a stumbling block for me so I thought I'd ask in here! I have the standard Opportunity table with an opportunity workflow attached. All works great until I need to introduce a rule that forces the user to update an existing record in a custom tabl...
  4. Workflow CRM
    How do i send a re-occuring email through Microsoft Dynamic CRM 4.0 that can be sent out periodically until there is a seperate trigger (field that is changed) so that the workflow stops and the email is no longer sent out
  5. CRM WorkFlow
    how to integrate CRM workflow with stored procedure in sql 2005 ,, any body have idea?

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: crm_infoPosted on 2009-02-25 at 12:01:14ID: 23737761

Here are some thoughts on why your workflow isn't running that I hope will help.

(1) Have you published your workflow?

(2) Workflows can take 1-5 minutes to complete running.  Have you given it enough time?

(3) Your Scope is set to User - that means it will only run for the user that has published it.  Are you trying to run it as a user different than the user that published it?  If you want it to run for all users, try switching the Scope to Organization.

Or, it could be a problem with CRM

(4) Check to make sure that the CRM Workflow Service is running on the CRM server.  You'll need someone with administrative access to the machine that CRM Server is running on in order to do this check.  It appears in the list of services for the machine.  Let me know if you need more help in checking this out.

(5) If none of the above works, then try installing the latest update rollup of CRM (currently version 2).  You should install it on the server and user machines.  NOTE that there is a problem with version 2 that will not allow you to publish your workflows - be careful to read through the entire install document to make sure you correct this error (requires updating web.config).  NOTE(2) you will probably need to install the rollup on each user computer too - consult the documentation for the rollup for the correct install procedure.  The latest rollup can be found here: http://www.microsoft.com/DOWNLOADS/details.aspx?familyid=AA671769-61E9-45C4-919F-C88199AA4241&displaylang=en

There are several other things (technical problems with MS CRM) that can occasionally cause workflows to stop working.  But the problem usually lies in how your workflow has been developed.  If you exhaust the options above, then post again and I'll make some additional suggestions.

 

by: crm_infoPosted on 2009-02-25 at 12:04:13ID: 23737804

A couple of other items, for troubleshooting:

(1) On your workflow screenshot, try clicking the Workflows link in the navigation.  Here, you should see a listing of all the times that this workflow has started.  If there is nothing in there, then the workflow isn't even starting.  If there are some items in there, open one to see what it looks like - you may see an error message or you may see that it is not passing your Check Condition for some reason.  Let me know what you see.

(2) If you don't see anything in #1,above, then in the Settings area, navigate over to System Jobs.  See if you see any recent workflows that have ended with a status of Succeeded or not.  If not, then there is likely something wrong with the workflow engine that you'll need to look at.

 

by: Jacques_PretoriusPosted on 2009-02-26 at 05:55:55ID: 23744556

Sorry for taking so long to get back to you.
1. Yes the workflow is published
2. Yes have given it more than enough time
3. I've changed the scope to Organization
4. There is no workflow service running. Researching I found that in CRM 4.0 there is a Microsoft Asynchronous Processing Service running under Network Service. There is also a Microsoft Asynchronous Processing Service(Client) service running on the CRM server. Dont know if this is a good thing but it's running under Domain\Admin user
5. CRM Rollup 2 was installed a few weeks ago on the server and workstations
6. I do not see any workflows listed under this particular Auto Workflow
6. I do see under system jobs the following entry ...
System Job Type: "System Event"
System Job Name: "Worklow expansion task"
Regarding: "TestInvoice"
Status Reason: "Failed"
Owner: "System"
Started On: "26/02/2009 13:45"
7. This is happening on both the Live and Test database on the same CRM server.
What would you suggest I try next?
Thank you.

 

by: crm_infoPosted on 2009-02-26 at 06:17:06ID: 23744782

Thanks - that narrows the problem.  I do not believe that anything is wrong with your workflow - it has to do with the workflow service that is running on the background (your item #4).  Here's what you should try:

(1) Try re-starting the workflow service:

 (a) On the CRM Server (assuming you are in Win Server 2003): Start | Administrative Tools | Services

 (b) Scroll down to Microsoft CRM Async Processing Service

 (c) Double Click.  Change startup type to Automatic and then click Start

 (d) If that works, then go test your workflow to see if it is now firing

(2) Even if the above process restarts the Async service, you may find that it shuts off again when you try to run your workflow.  In that case, check out this KB article: http://kbalertz.com/949844/Async-service-stops-unexpectedly-cannot-start-Async-service-after-import-organization-another-Microsoft-Dynamics-deployment.aspx

 (a) You'll need to check the Servers table in the MSCRM_Config database and make sure the SQL Server name matches the name returned by @@SERVERNAME.

 (b) Correct the name in the table to match the value returned by @@SERVERNAME (it is case sensitive)

 (c) Try repeating #1 again and see if that works.

(3) If that doesn't work, then try this.  Although you have installed update rollup 2, there are some hotfixes that require manual configuration.  This KB article: http://support.microsoft.com/kb/959419 reference the specific item you are experiencing.

 (a) Open the above link

 (b) Search within the document for this number: 957871  - which describes the problem that you are experiencing

 (c) Open the link behind the above referenced number

Although items #2 and #3 do not appear to be the direct cause of a failure, it looks to me like one of them could be related and is worth a try.

 

by: Jacques_PretoriusPosted on 2009-02-26 at 06:53:07ID: 23745213

1. I found what was causing the Automatic WorkFlow to fail.
2. I wrote a plugin with the help of some articles on the web to show both Active and Inactive items in a entity assocaited view.
3. I came accross the problem because I noticed in the CRM server's application event log a entry at the same time as I ran a test on the Workflow. This error pointed to the Plug-in.
4. I removed the plugin and the workflow sprang back into life.
Thank you for all your help, I've certainly learn from your suggestions and would not have come to the conclution if you hadnt led me that way. Thanks.

 

by: Jacques_PretoriusPosted on 2009-02-26 at 06:57:59ID: 31551133

Your suggestions really pointed me in the right direction. So thank you for spending the time to look at this for me.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...