pleblond
5 years agoNew Contributor
Extra characters inserted in DB when using Bulk Loader
We have a pipeline with a SQL bulk upload snap in it.
Here is our input:
ID: 1
JSON : {"address: 1234 no where”}
We insert several hundred of these into a SQL DB into a table with
ID,JSON
Create SQL:
CREATE TABLE [dbo].[test_json_inc](
[id] [bigint] NOT NULL,
[json] nvarchar NULL
)
GO
When we do a SQL insert the following is added ot the json field
JSON : {"address: 1234 no where”}
If we switch to using the bulk uploader we get
JSON : {"address: 1234 no where”} [|!,!|]1[|!,!|]{"address: 1234 no where”}
As you can see the json is duplicate with the pipes and exclamations in between. Is this a known issue and is their a workaround?