"The som expression '$. for the dataRef specified on field 'field', resolved to an incompatible... | Community
Skip to main content
New Participant
March 14, 2014
Solved

"The som expression '$. for the dataRef specified on field 'field', resolved to an incompatible...

  • March 14, 2014
  • 13 replies
  • 7475 views

Node type of dataGroup, is what follows that error.

It's strange, every single field is mapped just fine, it only happens with a particular one.

Any ideas?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by _Bruce_Robertson

Hi,

I'm having trouble viewing your form in Designer, I'm guessing it is because you have ES4 and I only have ES3.  But there does seem to be an unnamed subform under cuentaCitionePlus just after TextField7 which is also bound to $.accountDetail.interestDueAmount.value.  This creates a dataGroup object as it was not in the sample XML used to create the data connection (notice that it is greyed out in the data view palette), so when the field "Intereses proyectados a fin de mes" then tries to bind it will find the dataGroup object (not a dataValue).

Regards

Bruce

13 replies

Magus069
New Participant
March 14, 2014

try the following

$.accountDetail.interestDueAmount.value.text.value

New Participant
March 14, 2014

The error only happens when I try to bind to a specific xml node, that is similar to everyone else.

Does not matter the field I try to bind to, that's why I'm confused.

What confuses me more, is that if I make an intentional typo, there is no error, the value is just not mapped, and everything runs without problem, but when I match the value of the node, that is when the error happens (in this particular field)

For example, the error occurs when I map my textField to:

<interestDueAmount>

                                <currencyCode>COP</currencyCode>

                                <value>222</value>

</interestDueAmount>

If I do (in the Binding section) $.accountDetail.interestDueAmount.value -> I have the previous error.

If I do $.accountDetail.interestDueAmount.asd -> no error, no mapping of course but I have no errors either.

So, I'm confused

Magus069
New Participant
March 14, 2014

Do you know which line is causing the error... if you specify a resolveNode(), it might be because your somExpression is wrong...