Azure, Export Hyperscale Database to BacPac failed due to Vector datatype column in a table.

Micael Uthas 20 Reputation points
2025-06-13T13:33:35.3433333+00:00

Trying to export a Hyperscale SQL database to Blob storage BacPac.
I did som laborations with VECTOR datatype in one table an left it there for later laborations.

The export fails due to the Vector column.
ErrorMessage:

"The ImportExport operation with Request Id 'aa' failed due to 'Invalid data type '[vector]' in table 'Articles' column 'embedding' at ordinal 4. Change the length of '5' to 'max' on the column"

Azure SQL Database
0 comments No comments
{count} votes

Accepted answer
  1. Mahesh Kurva 4,705 Reputation points Microsoft External Staff Moderator
    2025-06-13T14:44:16.97+00:00

    Hi Micael Uthas

    Greetings!!

    The issue you're encountering is due to the VECTOR data type in your Hyperscale SQL database, which isn't currently supported by the BacPac export process. BacPac files are designed for schema and data portability, but they don't support newer or specialized types like VECTOR.

    User's image For more information, please refer the document:
    https://learn.microsoft.com/en-us/azure/azure-sql/database/reverse-migrate-from-hyperscale?view=azuresql&tabs=azure-portal#limitations-for-reverse-migration

    The error message suggests: "Change the length of '5' to 'max' on the column"

    However, this is likely a misleading part of the message. The real issue is the unsupported data type, not the length.

    Workaround:

    To successfully export your database to Blob storage as a BacPac, you can:

    Temporarily remove or exclude the VECTOR column:

    • Create a copy of the Articles table without the embedding column.
    • Export the modified database.
    • Reintroduce the VECTOR column after import if needed.

    Use a script-based export/import:

    • Instead of BacPac, use BACPAC alternatives like DACPAC or SQL scripts for schema and data migration. These methods give you more control over what gets exported.

    Use Azure Data Factory or custom ETL:

    • If you need to preserve the VECTOR data, consider exporting it separately using Azure Data Factory or a custom ETL pipeline.

    Hope this helps. Do let us know if you any further queries.

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.