Template document (Pdf)

0
Developed a template which when executed gives the followoing error: Caused by: com.mendix.core.CoreException: Exception occurred in microflow 'DASBase.PrintFileRideForm' for activity 'Generate PDF (.pdf) document using template 'FileRideFormKennemerland'', all database changes executed by this microflow were rolled back at mk.b(SourceFile:255) Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: javax.xml.transform.TransformerException: org.apache.fop.fo.ValidationException: "fo:table-row" is missing child elements. Required content model: (table-cell+) (See position 4:2598) at ki.a(SourceFile:100) Caused by: javax.xml.transform.TransformerException: org.apache.fop.fo.ValidationException: "fo:table-row" is missing child elements. Required content model: (table-cell+) (See position 4:2598) at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:502) The template is almost a carbon copy of another template which works fine. Any suggestions?
asked
2 answers
1

This problem might occur because in a table you've merged all the cells (of each column) of a row with the row below, so effectively that row below has no cells left.

So instead of merging all the cells of a row with the row below, you may unmerge the cells and just delete the whole row. This might fix the problem that the 'table-row' is missing elements.

answered
0

I quickly glanced at the code, the only place I could imagine this could happen is when a (data/template)grid does not contain any objects. But this is without testing so can you please file a ticket with a reproduction?

answered