Compatibility of SSIS 2008/2008 r2 to SQL SERVER 2016 databases
SSIS job is getting failed.
Hi Experts,
Please help with the below issue -
Detailed Error Description:
Executed as user: PRODGRP\!bd_production. Microsoft (R) SQL Server Execute Package Utility Version 12.0.2430.0 for 32-bit
Copyright (C) Microsoft Corporation. All rights reserved. Started: 11:25:28 AM Error: 2019-08-16 11:25:32.98
Code: 0xC0202009 Source: CustomerSiteGroupLoad Connection manager "ExcelSrcFile"
Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft Office Access Database Engine" Hresult: 0x80004005
Description: "External table is not in the expected format.". End Error Error: 2019-08-16 11:25:32.98
Code: 0xC020801C Source: (DFT) Stg_CustomerSiteGroup (ES) Customer Site Group [31]
Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.
The AcquireConnection method call to the connection manager "ExcelSrcFile" failed with error code 0xC0202009.
There may be error messages posted before this with more information on why the AcquireConnection method call failed.
End Error Error: 2019-08-16 11:25:32.98 Code: 0xC0047017
Source: (DFT) Stg_CustomerSiteGroup SSIS.Pipeline
Description: (ES) Customer Site Group failed validation and returned error code 0xC020801C.
End Error Error: 2019-08-16 11:25:32.98 Code: 0xC004700C
Source: (DFT) Stg_CustomerSiteGroup SSIS.Pipeline
Description: One or more component failed validation.
End Error Error: 2019-08-16 11:25:32.98
Code: 0xC0024107 Source: (DFT) Stg_CustomerSiteGroup
Description: There were errors during task validation.
End Error DTExec: The package execution returned DTSER_FAILURE (1).
Started: 11:25:28 AM Finished: 11:25:32 AM Elapsed: 4.297 seconds. The package execution failed. The step failed
Version of SSIS : 2013
Deployment mode : Package Deployment
Bit version : 32 bit
We have deployed using do not save sensitive
We have saved the excel file in .xlsx format.
one other observation : SSIS Job failing to ingest data from excel to stage table with row count 191246 , but successful in loading same file with row count 76510 .
Requesting you help.
Abhisek Mondal
Script Task - Sharepoint.Runtime.Dll Related Error - Throwing [File Copy Task] Error: Could not find file 'Microsoft.SharePoint.Client.Runtime.resources'.
Hi Friends
I am getting error when I run the SSIS package using Script Task like sharepoint dll support error.
Script Task - Sharepoint.Runtime.Dll Related Error - Throwing [File Copy Task] Error: Could not find file 'Microsoft.SharePoint.Client.Runtime.resources'.
Error: The script returned a failure result.
Task Download Conversion Files from share point to local C drive import_decoder_vs2012 folder failed
Please HELP at the earliest
OST to PST Conversion
I have tried a lot of tools for conversion but found OST to PST Converter one of the best, it is ads free , easy to use, fast in processing, please recommend me any other tool also that can help me in easy conversion from ost to pst conversion online.
coolutils dotcom slash OSTtoPSTConverter
Flat file in import loop fails read due to bad format, how best to handle without failing package?
Hello,
We have an SSIS 2012 package that imports flat files in a ForEach loop. Occasionally, the flat file connection fails because the text qualifier--a double-quote character--appears inside a text value on some rows. How do I handle this error so that the package doesn't fail and other files present can be imported?
I already have an OnError event handler for the entire package, but I don't want it to execute. Do I use the error precedence constraint (the red arrow) from the Flat File Source to...do something (I don't know what)? Or do I create an OnError event handler for the data flow task that calls the Email task?
How do I keep the flat file read failure from causing the entire package to fail?
Thanks,
Eric B.
Count of values from single row
Hello,
I need help with SSIS task. We get csv flat files from vendors. I am able to import the data but what is required in the count of values in column "rpm package" by computer name.
This is what I have in my data flow task
The desired output is below which I got my SQL Query
select top 10 A.[Computer Name],a.[Time of Last Scan Attempt], count(a.[RPM_custom ]) as noofrpm, STUFF((SELECT ', ' + b.[RPM_custom ] FROM BigFix.STG_InstalledRPMs b WHERE B.[Computer Name] = A.[Computer Name] FOR XML PATH('')), 1, 1, '') FROM BigFix.STG_InstalledRPMs A GROUP BY A.[Computer Name],a.[Time of Last Scan Attempt]
How do I achieve this? I was trying to use aggregate but it doesnt pass down all the columns.
cannot find the TargetServerVersion in properties of SSIS Project
- I want to change the targetServerVersion of SSIS project but i am not able to find the option.
- In the solution explorer, I Right clicked on the SSIS Project Node and clicked Properties and I selected Configuration Properties and I didn't find any option to change the Versions.
- can any one help on this?
SSIS failing for VARCHAR(16500) column from AS400 Table
SSIS failing for VARCHAR(16500 length) column from AS400 Table. How to handle please?
Best Regards
Raghavendra Narayana
pitfalls of a no cache lookup followed by an oldedb destination
Hi we run 2017 std. We have a no cache lookup on Table B for values coming into the buffer from (driven by) Table A with two paths coming out of the lookup, one for matches and another for no matches.
The no match path leads to an oledb destination where inserts occur on the lookup table TableB.
At https://jorgklein.com/2008/02/28/ssis-non-blocking-semi-blocking-and-fully-blocking-components/ I see that lookups are non blocking. And as I recall, if ssis gets multiple hits on a lookup, it throws away all but the first matching candidate from TableB.
We suspect that duplicates are coming into the buffer from Table A which is a different subject but do not believe they are sorted in any way on their way in.
For some reason the query you see in the code block is showing as the selected custom query in the advanced window of the lookup. Other than the nolock I don't see it being any different from what ssis would have generated in the first place.
My question is if either of the following scenarios could occur...
1. could a pair of dupes both get inserted in the oledb destination because by the time the second arrived, the lookup would not have yielded a match yet on the 1st lookup?
2. one of the latter went the match route because by the time it arrived and tried a lookup, the other had already been inserted?
select * from (select * from [dbo].[TableB] (NOLOCK)) [refTable] where [refTable].[Id] = ? and [refTable].[ID2] = ?
Protect Task From Stopping
Good morning, all -
A thought hit me this morning that there are certain tasks in my SSIS projects that I don't want the user to be able to stop while they are executing. There are some tasks that, if stopped, may critically damage data.
So, wondered I, is there a means to protect a task that, once it's running, it can't be stopped by the user? Perhaps the stop instruction gets queued such that it executes only once the task has finished what it's doing, something along those lines.
I don't have a big use for something like this, but there have been occasions when I have accidentally clicked theStop Debugging button in SSIS and I do have some tasks that could cause problems if they aren't allowed to finish.
Thanx in advance for any assistance!
Cannot setup lookup as column data type is float
Hi All,
I am using excel as a source and i am using a look up task, when i tried to look up the destination field i am getting the following error. I used data transformation task and still the same issue. please advice.
Cannot map the lookup column, 'Invoice ', because the column is set to a floating point data type.
Thanks
Where to host SSIS packages?
Creating Fixed length/Width file in SSIS 2016
One of my requirements is to load a data from a SQL table to a fixed length csv file.
I tried select ''Fixed width' in the flat file source connection manager. But I am not getting columns .
Then I tried to google on how to create a fixed length file. But it says i should select 'ragged right' - I am confused. Can someone please help me on this?
SSIS 2008 Script Task C#. Adding a read only password to an excel document
I have been going in circles trying add a read-only password to a excel doc.
I have tried both C# code and Powershell V2 Code.
SSIS 2008 seems to have some old C# so code that works in 2017 doesn't work in 2008 and I'm not a Guru of this stuff.
The powerscript looks like this: -
param([string]$FilePath, [string]$Password )
$xl = new-object -comobject excel.application << get the error here
$xl.Visible = $false
$xl.DisplayAlerts = $false
$wb = $xl.Workbooks.Open("$($FilePath)",0,$false)
$a = $wb.SaveAs("$($FilePath)", 51, [Type]::Missing, "$($Password)", $false, $false, 1, 2)
$a = $xl.Quit()
and works on my Windows 10 machine that has Office Installed.
However, trying run this on a Server 2008 R2 SP1 machine has proved to be difficult.
PS C:\> $xl = new-object -comobject excel.application
New-Object : Cannot load COM type excel.application.
At line:1 char:17
+ $xl = new-object <<<< -comobject excel.application
+ CategoryInfo : InvalidType: (:) [New-Object], PSArgumentException
+ FullyQualifiedErrorId : CannotLoadComObjectType,Microsoft.PowerShell.Commands.NewObjectCommand
I have tried to install
Microsoft Office 2010: Primary Interop Assemblies Redistributable
https://www.microsoft.com/en-au/download/details.aspx?id=3508
but am not sure if it actually installed anything as when I run the O2010pia.msi. It goes through so quickly and ask no questions.
I was expecting to find the Microsoft.Office.Interop.Excel.dll assembly installed but that didn't appear to happen.
In Powershell V2 I ran: -
Get-WMIObject Win32_ClassicCOMClassSetting | ? {$_.VersionIndependentProgId -like 'excel.application'}
But that didn't make any difference. I assume its because Microsoft.Office.Interop.Excel.dll may not be installed.
My gut tells me I have to get the Microsoft.Office.Interop.Excel.dll installed before anything works but that didn't appear to happen
I would prefer to use C# using the following: -
string ExcelFilePathAndName = Dts.Variables["User::FilePathDDExcelDoc"].Value.ToString() + "\\" + Dts.Variables["User::ExcelDocumentFileName"].Value.ToString();
if (!File.Exists(ExcelFilePathAndName))
return;
Excel.Application oexcel;
Excel.Workbook obook;
oexcel = new Excel.Application();
oexcel.DisplayAlerts = false;
obook = oexcel.Workbooks.Open(ExcelFilePathAndName, 0, false, 5, "", "", true, System.Reflection.Missing.Value, "\t", false, false, 0, true, 1, 0);
obook.SaveAs(ExcelFilePathAndName,WriteResPassword: password ); // this is wrong but not sure how to fix it
using System;
using System.Data;
using Microsoft.SqlServer.Dts.Runtime;
using System.Windows.Forms;
using System.IO;
using Excel = Microsoft.Office.Interop.Excel;
Any ideas?
Not able to connect DB2 using Microsoft OLE DB Provider
Hi,
When I try to create a OLE DB connection manager using Microsoft OLE DB Provider for DB2 I am getting below error.
I have followed below steps.
- I have placed an OLE DB source inside a Data flow task.
- I clicked New at right side to create new connection manager. then again clicked New button.
- Selected Microsoft Provider for DB2 in the Provider drop down.
- Entered server name and changed to SQL authentication and provided user id and Password. Checked Allow saving password checkbox.
- By default Initial catalog does not appear so I typed.
- After reading few blogs I have entered values in below 3 properties in the All tab. then gave test connection
Default Schema - Gave schema name
Package Collection - Gave same value as Default Schema
Network Address - Gave server name
Error message:
Provider screenshot:
Please let me know if I miss any of the properties.
SSIS connecting ole db driver Oracle 11g but not Oracle 12c
On my system, Oracle 11g and Oracle 12c are installed. When i try to create a connection using "Oracle provider for ole db" it is picking up 11g thru SSIS. How do I change to Oracle 12c? My source system changed to Oracle 12c so am not able to
connect using "Oracle provider for ole db" . It's throwing an error: Ora-28040 no matching authentication protocol
I'm able to connect oracle 12c using sql developer but not using SSIS "Oracle provider for ole db"
BIDS Package not running or showing errors when scheduled as SQL Server job
Hi ,
In my BIDS package i have the source as excel and destination is a sql server table and i have no issues running it and the data gets loaded. I scheduled the job using SQL Server Agent. In the General section i used the owner as "sa". When i run the sql server agent job manually ( by right clicking and start job) the wheel keeps spinning for minutes together and nothing happens. I had to STOP the job. The BIDS package takes 5 seconds to load the data. Where should i start looking as it doesn't error out either.
Thanks
Trying to replace NULL string to null/blank
HI
Im trying to write an expression in derived column of SSIS as if the string is a word called NULL then replace it with blank or null
Microsoft Visual Studio 2015 Solution Opens but Package doesn't Execute
strPathname = """nas00275pn\cmg_finance\Membership Reporting\Ancillary Reporting\Package Savings\Projects\CategorizationFinal\CategorizationFinal.sln""" (Note there are two backslashes before nas00275pn to denote the folder where the solution is located)
varRunVS = Shell(strExecutable & " /runexit " & strPathname) VS opens the solution but the package does not execute. This coding works for other solutions. What might be wrong that this package doesn't execute? In fact, after a few seconds VS just closes automatically.
Trying to replace NULL string to null/blank
Source is a txt file which has a column called POSITIVE which has values TRUE , FALSE , NULL(english word proper word ) in it
Target is a table which has a column called POSITIVE which is BIT datatype
so now im again facing issues in syntax of how to write replace those word NULL with blank and also handle the conversion