Uploaded image for project: 'Talend DI components'
  1. Talend DI components
  2. TDI-46747

[Autodetect] empty file exception while creating a new S3 dataset with an empty file

Apply templateInsert Lucidchart Diagram
    XMLWordPrintable

Details

    • Bug
    • Status: Done
    • Minor
    • Resolution: Fixed
    • None
    • connectors/1.34.0
    • None

    Description

      Stack: INT

      Images:

      • connectors: 1.24.0
      • dataset: 1.52.0-20210827165746

      Steps to reproduce:

      Given I logged in to data inventory app
      And I have an existing S3 connection
      When I create a new S3 dataset with an empty CSV file
      And I click on autodetect button
      Then I have CSV type selected in format field

      Obtained :
      Then I get an empty file exception

      Expected:
      Then I have CSV type selected in format field

      Details:

      The call POST /api/v1/action/execute/dataset?lang=en&action=autoDetect4s3&family=FileIO&type=update returns a 500 error with the message:

      {"timestamp":1632133629918,"status":500,"error":"Internal server error","message":"We've encountered a problem. Action execution failed with: Fail to guess the file format, now support csv, excel, avro, parquet format : class java.io.IOException : class java.lang.reflect.InvocationTargetException : null : org.apache.poi.EmptyFileException: The supplied file was empty (zero bytes long) : null","path":"/tacokit-proxy/v1/action/execute/dataset"}
      

      Attachments

        Activity

          People

            pteyssier pierre teyssier
            osaad Otmane Saad
            Oleksandr Zhelezniak, Xuejing Liu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: