Azure Data sync from azure sql hub database to azure sql member database with system versioned tables errors

Nguyen, Hoa 421 Reputation points
2022-06-07T23:16:06.287+00:00

I have a hub database 'Db1' with 2 selective system versioned tables Table1 and Table2 to sync to a member database 'DB2'.
Both Table1 and Table2 are system versioned.

When I manually sync'ed , I received these errors ( even when the member database DID NOT have the empty tables to start out with).

Hub database
Database provisioning failed with the exception "Cannot insert an explicit value into a GENERATED ALWAYS column in table ‘X1’. Use INSERT with a column list to exclude the GENERATED ALWAYS column, or insert a DEFAULT into GENERATED ALWAYS column.Inner exception: SqlException ID: 98d3c237-0faf-4013-a44a-7f258df9ac5f, Error Code: -2146232060 - SqlError Number:13536, Message: SQL error with code 13536 For more information, provide tracing ID ‘b3452a68-b62c-41b9-942b-69b5e2447416’ to customer support."

Member database
Database provisioning failed with the exception "Incorrect syntax near the keyword 'NOT'.Inner exception: SqlException ID: 93f12b12-d892-4172-b309-a2de1fadcb5f, Error Code: -2146232060 - SqlError Number:156, Message: SQL error with code 156 For more information, provide tracing ID ‘edff9d8e-2c49-449a-91a6-6045f1acdbc1’ to customer support."

Can some throw some light or guidance as I am lost? Thank you in advance.

Azure SQL Database
{count} votes

Answer accepted by question author
  1. GeethaThatipatri-MSFT 29,587 Reputation points Microsoft Employee Moderator
    2022-06-09T00:17:32.24+00:00

    Hi, @Nguyen, Hoa Thanks for posting your question in the Microsoft Q&A forum.
    You need to skip the syncing of the system-generated columns in temporal tables.
    It is documented here:

    209599-image.png

    Please let me know if you need any additional information.
    Regards
    Geetha


0 additional answers

Sort by: Most helpful

Your answer

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