Skip to main content
Curtis Bryant ha preguntado en #Tableau Prep

For several years, I've been following the instructions on the Refresh flow output files from the command line help page to automatically run Prep flow files. Windows Task Scheduler runs a batch file that executes the command. So far, so good!

 

The problem is that after updating Prep to 2025.2 yesterday, my batch script (updated for the new version) no longer works. Instead, there's a Java error message:

JAVA_HOME is set to : C:\Program Files\Tableau\Tableau Prep Builder 2025.2\scripts\..\Plugins\jre temporarily

OpenJDK 64-Bit Server VM warning: Ignoring option --illegal-access=deny; support was removed in 17.0

Exception in thread "main" java.lang.ExceptionInInitializerError

at com.tableau.tprep.cli.app.utils.CliUtils.isDevEnvironment(CliUtils.java:88)

at com.tableau.tprep.cli.app.utils.CliUtils.getConfigPath(CliUtils.java:134)

at com.tableau.tprep.cli.app.config.AppConfigBuilder.<init>(AppConfigBuilder.java:30)

at com.tableau.tprep.cli.app.CliMain.main(CliMain.java:39)

Caused by: java.lang.NullPointerException

at java.base/java.util.Objects.requireNonNull(Objects.java:209)

at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:216)

at java.base/java.nio.file.Path.of(Path.java:147)

at java.base/java.nio.file.Paths.get(Paths.java:69)

at com.tableau.tprep.cli.app.utils.CliProperties.<clinit>(CliProperties.java:29)

... 4 more

The Java error indicates an ExceptionInInitializerError that was caused by a NullPointerException. It sounds like it tried to start Prep, but something necessary was missing.

 

Here's my batch file command updated for Prep 2025.2 with the user name obscured:

"\Program Files\Tableau\Tableau Prep Builder 2025.2\scripts"\tableau-prep-cli.bat -t "\C:\Users\<user name>\Documents\My Tableau Prep Repository\Flows\EnrollmentDashboard\EnrollmentDashboardsSSDates.tfl" 1> log_DatesSS.txt 2>&1

 

The paths to tableau-prep-cli.bat and to the .tfl file are correct. What do you think the matter is?

3 respuestas
  1. 12 jul 2025, 12:42

    @Curtis Bryant​ 

    Hi, yes indeed this is an issue that has been detected with a solution in progress:

    https://help.salesforce.com/s/issue?id=a02Ka00000gazVDIAY&title=flow-run-fails-on-tableau-prep-builder-version-20252-when-run-from-the-command-line-

    @Curtis Bryant​ Hi, yes indeed this is an issue that has been detected with a solution in progress:As you have also stated, the workaroun is to use 2025.1 or 2024.2 release to run them.As you have also stated, the workaroun is to use 2025.1 or 2024.2 release to run them.

     

    If possible, also report the problem in the issue page.

     

    Thanks for letting us know about this.

     

    If this post resolves the question, would you be so kind to "Select as Best"?. This will help other users find the same answer/resolution and help community keep track of answered questions. Thank you.

     

    Regards,

     

    Diego Martinez

    Tableau Visionary and Forums Ambassador