Talend Connect
Virtual Summit
JOIN US!
And visit the Customer
& Community Lounge.
May 27-28, wherever you are.

DBOutputBulk Component not returning the columns in the Schema

Highlighted
Seven Stars

DBOutputBulk Component not returning the columns in the Schema

Hello,

 

I'm dealing with MSSQLDBInput Component connected too a MSSQLDBOutputBulk component. My output is only returning the first column in my output. Not the second column (CodeDescription) which I have in my DBOutputBulk Schema.

 

Can anyone see any issues that would be causing the outputbulk component to not include both fields I have listed in SS?

 

My MSSQLDBInput has the following query

 

"DECLARE @ApprovedClients AS TABLE (
ClientID NVARCHAR(10)
)

INSERT INTO @ApprovedClients VALUES
--Initial Go Live
('703'),('314'),('323'),
--TSA South --DEV ONLY: Added 2/28/19
('700'),('701'),('702'),('703'),('704'),('705'),('725'),
('726'),('727'),('728'),('729')


--TSM_DonorType_CCYYMMDD.TXT
SELECT DISTINCT
'000' + ClientID + [NewCode] AS CodeKey
,[CodeDescription]
FROM [YLM_Stage].[dbo].[MAP_OrganizationCodes]
CROSS APPLY @ApprovedClients
WHERE [YLM_InputFile] = 'Donor'
AND [FieldName] = 'Type'
ORDER BY 1,2"

Output.PNG

Schema.PNG

 

Components.PNG

Highlighted
Employee

Re: DBOutputBulk Component not returning the columns in the Schema

Hi,

 

   In your previous post, you have mentioned that you are running insert statements through tMSSQLDBInput. You are running lot of DB statements in a single tDBInput. Could you please add one select statement only per tDBInput and then join the tables using a tMap?

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved :-)

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog