User configuration issue in dataflow pipeline

Srinidhi Adiga 1 Reputation point
2022-02-23T20:02:12.193+00:00

{"StatusCode":"DFExecutorUserError","Message":"Job failed due to reason: at Sink 'sink1': java.sql.BatchUpdateException: Cannot insert explicit value for identity column in table 'Car' when IDENTITY_INSERT is set to OFF.","Details":"java.sql.BatchUpdateException: Cannot insert explicit value for identity column in table 'Car' when IDENTITY_INSERT is set to OFF

pipeline id is 174c9472-f815-479c-9b70-e2178e28d55a

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,698 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ShaikMaheer-MSFT 38,441 Reputation points Microsoft Employee
    2022-02-24T17:00:50.92+00:00

    Hi @Srinidhi Adiga ,

    Thank you for posting query in Microsoft Q&A Platform.

    As per my understanding you are getting error "Cannot insert explicit value for identity column in table 'Car' when IDENTITY_INSERT is set to OFF." while running your data flow. Kindly correct me if my understanding is wrong.

    Above error will come when you try to insert values explicitly to in to identity column.

    You consider below options to over come this issue.

    • Remove identity on column or SET IDENTITY_INSERT ON on column. Click here to know about how to set IDENTITY_INSERT ON.
      OR
    • Make sure to not supply values for your identify column from data flow.

    Hope this will help. Please let us know if any further queries.

    -------------

    Please consider hitting Accept Answer. Accepted answers helps community as well.


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.