The error occurs when the column width is calculated to optimize the width for each column.
I am not sure if this is a bug in the POI library or in the way I generate the formula column.
For the time being you can workaround this by disabling that automatic column width using -autoColWidth=false
Thomas
Maurizio Scarpis schrieb am 24.08.2021 um 14:56:
> Hi Thomas.
> I just tried new version 127.6 for formula columns.
> I have some formulas that cause error "Cannot get a STRING value from a FORMULA cell",
>
> *Query1 (OK)*
> wbexport -type=xlsx -file=C:\tmp\exp.xlsx -formulaColumns=col3
> ;
> select tabid, tabname,
> "ROUND(ROW(A2),2)" col3
> from systables
> where tabid < 3
> ;
>
> *Query 2 (my goal, KO)*
> wbexport -type=xlsx -file=C:\tmp\exp.xlsx -formulaColumns=col3
> ;
> select tabid, tabname,
> "INDIRECT(ADDRESS(ROW()-1,COLUMN()))" col3
> from systables
> where tabid < 3
>
>
> *Query 3 (a "very" simple version with the same error, KO)*
> --
> You received this message because you are subscribed to the Google Groups "SQL Workbench/J - DBMS independent SQL tool" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
sql-workbenc...@googlegroups.com <mailto:
sql-workbenc...@googlegroups.com>.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/sql-workbench/2bb92112-0a64-4dd2-be81-54ef12699b6en%40googlegroups.com <
https://groups.google.com/d/msgid/sql-workbench/2bb92112-0a64-4dd2-be81-54ef12699b6en%40googlegroups.com?utm_medium=email&utm_source=footer>.