Skip to Content
0
Sep 12, 2018 at 04:30 PM

Adobe form with empty node

233 Views

Hello!

We are using Adobe forms with xml schema based interface for invoice printing. We have 3 tables in the form and depending on some conditions 1, 2 or even all 3 tables might be empty. When any of the tables are empty the printing throws error.

In debugging I downloaded the data .xml and inserted in ALD as new data connection.

On the data connection the table shows up as a text field and when I want to preview the .pdf it throws the following error:

The SOM expression 'BillingDocumentNode.ZPeriodicDailyHead' for the dataRef specified on DailyHeadTbl, resolved to an incompatible node type of 'dataValue'.

I was thinking that there might be some settings in SEGW that puts all the fields and subnodes under the ZPeriodicDailyHead node with empty value, but no matter how I set the cardinalities it always show up in the .xml as an empty node (<ZPeriodicDailyHead/>).

If there are rows in the node I don't get error:

<ZPeriodicDailyHead>
<ZPeriodicDailyHead>
...some other fields with value...
<ZPeriodicDailyItem>
<ZPeriodicDailyItem>
...some other fields with value...
</ZPeriodicDailyItem>
</ZPeriodicDailyItem>
</ZPeriodicDailyHead>
</ZPeriodicDailyHead>


Any suggestions?

Thanks, and best regards,

David.