Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Casting issue for output configuration #141

Open
tdahl8 opened this issue Oct 24, 2023 · 0 comments
Open

Casting issue for output configuration #141

tdahl8 opened this issue Oct 24, 2023 · 0 comments

Comments

@tdahl8
Copy link

tdahl8 commented Oct 24, 2023

I'm having an issue pushing data into SQL Server using this plugin. It seems the only issue I'm having is the first column, which is configured as a unique identifier in both my source and destination databases, is being cast to an int or bigint when trying to ingest. I've checked my data being pulled from my source plugin and it is correct, it seems as though this plugin has some casting issue when using output configuration.

{"time":"2023-10-24T21:28:29","level":"warn","message":"Got deterministic error. Fallback to one-by-one import error_class_ActiveRecord::StatementInvalid error="TinyTds::Error: Conversion failed when converting from a character string to uniqueidentifier.:INSERT INTO [table1] ([id],[status],[ident]) VALUES ('1',N'Status1',1); SELECT CAST(SCOPE_IDENTITY() AS bigint) AS Ident"","work_id:0}

If anyone has seen or knows a workaround for this that would be greatly appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant