0

While developing a data migration application, using Mulesoft's Anypoint Platform, I've encountered an issue with the insertion of the data of a table that has an identity attribute.

To insert data on those types of tables, I usually use the command

 SET IDENTITY_INSERT table_name ON;

proceed to insert the information and use the command

 SET IDENTITY_INSERT table_name OFF;

to turn it back off. However, with Mulesoft it's a bit different. My flow looks like this.

Mulesoft Migration Flow

I've tried it multiple ways, I used Execute Script instead of Execute DDL, I've changed the Execute DDL component to different locations but anywhere other than where it's at changes the payload, I've also tried to put all the commands on the same component but it's not allowed any command other than Insert on the Insert component and with the Execute DDL component I can't receive the payload.

Any help is appreciated!

Thank you

EDIT: To anyone that has this problem creating a stored procedure with the IDENDITY_INSERT and the insert code should do it!

ooz
  • 13
  • 2
  • 9
  • You should paste the flow in XML textual representation inside your description, not as a screenshot. – aled Apr 05 '20 at 18:11
  • Yup, my bad! I was able to fix the issue but thank you for the answer :) – ooz Apr 06 '20 at 12:44

0 Answers0