Hello,<br><br>I tried with the latest 5.5.x branch code and could not replicate the issue you both report.<br><br>These are the steps I followed:-<br><br>1) Create a new Rule Template<br>2) Add a Fact Type<br>3) Add a Field constraint, with the value defined as a Template Key.<br>
4) Change Template Key name<br>5) Click OK<br>6) Click &quot;Load Template data&quot;<br>7) Add a row<br>8) Enter a value<br>9) Click OK<br>10) View source<br><br>Everything worked as I&#39;d expect it to.<br><br>Can you please advise if the steps you are using are different.<br>
<br>Can you please try with the 5.5.x latest code?<br><br>With kind regards,<br><br>Mike<br><br><div class="gmail_quote">On 14 March 2013 16:17, kurrent93 <span dir="ltr">&lt;<a href="mailto:kurrent93@gmail.com" target="_blank">kurrent93@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
I&#39;m tryiing to create a template in Guvnor.<br>
<br>
When I try to add a template key, guvnor appends _na to the variable name.<br>
And also says there are validation errors.<br>
<br>
Is this something I am doing wrong?<br>
<br>
the template looks like this:<br>
1.      |       rule &quot;TestTemplate_0&quot;<br>
2.      |           dialect &quot;mvel&quot;<br>
3.      |           when<br>
4.      |               Account( accountBalance &gt; account_balance_na )<br>
5.      |           then<br>
6.      |               insertLogical( new TradeOrder() );<br>
7.      |       end<br>
<br>
Thanks<br>
Anton<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/validation-error-on-Template-tp4022828.html" target="_blank">http://drools.46999.n3.nabble.com/validation-error-on-Template-tp4022828.html</a><br>
Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br>