Found non-table cell inside table row

This forum is for all Flare issues not related to any of the other categories.
Post Reply
KT_Mtjoy
Propeller Head
Posts: 20
Joined: Thu Jul 30, 2009 7:37 am

Found non-table cell inside table row

Post by KT_Mtjoy »

Hello,
I just created a new Flare project by importing a document from Word, however as I am adjusting the formatting/adding new text, I keep getting an error appear in a messages bar at the bottom of my screen that says "Found non-table cell inside table row", and this message prints out about 25 times at once. This is the first time I have observed this error, and this is also the first time however I have imported a file since the patch was installed last week, is this a known bug or is there a setting that I need to change in my project?
Thanks so much,
Katie
KT_Mtjoy
Propeller Head
Posts: 20
Joined: Thu Jul 30, 2009 7:37 am

Re: Found non-table cell inside table row

Post by KT_Mtjoy »

Hi again,
I think I may have found a solution, I re-created the project from the word file, but instead removed the TOC links and stripped down most of the formatting. The error hasn't appeared again in Flare.
Thanks,
Katie
SteveS
Senior Propellus Maximus
Posts: 2089
Joined: Tue Mar 07, 2006 5:06 pm
Location: Adelaide, far side of the world ( 34°56'0.78\"S 138°46'44.28\"E).
Contact:

Re: Found non-table cell inside table row

Post by SteveS »

I always try to strip as much formatting as I can before importing. :wink:
Image
Steve
Life's too short for bad coffee, bad chocolate, and bad red wine.
Andrew Heard
Sr. Propeller Head
Posts: 139
Joined: Tue Aug 19, 2008 12:17 am
Location: Perth, Western Australia

Re: Found non-table cell inside table row

Post by Andrew Heard »

I've seen a similar thing on imported tables with merged cells - extra "phantom" columns were added outside the table proper. Seems like somewhere along the line the colspan and number of columns or cells got out of sync. Couldn't fix it in the XML editor so went into the code and removed the extra <td> tags (from memory).
Some mornings it just doesn't seem worth it to gnaw through the leather straps.
Leanna4
Jr. Propeller Head
Posts: 9
Joined: Wed Sep 02, 2015 1:07 pm

Re: Found non-table cell inside table row

Post by Leanna4 »

I found that what existed was an extra space in my table headers I had "<th>XXXXXXX</th> <th>XXXXXXX</th>"

When I removed the space, the problem stopped. :P
doc_guy
Propellus Maximus
Posts: 1979
Joined: Tue Nov 28, 2006 11:18 am
Location: Crossroads of the West
Contact:

Re: Found non-table cell inside table row

Post by doc_guy »

For others who have this problem: I found that in my project I had a rogue table row without columns, which was causing this message.

Here is what my code had:

Code: Select all

<tr> </tr>
I removed that row and the message went away.
Paul Pehrson
My Blog

Image
Ellu
Propeller Head
Posts: 11
Joined: Fri Jan 08, 2016 3:46 am

Re: Found non-table cell inside table row

Post by Ellu »

After all the years, this problem still persists. In some cases, some of the tricks above work, but in others they don't. The error message is far too vague.
There is probably no improvement in sight?
telmaiara
Jr. Propeller Head
Posts: 6
Joined: Thu May 11, 2023 3:20 pm

Re: Found non-table cell inside table row

Post by telmaiara »

I had the same message 112 times for the same file, which contains 2 tables.

When I removed all indentation in Text Editor, the problem was solved. By indentation, I mean the tabs before the tags in every line.
This is what I had:

Code: Select all

<table>
	<col />
	<col />
	<thead>
		<tr>
			<td></td>
			<td></td>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td></td>
			<td></td>
		</tr>
	</tbody>
</table>
This is the result, with no more messages such as 'Found non-table row inside table section' and 'Found non-table cell inside table row':

Code: Select all

<table><col /><col />
	<thead><tr><td></td><td></td></tr></thead>
	<tbody><tr><td></td><td></td></tr></tbody>
</table>
The indentation before <thead> and <tbody> are not an issue.

I hope this helps.
Psider
Propellus Maximus
Posts: 816
Joined: Wed Jul 06, 2011 1:32 am

Re: Found non-table cell inside table row

Post by Psider »

I wonder if it's related to some sort of non-printing character that Word adds, which Flare doesn't like. The number of posts saying removing all the white spaces fixes the issue suggests this might be the case. It might be possible to locate the offending characters using a text editor like Notepad++
trent the thief
Propellus Maximus
Posts: 613
Joined: Wed Feb 01, 2006 6:21 am
Location: Off in the dark....

Re: Found non-table cell inside table row

Post by trent the thief »

That is a safe and proper assumption as you're dealing with output from an M$ product.

After importing, it's always nice to run the output through https://www.freeformatter.com/xml-validator-xsd.html

Just paste the file into the top text area (Option 1: Copy-paste your XML document here), and then click Validate XML. You don't need to add an XSD or any other settings. It uses the XSD link in our files for validation. That'll find the odd crap that pops up during an import. After validation, you can run it through their XML or HTML formatter if you start moving tags around.

I just did a huge doc set import and used freeformatter extensively. To find those oddball issues like the empty TR tags, if running it through the validator doesn't find it, cut out half the rows in the table, try the output. If it doesn't fail, then the cut lines contain the issue. If it failed, restore the cut lines and start chopping up the other half.

Just be careful that you don't inadvertently cut a tag pair in half ;-)
Trent.

Certifiable.

Image

umm...
I meant MAD Certified.

Official Propeller Beanie Owner :-)

:flare: Are you on Flare's Slack channels? PM me for an invitation! :flare:
SteveS
Senior Propellus Maximus
Posts: 2089
Joined: Tue Mar 07, 2006 5:06 pm
Location: Adelaide, far side of the world ( 34°56'0.78\"S 138°46'44.28\"E).
Contact:

Re: Found non-table cell inside table row

Post by SteveS »

It is incredible how much can be resolved by pasting content into Notepad or Notepad++ and recopying it before pasting it somewhere else (even back into Word).
Image
Steve
Life's too short for bad coffee, bad chocolate, and bad red wine.
trent the thief
Propellus Maximus
Posts: 613
Joined: Wed Feb 01, 2006 6:21 am
Location: Off in the dark....

Re: Found non-table cell inside table row

Post by trent the thief »

Isn't it? I learned early on to never directly paste from an M$ source doc into working doc without first putting the text through NPP to get rid of any stray garbage that word wanted to add.
Trent.

Certifiable.

Image

umm...
I meant MAD Certified.

Official Propeller Beanie Owner :-)

:flare: Are you on Flare's Slack channels? PM me for an invitation! :flare:
Post Reply