Quantcast
Channel: SQL Server Integration Services forum
Viewing all 24688 articles
Browse latest View live

Error: To run a ssis package outside of sql server data tools you must install standard edition of integration services or higher

$
0
0

Hi,

If I run SSIS Execute sql task through DTEXEC package then its executing fine but if I run script task in package through DTEXEC - getting error as
Error: To run a ssis package outside of sql server data tools you must install standard edition of integration services or higher.

I am using:

SQL Server 2016 Developer edition , Visual studio Shell (SSDT BI) 2015 , SQL Server Execute Package Utility
Version 13.0.4466.4 for 32-bit, windows server 2016, SQL Server 2016 SP1.

How to fix this ?



Mailing multiple attachments problem

$
0
0

I created SSIS package that runs several reports and exports the files (Excel and PDFs) to a shared folder. Then it attaches these files using the Mail task and emails them to an email distribution group. 

This was working fine until I made some changes in the source database (additions and changes to tables, views, and stored procedures - which add new functionality).  Now 2 of the 6 files are missing in the email that is sent out (the missing files happen to be PDF files, the 4 files in the email are Excel files.). But all the files (all 6 of them) are in the shared folder.  Only one of the changes, as far as I can tell, affected one of the reports and I changed that one back.

The package, that runs the reports, creates the PDF files first.  All the reports are run in a sequence and then the mail task runs in the order below.

Create shared folder -> Run Report1 -> Run Report2 -> Run Report3 -> Run Report4 -> Run Report5 -> Run Report6 -> Run Mail task

I use an expression in the Mail task to populate the Attachment field.  I have 6 variables containing the report names, 1 for the path, and one for the concatenated report names and path.

No changes were made to the reports or the package.  I am puzzled why the PDF files are no longer included in the email.

Any ideas?


Fred Schmid

Not finding Flat File Connection Manager.

$
0
0

I have created a SSIS package the copies records from a SQL Server table to an Oracle table.

I first copy the SQL Server table records to a temp table.  Then I copy the temp table records to the Oracle table.  I check for errors and dump them to a Flat File destination.  I renamed the Flat File Connection Manager to the name of the file.

This was working fine until someone changed the permissions on the location of the flat file.

So I corrected the problem of the permissions but now I get this error:

Error5Error loading ScrapERP1V1 (1).dtsx: The connection "Flat File Connection Manager" is not found. This error is thrown by Connections collection when the specific connection element is not found. XXXXXXXXXXXXXXXXXX (default location of flat file, not the location found in the Package Configuration)11

When I edit the flat file connection manager I do not get any errors.

Any ideas what might be causing this error or where to look?

thanks, fred


Fred Schmid

Access is denied connecting to local SSIS instance

$
0
0

I have Sysdba permission on the SQL 2014 instance. there is also installed SSIS 2014 instance on the server. when connecting to this SSIS instance in SSMS(I am not local admin), I get "Connecting to the Integration Services service on the computer "ServerName" failed with the following error: "Access is denied.""

Will any database permissions assignation allow connection without local admin permissions on the box? or DCOM permissions as per https://docs.microsoft.com/en-us/sql/integration-services/service/integration-services-service-ssis-service?view=sql-server-2017#eliminating-the-access-is-denied-error is the only way?

Let's say first for local connection to SSIS(RDP to the server)

Then generalizing for remote connection to the server.

Thank you,

SSIS catalog to remote SSIS instance

$
0
0

I have an ETL server which has only SSIS 2014 installed on it. SQL 2014 database server is installed on another server. I would like to run SSIS only on the ETL server and pull data from remote servers to the SQL server, to distribute the load mostly to the ETL server. I like the functionality of the SSIS catalog though, is there any way of creating an SSIS catalog on the db server but pointing to the ETL server, I am trying not to install a db instance on the ETL.

I tried in a dev env and the configuration does not look like allowing this, but pointing to the local

Thank you,

SSIS to MS SQL Server (Passing 1 row at a time)

$
0
0

Hey fellow SSIS mates,

I am having trouble in passing 1 row of data from SSIS to MS SQL Server. The data type which was imported to SSIS is of csv format and I was successful in passing through the whole data set at once but not been able to find a solution on passing 1 row at a time. Your help will be much appreciated.

Thanks!

SSIS to MS SQL Server (Passing 1 row at a time)

$
0
0

Hey fellow SSIS mates,

I am having trouble in passing 1 row of data from SSIS to MS SQL Server. The data type which was imported to SSIS is of csv format and I was successful in passing through the whole data set at once but not been able to find a solution on passing 1 row at a time. Your help will be much appreciated.

Thanks!

A package run couple months suddenly failed

$
0
0

I have a package upload files to sftp server. The package calls 38 subpackages. The package was scheduled running in sql server, worked fine for couple months but failed for last two days. I try the following:

1. I login to the server, open the package ran it and found out which subpackage failed.

2. Open  this first failed subpackage, check all the coding, setting is fine, ran it and failed. Then I close the Visual studio, ran it and failed. Then I restart my computer, it works fine.

3. I went back to run the package again, after it completed 18 subpackages it failed again.

4. Open  the this second failed subpackage, check all the coding, setting is fine, ran it and failed. Then I restart my computer, it still doesn’t work.

All the failed error message in step 2 and 4 are:  "WinSCP.SessionRemoteException: Copying fles to remote side failed. Error code 4". But I don't think this message has anything to do with fail. I may be wrong.

I don’t know how to fix it or where to check. any suggestion is appreciated.

Thank you.



Which variables return warning number and description in OnWarning Event Handler?

$
0
0

Hi All,

When there's an execution error in our SSIS 2012 packages, we use the OnError event handler to run a stored procedure that logs the error using the variables System::ErrorCode and System::ErrorDescription to a user-defined table.  Now we want to also log SSIS warnings to that same table.  Which variables do I use in the OnWarning event handler?  I don't see any system variables with "warning" in the name.

We don't want to use SSIS built-in logging because those records wouldn't get written to our user-defined table.

Thanks,
Eric B.


SSDT 2015 Partial Cache Lookup transformation taking too long to execute

$
0
0

Hi All,

While doing partial cache in Look up transformation it takes too long to complete. To find corresponding keys in dimension table I am using look up transformation. Since source data set has millions of records and reference table has also millions of records, Full cache takes all the memory in the server and partial cache takes too long to execute . Can any body suggest a way to fix this issue.

Thanks

Typcial Fastest Connection Manager to use through Drivers/Attunity wrapper for Data Export

$
0
0
Is it OLEDB, ADO.NET or some other method of moving a flat file and bulk load?

SSIS Execute SQL Task using ADO.NET connection type to a MySQL Database

$
0
0

In SSIS, I am using an Execute SQL Task using an ADO.NET connection to a MySQL Database.

My SQLStatement is:

Select Table_Name from INFORMATION_SCHEMA.TABLES where Table_Name like 'report_interval_2018_01_03_%';

But I am getting this error. Is there a problem with my syntax?

Error: 0xC002F210 at Query Tables in Source that Look Like "report_interval_", Execute SQL Task: Executing the query "Select Table_Name from INFORMATION_SCHEMA.TABLES w..." failed with the following error: "Failed to create an IDataAdapter object. This provider may not be fully supported with the Execute SQL Task. Error message 'Object reference not set to an instance of an object.'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

Q: constructing xsl file from xml file of DrugBank

VS2013 and SSIS packages running WRONG package

$
0
0

Hi,

I have an integration project with many SSIS packages.   I open one package, and then click "Start" to run that one package, then visual studio decides to pick another package in the project at random and run that one instead.  I have my machine and a server with VS2013 and they both do it.  Even when I right-click the package and choose "execute package", there is a 50% chance it will still run something else.  

Anyone else encountering this or know how to stop it from doing this?

Thanks!

Script to create dynamic Steps in SSIS

$
0
0

Could you please help me with some information to understand if my requirement is possible

I have close to 1000+ source tables to ETL using SSIS.

Most of the tables are of 1:1 mapping. So is there a way to create some script which checks the source column names and target column names and create following steps . I can pass Source Table Name and Target Table Name each time

1) Extract from source

2) Transform -- convert date columns in format YYYYMMDD to DDMMYYYY

3) Apply TRIM on CHAR columns

4) Load to Staging table

Basically i am checking if I can reduce development effort.

Thanks in Advance



SSIS does not recognize excel spreadsheet "sheets"

$
0
0

I created an SSIS package and my requirement is to be able to import an excel file into a table. When I try to create an excel source and browse to the spreadsheet, it does not recognize the sheet in the file and gives below error. Excel file is generated programmatically using an HttpHandler class. See below:

What could be causing this issue? Here's the debugging settings page of the SSIS package.

Calling ssrs report in SSIS package...

$
0
0

H,

I am new to SSIS.

I have a report in reporting services. I wanted to call the that ssrs report in ssis packages. so that if the report fails then it will notify users by email.

What task do i need to include to call the report and then do email subscription in ssis.

Any help is appreciated,

Thanks,Punia.

SSIS source on linked server

$
0
0

Hi, 

I have linked server where has access only technical user. When I create OLEDB source in SSIS and write openquery in it, I cannot get list of columns from the linked server. That is reasonable because my user does not have access to linked server. I tried RUNAS command to run Visual Studio and SSIS under technical user and then create source, but again I cannot get list of columns. How can I create such a package when access is granted to technical user only?

Thanks, 

ALdo

Failed to load XML from the package file "" due to error 0xC00CE556 "Invalid at the top level of the document.Line.

$
0
0
Using Installation wizard to deploy SSIS packages from DEV server to QA server package store cause this error;
Failed to load XML from the package file "" due to error 0xC00CE556 "Invalid at the top level of the document. Line 773, Column 93". This happens when loading a package and the file cannot be opened or loaded correctly into XML document.  This can be the result of either providing an incorrect file name to the LoadPackage method or the XML file specified having an incorrect format.  Please who have the idea of how this issue can be resolved?
BI Developer

How to remove the null columns.

$
0
0

Hi,

I have created one store proc to retrieve details  from one table with multiple where conditions. But now the problem is I am having the null values, I want to remove it, Kindly help me.

This is what it looks now:

Outlet   TodayFBREv   CMMTDRev   CMYTDRev

1            NULL            NULL            200

1            NULL            100              NULL

1            100              NULL            NULL

2            NULL            NULL            300

2            NULL            200              NULL

2            50                NULL            NULL       

What i want it to look:    

Outlet   TodayFBREv   CMMTDRev   CMYTDRev

1            100              100              200

2            50                200              300     

This is my code Store proc :

Declare @FBTable TABLE (Outlet nvarchar(max), TodayFBRev money, CMMTDFBRev money, CMYTDFBRev money)

SET NOCOUNT ON;

INSERT INTO @FBTable
 

Select Outlet,Sum(case when Revenue = 'Beverage' then TotalAmount else 0 end) + SUM(case when Revenue = 'Food' then TotalAmount else 0 end) as TodayFBRev, NULL, NULL
From FBRevenueByOutlet
Where Date = @date
Group BY Outlet

UNION

Select Outlet, NULL, Sum(case when Revenue = 'Beverage' then TotalAmount else 0 end) + SUM(case when Revenue = 'Food' then TotalAmount else 0 end) as CMMTDFBRev, NULL
From FBRevenueByOutlet
Where (Date BETWEEN @CurStartMonth AND @date)
Group BY Outlet

UNION

Select Outlet, NULL, NULL, Sum(case when Revenue = 'Beverage' then TotalAmount else 0 end) + SUM(case when Revenue = 'Food' then TotalAmount else 0 end) as CMYTDFBRev
From FBRevenueByOutlet
Where (Date BETWEEN @CurStartYear AND @date)
Group BY Outlet

Select * From @FBTable Where TodayFBRev IS NOT NULL
Union
Select * From @FBTable Where CMMTDFBRev IS NOT NULL
Union
Select * From @FBTable Where CMYTDFBRev IS NOT NULL

Viewing all 24688 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>