Why does "Export Data to File" automation task fail with error "No analysis loaded"?

Why does "Export Data to File" automation task fail with error "No analysis loaded"?

book

Article ID: KB0078152

calendar_today

Updated On:

Products Versions
Spotfire Automation Services 7.5 and higher

Description

While using "Export Data to File" automation task from Spotfire Analyst >>Automation Services Job Builder, the automation job might fail with the following error.
=====
*Starting job TestFile.xml on server http://myTestServer/
<http://myTestServer/>*
*FAILED: Task 1 'Export Data to File' failed with: No analysis loaded.*

=====
This error can be seen while running the job on server or locally.'

Cause:
This error is seen when the file is not loaded prior to 'Export Data to File' task gets executed in the automation job. In order to export data to a file, the analysis file needs to be loaded first.

Issue/Introduction

Why does "Export Data to File" automation task fail with error "No analysis loaded"?

Environment

All supported environments

Resolution

While running the automation job locally or on server, the analysis file where the data needs to be exported from, must be loaded first from the library and then the automation job containing 'Export Data to File' job should be executed. In order to load the file, another automation task "Open Analysis From Library" should be added prior to the 'Export Data to File' task so that the file loads first and then the data table to be exported is read from the loaded analysis file.