BULKUNLOAD from Databricks fails with "ERROR: Invalid data format in BULKUNLOAD stream..."


If your Databricks data contains non-display characters Line Feeds (LF or '0A'x) or Carriage Returns (CR '0D'x), BULKUNLOAD from Databricks might result in one or more of the following errors...

ERROR: Invalid data format in BULKUNLOAD stream. If the data contains the delimiter character you can use BL_USE_ESCAPE=YES to fix this error.

ERROR: read_and_convert_data_file(1): get_column_data failed, rc = 0xfffffc1a

ERROR: Message from TK: An invalid number was found in buffer.

ERROR: read_and_convert_data_file(1): tkzsu8ToDouble failed, rc = 0x803fe810

In addition, the following might occur:

Workaround

To work around this issue, do any of the following:

Resolution

With the hot fix for this issue, you will be able to use undocumented parameters to BL_OPTIONS. (That is, BL_OPTIONS='BL_ROW_DELIMITER=CR'.)