Skip to Content

Adobe form with empty node

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Sep 13, 2018 at 07:50 AM

    Hi!

    I was playing around with the form and accidentally found the solution.

    You have to set the flag 'Repeat Table for Each Data Item' and uncheck the 'Min Count' flag

    Thanks for all,

    David.

    Add comment
    10|10000 characters needed characters exceeded