-
Notifications
You must be signed in to change notification settings - Fork 469
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
"Invalid column type from bcp client for colid" - How to use sql.UniqueIdentifier column type? #285
Comments
Greetings, I hate to ask such a simple question, but were you sure to mind your nullable: true/false? That will throw the "Invalid column type from bcp client for colid ___" Am I correct, Patrik? Regards, |
@aaronwilliams97 Had the same issue and setting the nullable option fixed it for me. |
I am getting the same error RequestError: Invalid column type from bcp client for colid 38.
at handleError (webpack:///./node_modules/mssql/lib/tedious.js?:426:15)
at emitOne (events.js:115:13)
at Connection.emit (events.js:210:7)
at Parser.tokenStreamParser.on.token (webpack:///./node_modules/tedious/lib/connection.js?:716:12)
at emitOne (events.js:115:13)
at Parser.emit (events.js:210:7)
at Parser.parser.on.token (webpack:///./node_modules/tedious/lib/token/token-stream-parser.js?:27:14)
at emitOne (events.js:115:13)
at Parser.emit (events.js:210:7)
at addChunk (webpack:///./node_modules/tedious/node_modules/readable-stream/lib/_stream_readable.js?:297:12)
at readableAddChunk (webpack:///./node_modules/tedious/node_modules/readable-stream/lib/_stream_readable.js?:279:11)
at Parser.Readable.push (webpack:///./node_modules/tedious/node_modules/readable-stream/lib/_stream_readable.js?:240:10)
at Parser.Transform.push (webpack:///./node_modules/tedious/node_modules/readable-stream/lib/_stream_transform.js?:139:32)
at doneParsing (webpack:///./node_modules/tedious/lib/token/stream-parser.js?:80:14)
at token (webpack:///./node_modules/tedious/lib/token/infoerror-token-parser.js?:48:5)
at call.lineNumber (webpack:///./node_modules/tedious/lib/token/infoerror-token-parser.js?:13:19) |
is the column nullable? |
@willmorgan jarekb84 is this issue resolved. i have nullable as true and am getting the same error |
Hey there,
i am trying to do a bulk insert with 15-20 columns, one of which is a UniqueIdentifier.
My MSSQL table column is a UniqueIdentifier.
I am using the node-uuid module to generate a v4 uuid and am trying to get it persisted (unsuccessfully).
The above code will always throw "Invalid column type from bcp client for colid" Error. What type do i have to use to be able to do the insert?
The text was updated successfully, but these errors were encountered: