Workflow Validation Failed in dublin VM from PDCHi,<br><br>Today I started to use dublin VM from PDC, creating some small workflows. In the first try, I received this error when I run the workflow (wcf + sequential workflow). The WCF host show this message &quot;workflow validation failed&quot;.<br><br>After some search on web, I discovered the problem is the declarative rule condition. So, when I change the declarative rule condition to code condition it works fine, but with declarative rule condition it doesn't.<br><br>The workflow is very simple, an input number, &quot;if&quot; activity and an output calculation result. Using code condition works fine, declarative rule condition doesn't.<br><br>What am I doing wrong ? How to make declarative conditions work in dublin VM ?<br><br>(the same workflow constructed in VS 2008 works well with declarative conditions, using the same steps to build the workflow).<br><br>Thanks !<br><br>[]'s<br><br>Dennes<hr class="sig">Dennes - Se resolveu, classifique a mensagem, por favor - [http://www.bufaloinfo.com.br] NOVO DVD Segurança no ASP.NET : http://www.bufaloinfo.com.br/LearingSeriesSegurancaASPNET2.asp© 2009 Microsoft Corporation. All rights reserved.Thu, 26 Mar 2009 16:48:13 Z281a36b7-20e0-4d58-a764-a27996d8b4c9http://social.msdn.microsoft.com/Forums/en-US/dublin/thread/281a36b7-20e0-4d58-a764-a27996d8b4c9#281a36b7-20e0-4d58-a764-a27996d8b4c9http://social.msdn.microsoft.com/Forums/en-US/dublin/thread/281a36b7-20e0-4d58-a764-a27996d8b4c9#281a36b7-20e0-4d58-a764-a27996d8b4c9Denneshttp://social.msdn.microsoft.com/Profile/en-US/?user=DennesWorkflow Validation Failed in dublin VM from PDCHi,<br><br>Today I started to use dublin VM from PDC, creating some small workflows. In the first try, I received this error when I run the workflow (wcf + sequential workflow). The WCF host show this message &quot;workflow validation failed&quot;.<br><br>After some search on web, I discovered the problem is the declarative rule condition. So, when I change the declarative rule condition to code condition it works fine, but with declarative rule condition it doesn't.<br><br>The workflow is very simple, an input number, &quot;if&quot; activity and an output calculation result. Using code condition works fine, declarative rule condition doesn't.<br><br>What am I doing wrong ? How to make declarative conditions work in dublin VM ?<br><br>(the same workflow constructed in VS 2008 works well with declarative conditions, using the same steps to build the workflow).<br><br>Thanks !<br><br>[]'s<br><br>Dennes<hr class="sig">Dennes - Se resolveu, classifique a mensagem, por favor - [http://www.bufaloinfo.com.br] NOVO DVD Segurança no ASP.NET : http://www.bufaloinfo.com.br/LearingSeriesSegurancaASPNET2.aspFri, 13 Mar 2009 20:26:54 Z2009-03-13T20:26:54Zhttp://social.msdn.microsoft.com/Forums/en-US/dublin/thread/281a36b7-20e0-4d58-a764-a27996d8b4c9#debb4060-9d6e-4b2a-b7c2-5dab67ada9bdhttp://social.msdn.microsoft.com/Forums/en-US/dublin/thread/281a36b7-20e0-4d58-a764-a27996d8b4c9#debb4060-9d6e-4b2a-b7c2-5dab67ada9bdFord McKinstryhttp://social.msdn.microsoft.com/Profile/en-US/?user=Ford%20McKinstryWorkflow Validation Failed in dublin VM from PDC Dennes,<br><br>It sounds like you might be using WF 3.0 or WF 3.5 and it sounds like a Workflow Rules specific issue.  I've asked someone to take a look and get back to you.<br><br>Thanks,<br>Ford McKinstry<hr class="sig">Ford McKinstryThu, 19 Mar 2009 16:20:30 Z2009-03-19T16:20:30Zhttp://social.msdn.microsoft.com/Forums/en-US/dublin/thread/281a36b7-20e0-4d58-a764-a27996d8b4c9#4de4d51a-9a2b-4543-ba00-43ff4a95a6f8http://social.msdn.microsoft.com/Forums/en-US/dublin/thread/281a36b7-20e0-4d58-a764-a27996d8b4c9#4de4d51a-9a2b-4543-ba00-43ff4a95a6f8Kavita Kamani - MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Kavita%20Kamani%20-%20MSFTWorkflow Validation Failed in dublin VM from PDC  <p style="margin:0in 0in 0pt"><span style="color:#1f497d"><font face=Calibri>What does the DeclarativeRuleCondition looks like? Validation error means you are probably trying to compare a field/property with a type that is not compatible.</font></span></p> <p style="margin:0in 0in 0pt"><span style="color:#1f497d"><font face=Calibri> </font></span></p> <p style="margin:0in 0in 0pt"><span style="color:#1f497d"><font face=Calibri>This works on VS 2008, so there’s no bug here that I am aware of. <br><br>Can you send me your .rules file from the project and the copy of the workflow code on which the fields/properties are defined (that are being used inside the declarative rule condition). If you can paste your code condition too, that’d be great.<br></font></span></p> <p style="margin:0in 0in 0pt"><span style="color:#1f497d"><font face=Calibri>Kavita </font></span></p><hr class="sig">Program Manager, Connected Framework: http://blogs.msdn.com/rulesteamThu, 19 Mar 2009 19:04:41 Z2009-03-19T19:04:41Zhttp://social.msdn.microsoft.com/Forums/en-US/dublin/thread/281a36b7-20e0-4d58-a764-a27996d8b4c9#2a96a262-7829-4348-9396-c7c9cdd89933http://social.msdn.microsoft.com/Forums/en-US/dublin/thread/281a36b7-20e0-4d58-a764-a27996d8b4c9#2a96a262-7829-4348-9396-c7c9cdd89933Denneshttp://social.msdn.microsoft.com/Profile/en-US/?user=DennesWorkflow Validation Failed in dublin VM from PDC<p dir=ltr style="margin-right:0px"> Hi,<br><br>It's a too simple condition that I used to test the workflow :<br><br>this.InputValue &lt; 500<br><br>The same declarative condition works in VS 2008 but doesn't works in VS 2010 (dublin VM). But if I change declarative rule condition to code condition it works.<br><br>The code condition seems like this :<br><br>e.Result= (this.InputValue &lt; 500);<br><br><br>If it's really needed, I can send the project to you, it was just a test project receiving a number and doing different calculations if the number is greater than 500 or not. What's your e-mail to send the project ?<br><br>Thank you !!<br><br>[]'s<br><br>Dennes<br><br></p><hr class="sig">Dennes - Se resolveu, classifique a mensagem, por favor - [http://www.bufaloinfo.com.br] NOVO DVD Segurança no ASP.NET : http://www.bufaloinfo.com.br/LearingSeriesSegurancaASPNET2.aspThu, 19 Mar 2009 19:21:51 Z2009-03-19T19:21:51Zhttp://social.msdn.microsoft.com/Forums/en-US/dublin/thread/281a36b7-20e0-4d58-a764-a27996d8b4c9#69039190-3bf8-494d-b46d-4fa344288cechttp://social.msdn.microsoft.com/Forums/en-US/dublin/thread/281a36b7-20e0-4d58-a764-a27996d8b4c9#69039190-3bf8-494d-b46d-4fa344288cecKavita Kamani - MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Kavita%20Kamani%20-%20MSFTWorkflow Validation Failed in dublin VM from PDC kavita dot kamani at microsoft dot com.<br>please include the build of VS 2010 you have.<hr class="sig">Program Manager, Connected Framework: http://blogs.msdn.com/rulesteamThu, 19 Mar 2009 21:59:02 Z2009-03-19T21:59:02Zhttp://social.msdn.microsoft.com/Forums/en-US/dublin/thread/281a36b7-20e0-4d58-a764-a27996d8b4c9#6b8f81e7-30a7-4137-9ffe-4258f659d2efhttp://social.msdn.microsoft.com/Forums/en-US/dublin/thread/281a36b7-20e0-4d58-a764-a27996d8b4c9#6b8f81e7-30a7-4137-9ffe-4258f659d2efKavita Kamani - MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Kavita%20Kamani%20-%20MSFTWorkflow Validation Failed in dublin VM from PDC I have just been told there was a known issue on the PDC builds with 3.x Rules. So if you have a PDC build, then this is a known issue, and we plan to have it fixed in the Beta1 build.<br>Thanks<br>Kavita<hr class="sig">Program Manager, Connected Framework: http://blogs.msdn.com/rulesteamThu, 19 Mar 2009 22:08:46 Z2009-03-19T22:08:46Z