I figured it out. The problem was that I had created a SQL-query
instead of a HQL query to retrieve the class data in this instance.

On Sep 29, 1:35 pm, givoni <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am getting this error after I added a formula to a class: Value
> cannot be null. Parameter name: fieldName
> The formula is:
> <property name="AnswersCount" formula="(SELECT COUNT(A.postid) FROM
> Answerpost as A WHERE A.Userid = id)" insert="false" type="Int32" />
> I suppose that it's because the formula returns null, but I can't find
> a way to get around it.
>
> Do you have any suggestions.
>
> Thanks,
> David
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to