"The som expression '$. for the dataRef specified on field 'field', resolved to an incompatible... | Community
Skip to main content
Level 3
Mar 14, 2014 7:13 PM UTC
Solved

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

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.
_Bruce_Robertson
_Bruce_RobertsonAccepted solution
Level 10
Mar 16, 2014 5:06 AM UTC

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
Level 10
Mar 14, 2014 7:34 PM UTC

try the following

$.accountDetail.interestDueAmount.value.text.value

Translate
Level 3
Mar 14, 2014 7:25 PM UTC

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

Translate
Magus069
Level 10
Mar 14, 2014 7:21 PM UTC

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

Translate