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

SQL Agent fails when running Access .mdb import package that works fine in BIDS and SSIS Catalog

$
0
0

My SSIS Access (MDB) import job works fine on my development machine and server when I execute the package from my DB Catalog. The 2012 SQL Server x64 is local on my Windows 7 Professional x64.  I thought it was because it was on my dev machine that has VS 2012 and Office installed, so I installed a fresh copy of SQL Server 2012 x64 on a new 2008 R2 Server. However, the SQL Agent job fails when running the same job on the server as well! I have both 32 and 64 bit versions of DTExec on the Server and can see the 32 bit version started in the task manager.

The SSIS package works when I execute it manually from SSIS Catalog in SSMS both on the Dev and Server boxes. Neither will execute successfully when running as a SQL Agent job. Since it works in SSIS package executed manually, I don’t think it is an ACES issue. I also check the box to run the package with the 32-bit runtime under Advanced Configuration. I get 2 errors:

1. SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager “MyConnectionMgr” failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed.

2. SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available. Source: “Microsoft Access Database Engine” Hresult: 0x80004005 Description: “The Microsoft Access database engine cannot open or write to the file ”. It is already opened exclusively by another user, or you need permission to view and write its data.”.

I am running the job under my account (part of the local Administrator's group) have also added my name to the C:\Windows\ServiceProfiles folder (suggested when running job under a proxy account).  I read another article about creating a proxy account and am wondering if that is what I need to do.  I am using windows authentication to login to the SQL Server and my windows account belongs to the sysadmin server role.

Thanks for any ideas!


Calling Remote Batch File Using 'Execute Process Task'

$
0
0

I have a remote batch file on machine B that I need to execute using 'Execute process task' control from a package on machine A.

How can i achieve this...

Execute a Conditional Split Validation????????

$
0
0

My task is trying to get the Null Values out of my source table to load the good records into my destination.  My conditional split does not work with the functions below.   Please take at my setup for changes I can make to get it working.

ssis issue - load recent added 5 flat files

$
0
0

HI

i have one query like i have 5 flat files in one folder today i loaded into sql server table,tomorrow again added 5 flat files in same folder.i want to load recent added 5 flat files,

can any one give me answer?


SQL Server - OPENROWSET - Error Cannot bulk load because the file XXX could not be opened. Operating system error code 80(File exists)

$
0
0

I'm running about 63 JOBs(SQL Server Agent) on Windows Server 2008 R2 64bit, SQL server 2008 Enterprise Edition

The overview flow is:

A JOB -> call [Parent.vbs] -> call n [Child.vbs].

At [Child.vbs], I will:
+ Delete ERRORFILE file first. (Below statement is [C:\SCMUS\st2_b\Log\BSUS0005BCP.log] file)
+ Then, call a Stored to import data from *.csv into a specific table by using [INSERT … SELECT ... FROM OPENROWSET] as below:

INSERTINTO"TEMP_TABLE"WITH(TABLOCK)(
        ACQUISITION_PLANT_CD,   PRODUCTION_CD,   REVISION,   PROCESS_UPD_DATE,   CP_TYPE,   C_CAP,   PRODUCTION_GRP,   BPC,   SIZE_DESCRIPTION,   CRT_DTTM,   CRT_PRGRM_ID,   CRT_USR_ID,   UPDT_CNT,   UPDT_DTTM,   UPDT_PRGRM_ID,   UPDT_USR_ID)SELECT'inFACCD',   TMP.PRODUCTION_CD,   TMP.REVISION,   TMP.PROCESS_UPD_DATE,   TMP.CP_TYPE,   TMP.C_CAP,   TMP.PRODUCTION_GRP,   TMP.BPC,   TMP.SIZE_DESCRIPTION,CURRENT_TIMESTAMP,'inPGID',CURRENT_USER,1,CURRENT_TIMESTAMP,'inPGID',CURRENT_USERFROM(SELECT
             PRODUCTION_CD, REVISION, PROCESS_UPD_DATE, CP_TYPE, C_CAP, PRODUCTION_GRP, BPC, SIZE_DESCRIPTION, ROW_NUMBER()OVER(PARTITIONBY PRODUCTION_CD, REVISIONORDERBY PRODUCTION_CD, REVISION)AS CNTFROMOPENROWSET(BULK'C:\SCMUS\st2_b\DATA\IN\SAA64DT01_NS.txt', FORMATFILE ='C:\SCMUS\st2_b\Batch\USPSM0003\BSUS0005.xml', ERRORFILE ='C:\SCMUS\st2_b\Log\BSUS0005BCP.log', FIRSTROW =1, MAXERRORS =9999999)AS TGR)AS TMPWHERE TMP.CNT =1;

For 63 JOBs, there are total 30 BCP Import statements like above to insert into about 20 tables. When I start 63 JOBs at the same time, some BCP Import statements (around 3 statements) cannot execute and return the error message like:

         Cannot bulk load because the file "C:\SCMUS\st2_b\LOG\BSUS0005BCP.log" could not be opened. Operating system error code 80(File exists).

Anyone know what might be going on? What is the main reason why I got this error? Please help me

Anh Hoang

SQL Server 2012 SSIS package report error: Local report processing - The definition of the report '' is invalid - The given path's format is not supported

$
0
0
My new SQL 2012 server install is giving me this error when I try to run a Standard Report on the SSIS packages:

Title:  Microsoft SQL Server Management Studio    

An error occurred during local report processing (Microsoft.ReportViewer.WinForms)

Additional Information:

The definition of the report '' is invalid

The given path's format is not supported

I can run the report on the Server SSIS catalog package from my computer fine.  

I wonder if the server needs older versions of the .Net Framework for the reports to work.  It only has versions:

 4 Multi-Targeting Pack
 4.5.1

Thanks for any help!

any way to re-try to connect when connection fails

$
0
0

Hi

I developed SSIS 2014 packages importing data from MySQL to MS SQL 2014. 

It is scheduled to run every 3 hours and sometimes it fails to connect to MYSQL (no problem with MS SQL) and it is always ok in the next run. As it is always ok in the next run, I think there is nothing wrong with the package itself. I believe it is a temporary network issue.

To overcome it, I want the package to re-try to connect in every 30 seconds (or 1 min) for the next 5 times.

Is there any way to do this in SSIS 2014? Below is the screenshot of .Net MYSQL data connector I am using. I thought there might be something I can do in there but can't figure it out. I don't think there is a option to do it.

Any suggestions?






Multiple Select statements in EXECUTE SQL TASK in SSIS

$
0
0

Can we write multiple select statements in execute sql task(SSIS).

If possible how to assign them to variables in result statement


Calling a Console Application from SSIS (using ProcessTask)

$
0
0

Hi,

I have an SSIS Package which calls a Console Application(which is used as a wrapper to call a Web Service).

If there is an error calling the Web Service e.g. creating or updating a record failed, I want to return the error details to SSIS.

How can I return the error details from the Console Application to SSIS and read these in SSIS so I can log the details?

Thanks,
C.


CG

Execute Process Task error-Unzip Files

$
0
0

Dear All,

   I have a SSIS package, that downloads a Zip file from FTP Server and extract and load that information in Sql Server Table. In my case every time I have only one file in FTP Server. There is no possible to get multiple files from FTP Server.

While at the time of executing SSIS package getting error at Execute Process Task(Unzip Files) i.e 

Error Description :In Executing "F:\7z\7z.exe" " x F:\ZipFiles\Sales_010815.zip -oF:\ZipFiles\" at "", The process exit code was "2" while the expected was "0".

This error message getting while unzip my file. 

Can some one help on this issue.

Regards,

Praveen C.


Regards, Praveen

Microsoft.SqlServer.Management.IntegrationServices namespace

$
0
0

After several tries, I am unable to find the Microsoft.SqlServer.Management.IntegrationServices.dll or the namespace stated in the title.

I am trying to write a C# application that will execute a SSIS 2012 package that I deployed to the Integration Services Catalog.

I appreciate any assistance you can lend me in this matter.

Send Email using Execute SQL Task??????

$
0
0

I need to send the bad records in the data flow.  I am attempting to do this using Execute SQL Tasks.  Please give me steps I need to accomplish this.  I have not set any variables up yet, assuming I need too.

Cannot recognise dtsconfig file type

$
0
0

All,

I am creating an XML config file for my package. I am able to create it. But when i go to the location where i have created the file, i get it as an unknown file type. I dont get the icon like i have for the packages.

And when i try to open, i am unable to open it properly. Not sure what the problem is. Can anybody help?

Thanks.


package connection error

$
0
0

I created a project . the 4 packages uses same project connection to the ole db, and each has a package connection to the excel file it is supposed to import from c drive. the packages works well on the ssis platform and imports it into the engine, but when used in sql server agent service, it does not work and gives the error below. 


Executed as user: USER-PC\SYSTEM. 
Microsoft (R) SQL Server Execute Package Utility  
Version 11.0.2100.60 for 32-bit  Copyright (C) Microsoft Corporation. All rights reserved.  
  Started:  11:50:16  Error: 2015-01-08 11:50:16.29     Code: 0xC001000E    
 Source: Package      Description: The connection "{D16EBEF0-87BB-4062-8512-0844538E99F5}" is not found.
 This error is thrown by Connections collection when the specific connection element is not found. 
 End Error  Error: 2015-01-08 11:50:16.34     Code: 0xC001000E     Source: Package     
 Description: The connection "{D16EBEF0-87BB-4062-8512-0844538E99F5}" is not found. 
This error is thrown by Connections collection when the specific connection element is not found. 
 End Error  Error: 2015-01-08 11:50:16.34     Code: 0xC004800B     Source: Data Flow Task SSIS.Pipeline  
   Description: Cannot find the connection manager with ID "{D16EBEF0-87BB-4062-8512-0844538E99F5}" 
in the connection manager collection due to error code 0xC0010009. That connection manager is needed by
 "OLE DB Destination.Connections[OleDbConnection]" 
in the connection manager collection of "OLE DB Destination". Verify that a connection manager
 in the connection manager collection, Connections, has been created with that ID.
  End Error  Error: 2015-01-08 11:50:16.34     Code: 0xC0047017     
Source: Data Flow Task SSIS.Pipeline     
Description: OLE DB Destination failed validation and returned error code 0xC004800B. 
 End Error  Error: 2015-01-08 11:50:16.34     Code: 0xC004700C    
 Source: Data Flow Task SSIS.Pipeline    
 Description: One or more component failed validation.  
End Error  Error: 2015-01-08 11:50:16.34     Code: 0xC0024107     Source: Data Flow Task     
 Description: There were errors during task validation.  
End Error  DTExec: The package validation returned DTSER_FAILURE (1)

i will appreciate your contributions. the project runtime is set to false as well. or do i have to do that for individual package


Redistributing Microsoft.SqlServer.Management.IntegrationServices.dll.

$
0
0

Hello Everyone,

Can this component be redistributed? If so what is the EULA?

We intend to create integration services catalog, folders, deploy SSIS packages on the fly using the classes implemented in this component. If this component cannot be redistributed then what could be our alternative?

Appreciate your help.

Thanks.


The AcquireConnection method call to the connection manager myDataBase_ODBC failed with error code 0xC0014009.

$
0
0

As a training exercise, I am trying to use ODBC to perform a simple copy of a single table on a SQL 2012 database. I know I could use another connection method but as I say it is a training exercise.

It is a very simple copy from one table to another with one ODBC source and destination.

The error I'm getting is:

SSIS package "c:\users\brendan\documents\visual studio 2010\projects\Integration Services Project1\Integration Services Project1\Package.dtsx" starting.
Information: 0x4004300A at Data Flow Task, SSIS.Pipeline: Validation phase is beginning.
Error: 0xC0014020 at Package, Connection manager "myDataBase_ODBC": An ODBC error -1 has occurred.
Error: 0xC0014009 at Package, Connection manager "myDataBase_ODBC": There was an error trying to establish an Open Database Connectivity (ODBC) connection with the database server.
Error: 0x20F at Data Flow Task, ODBC Destination [2]: The AcquireConnection method call to the connection manager myDataBase_ODBC failed with error code 0xC0014009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.
Error: 0xC0047017 at Data Flow Task, SSIS.Pipeline: ODBC Destination failed validation and returned error code 0x80004005.
Error: 0xC004700C at Data Flow Task, SSIS.Pipeline: One or more component failed validation.
Error: 0xC0024107 at Data Flow Task: There were errors during task validation.
SSIS package "c:\users\brendan\documents\visual studio 2010\projects\Integration Services Project1\Integration Services Project1\Package.dtsx" finished: Failure.


I tested the connection within the ODBC administrator successfully. With one test, I use the same connection manager for the source and destination, the source works, but the destination fails.

I've tried it on two different servers, one a brand new clean install and one a trusted server that has been in use for ages with no problems. Each time the source and destination are on the same servers.

I've tried copying from one database to another.

I've tried copying within the same database.

The ODBC connection is 32 bits but everything else is 64bit i.e. Windows Server 2012 and SQL Server 2012. The development environment is Visual Studio 2010 which installs with SQL Server.

Conditional SSIS Package

$
0
0

Hello All,

I am new to SSIS.  I've created a simple SSIS package before that's grabs data from one server and populate a table on another server.  This is a schedule job.  Pretty simple.

The issue I have, which I only know part of what to do is this......I need to create a conditional SSIS package by Department by Month based on a date range to sum the amount for each month.  I've been working on this for quite some time.  I really need help.

For example....ACCOUNTING

Sum(CASE WHEN DATE1 >= '2014-06-01' AND DATE1 < '2014-07-01' THEN amount ELSE 0 END) As 'JUNE 2014'

Thank You,

Artnette

SSIS - Sharepoint excel as datasource

$
0
0

Hi !

Is there anyway to have excel located in sharepoint server to be used as datasource in SSIS?


Regards,

Flat File with unequal spacing as delimiter

$
0
0

I am trying to import multiple flat files with unequal spacing as delimiter in sql server using SSIS 2012, however when I import the file, all the data in the file is imported into only one column. None of the predefined delimiters in SSIS works with the way the flat file was configured. I read that I can use the script component in SSIS 2012 to create the additional columns and somehow manipulate the file using the spacing to assign a new delimiter, such as a common, but I can't find any resources on it. Anyone have any experience/knowledge of this situation can provide me with an example or some resources that can help me to solve this situation?

Example of file format:

26   SM FRIES         0      1     0       0.00        0.0
30   PEPSI               0    22     0       0.00        0.0


Can't Get Desired Results from Lookup Transformation

$
0
0

In my Dataflow, I have an ole db source table where the key is named 'CatalogNumber'.  In my lookup transformation, I am using Full cache, OLE DB connection manager, and 'Redirect rows to no match output'. With that configuration, I expect that if the destination table has no data in it, that a match on CatalogNumber will not be made, the data will flow through the 'Lookup No Match Output' path, and populate the destination table.

In the lookup transformation, I have a join between 'Available Input Columns' and 'Available Lookup Columns' on 'CatelogNumber'. In 'Available Lookup Columns', the box by CatelogNumber is checked.

I also have 'Lookup Match Output' configured to the same table. When I execute the dataflow, the data always takes the 'Lookup MatchOutput route whether or not the destination table is empty, and thus creates duplicate records.

What am I doing wrong?

Thank you for your help.


Viewing all 24688 articles
Browse latest View live


Latest Images

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