Missing Condition Error

Can someone please offer some insight on the following error

Error 1 Activity 'ifElseBranch1' validation failed: Can not find the condition "TotalPriceRouting". Check if condition is defined in the conditions file.

The condition should be defined just fine yet I get this error. Any help would be appreciated.

Thanks,
  Travis



Answer this question

Missing Condition Error

  • Matt_343

    Does the project still build & execute fine   If so, this is a known Beta1 issue that is fixed in Beta2.
  • VooDo

    No, unfortunatly it's flagged as an error.

    Travis


  • CDXX

    These are my experiences with ifelse condition activity in Beta 1.2.

    when I am using System.Workflow.Activities.Rules.RuleConditionReference, I am getting the same error as you showed but I can execute the Code, and the code is working properly.

    While I am using System.Workflow.Activities.CodeCondition there is no problem at all, there are no errors and the code is working properly.

    As Arjun said this problem will be solved in Beta 2.

    Sekhar

  • Tom Tilque

    After trying to build, do you see an error icon associated with the conditional activity in the designer

    If not, have you added any of your own classes to the schedule file



  • ZAHID HUSSAIN12

    Follow up here,

       I made a few gains by focusing on the RuleConditionReference instead of using code conditions. After adding an IsTest property to wfTest (the SequentialWorkflow subclass), the Rule Condition Editor properly reflected on the type to help me define the predicate. This is good. So I set it's default property to true in wfTest, completed the condition,  and recompiled. Now errors come back mentioning that the IsTest property is out of scope (it's defined as public and the rule editor was able to reflect on the property, so why can't this be resolved at runtime  


    Error 1 Activity 'ifElseBranch1' validation failed: Property "Condition" has invalid value. Condition expression is invalid. The property "IsTest" on type "WF_Purchasing.wfTest" does not exist, does not have a property getter, or is not accessible. d:\Source\NT Prototypes\WF-Purchasing\wfTest.cs 1 1 



  • DanH71

    No errors show on the design surface. I've tried using CodeCondition and RuleConditionReferences (all named) to no avail. It's just that the condition itself can't be resolved given the name property that I assigned. This is a real show stopper for me. Are there some better examples out there showing of the ifElse activity

    Thanks,

       Travis


  • Missing Condition Error