Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Table Transformer can not read column name correctly after published but pre-view is ok

Alice Liu
Contributor
September 17, 2023

Hi there,

I encountered an issue which previously did not happen for using 2-layer Table Transformer structure. My structure is as below:

 

Table Transformer 1

  Select T1.'Top'

     Table Transformer 2

      Select ROWNUM() AS 'Top'

 

The issue is that Confluence can not read 'Top' after published (as below image), but in Table Transformer 1's pre-view it is ok with desired result (as below image).

Could you suggest how to fix it?

 

Thank you.

 

captainM_0918.png

captainM_0918-2.png

1 answer

3 votes
Katerina Rudkovskaya _Stiltsoft_
Atlassian Partner
September 18, 2023

Hi @[deleted],

I’ve tried to recreate your case, and everything works fine for me, here is my published page:

Mon 5-1.png

And here is my macro structure:

Mon 5-2.png
Here goes the internal Table Transformer macro:

SELECT
ROWNUM() AS 'Top',
*
FROM T*

Mon 5-3.png

And here goes the external Table Transformer macro:
SELECT T1.'Top',
T1.'Project',
T1.'Column 1',
T2.'Column 3'
FROM T1
JOIN T2 ON T1.'Project' = T2.'Project'

Mon 5-4.png

Unfortunately, I don’t see your source tables and full SQL queries. Check everything once more and type your queries using autocomplete (type T1. and wait for the dropdown with available columns to choose from).

You may also check the version of the app for Date Center/Server – the current one is 9.12.0, please update if yours is older.

If you are still stuck, please refer to our support. Attach the Page Storage Format (upper right corner of the page -> menu … -> View storage format) so we’ll be able to recreate exactly your page and investigate the issue.

Alice Liu
Contributor
September 20, 2023

Hi Katerina,

Thank you for the feedback. The structure you reproduce matches my case, and the major difference I think is that actually the T1 and T2 in my case are more complicated, which are generated from several sub-tables using "table excerpt" tool for leveraging. The complete structure is as below images FYI.

 

For the SQL queries, I checked with autocomplete and all columns can be found. Also the result can successfully show in Table Transformer's preview when in Confluence edit mode, so I think it is not syntax or logic issue of SQL queries, but rather other reasons that may be related to compatibility with other macros, such as Table Filter and Table excerpt/excerpt include, or app version like you mentioned.

 

Would you like to provide some comments/insights on the compatibility issue part?

For app version, I'm trying to contact our Confluence admin to check.

 

Thank you.

 

ps. I wish I could use more simple structure, but consider our application, data source comes from another macro "Confiforms" and SQL rules, This is so far the best way I can think of to meet our needs. It is so close to full solution that we made it in the preview... really hope it can be seen on published page too.

img-1.png

img-3.pngimg-2.png

Stiltsoft support
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 20, 2023

Hi @Alice Liu ,

Just the same advice from our side: check the app's version and update it to the latest one (we constantly improve internal processes regarding caches, compatibility with other apps, for example, Confiforms that you've mentioned - maybe it will help your case).

To investigate the issue deeper (for the preview the macro works with static snapshots of your data but somehow the live macros cause trouble) you need to refer to our support and attach the page storage format not only of the master page but all the child pages containing your Table Excerpt macros and Confiforms macros.

So, we'll be able to recreate the whole chain an see where (and why) the macro is "confused". And maybe we'll be able to suggest how to simplify your structure in general.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events