Skip to content

@flatfile/plugin-export-workbook - Failure to fetch records does not terminate job and unclear on cause of failure #186

Description

@colinfrederickson

Issue Description:

When using the @flatfile/plugin-export-workbook, I encountered an issue where the job does not terminate even after a fatal error occurs. Specifically, the plugin failed to fetch records for a particular sheet but continued executing without providing a clear reason for the failure. The job continued to be stuck at 10% in the UI.

Steps to Reproduce:

Set up the Flatfile environment and use the exportWorkbookPlugin with the debug option set to true.
Start the job to export the workbook.
Observe the logs for any fatal errors.

Note: This was encountered when introducing the plug-in to this configuration.

Expected Behavior:

If there is a failure when fetching records, the job should:

Terminate immediately.
Provide a clear and detailed error message indicating the reason for the failure.

Actual Behavior:

The job continued running even after a fatal error occurred. The error message provided was:
[@flatfile/plugin-export-workbook]:[FATAL] Failed to fetch records for sheet with id: us_sh_xiSwowlF
However, there was no clarity on the cause of the failure.

Logs:

[@flatfile/plugin-export-workbook]:[INFO] Sheets found in Flatfile workbook:
'Worker Data' (us_sh_1dAkNW5r)
'Supervisory Orgs' (us_sh_1c2eRav2)
'Companies' (us_sh_xiSwowlF)
'Locations' (us_sh_JYODHJRD)
'Cost Centers' (us_sh_WTpPEkX2)
'Job Codes' (us_sh_BCYFBYu6)
▶ job:updated 11:57:58.146 AM us_evt_w1zYT75xTsDFsZFW
↳ on(**, {})
-> My event listener received an event: "job:updated"
[@flatfile/plugin-export-workbook]:[FATAL] Failed to fetch records for sheet with id: us_sh_xiSwowlF

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions