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

Integration Services Will Not Run

$
0
0

Win 2008 Enterprise sp2 64 bit. SQL 2008 Std 64 bit. I cannot get a BI project to load or build new. First I had Visual Studio 2008 Team System Database. Would not load. Then I installed SQL 2008 sp1. (currently 10.0.2531.0 SP1) No change. Uninstalled VS, rebooted & installed VS 2008 Profesional. No change.

Error is: Could not load file or assembly 'Microsoft.DataTransformationServices.Wizard' or one of its dependencies. The system cannot find the file specified.

Just to make the day extra-special, I find out my new box with VS2010 does not even support SSIS/BI anymore. Looks like back to Windows XPagain!!@#$!


Error running Excel file load as a server job

$
0
0

Hi,

I'm running a package to loop over and load some excel files and it runs perfectly in Visual Studio, however on running as a job, I get the error "Microsoft Office Access Database Engine Hresult 0x80004005 External Table is not in the expected format."

Would be grateful on any ideas as how to resolve ?

thanks

Scott

System.IndexOutOfRangeException: Index was outside the bounds of the array.

$
0
0

Hello,

I have a package that decrypts data and it uses C# in Script Transformation Editor. It has been running successfully in the past few days. However, it started to fail with the following error message:

Error: 0xC0047062 at DecryptTables, Decryption MyTableName [501]: System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.HandleUserException(Exception e)
   at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.ProcessInput(Int32 inputID, PipelineBuffer buffer)
   at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostProcessInput(IDTSManagedComponentWrapper100 wrapper, Int32 inputID, IDTSBuffer100 pDTSBuffer, IntPtr bufferWirePacket)
Error: 0xC0047022 at Table 93-100, SSIS.Pipeline: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "Decryption VerificationLog" (501) failed with error code 0x80131508 while processing input "Input 0" (513). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.  There may be error messages posted before this with more information about the failure.
Information: 0x40043008 at Table 93-100, SSIS.Pipeline: Post Execute phase is beginning.

I looked into this post but I am not really sure where I need to make the correction:

https://social.msdn.microsoft.com/Forums/sqlserver/en-US/8d9720af-b4a0-48de-8225-dbe5065f0ecf/systemindexoutofrangeexception-index-was-outside-the-bounds-of-the-array?forum=sqlintegrationservices

And here is part of the script:

 public override void Input0_ProcessInputRow(Input0Buffer Row)
    {
        try
        {
            //for Comments column
            int length = (Int32)Row.Comments.Length;
            if (length == 0)
            {
                Row.DecryptComments = null;
            }
            else
            {
                byte[] bytes = Row.Comments.GetBlobData(0, length);
                String keyString = System.Text.Encoding.ASCII.GetString(bytes);
                if (keyString.Contains("\\r\\n"))
                {
                    keyString = keyString.Replace("\\r", "\r");
                    keyString = keyString.Replace("\\n", "\n");
                }
                else
                {
                    keyString = keyString.Replace("\\n", "\r\n");
                }


                Stream stream = new MemoryStream(System.Text.Encoding.ASCII.GetBytes(keyString));
                Row.DecryptComments = getDecryptedData(stream, keyString);
            }

Thanks,


IN~

Getting error using Import Wizard to insert data from excel, csv, or txt into an existing DB

$
0
0

I know there's a lot online about this and I've looked at a lot of it, but I'm not sure what options to choose and I dont know why I get this error. Furthermore, we have a heavy "figure it out on your own", "respect other's time" culture here so I don't want to ask. Now I've wasted a day.

Part of what I did and what happened:

Refreshing SQL Server DB:

I: Truncate or Delete DB:

II: Importing from xls to SQL Server DB:

  A: Right click on Database (not server or table).

  B: Select: Tasks > Import Data

  C: Choose source.  Flat file is probably best because the software for that is standard. I’m not sure if CSV or TXT is better.Which is best?

               

D. Choose destination:

I’m not sure which is best. Which is best? My guess is one of the first two, but I tried all four and nothing worked.

I though this information would help me select a destination, but it did not.

Error:

==================

=================

Cannot get string literals from the database connection "Provider=SSISOLEDB.4;Persist Security Info=False;User ID=mohammadhas;Data Source=\\PROVIDENCE\Tableau_datasources\ELM\Health Services;Location=\\PROVIDENCE\Tableau_datasources\ELM\Health Services". (SQL Server Import and Export Wizard)

===================================

Object reference not set to an instance of an object. (DTSWizard)

------------------------------

Program Location:

   at Microsoft.SqlServer.Dts.DtsWizard.DataSourceInfo.LoadLiterals(OleDbConnection myConnection)

   at Microsoft.SqlServer.Dts.DtsWizard.DataSourceInfo.CacheDataSourceInfo(IDbConnection myConnection)



Today, I have access to SQL Server 2012 and SSMS 11.  When I search for and open SSIS I get Visual Studio, is that right?

script to add to AD group

$
0
0

Hi,

Please check the post below and help me with the issue.

https://social.msdn.microsoft.com/Forums/en-US/9460325a-a3cf-446e-97f6-f68677bad8a0/add-user-to-ad-group?forum=csharpgeneral

Deploy pkg to SSIS Catalog. Package Cannot access network drive to write to file. "Cannot open datafile"

$
0
0

Is there a solution to allowing an SSIS package hosted in SQL Server Integration Services to write to a file on a network drive? My understanding is that this is a server hop issue - it only occurs when computer 1 is calling to server 2 (the SQL Server) which is calling to server 3 (the network drive), using Integrated Security.

Here is a good dialog of the issue, dating back to October 2012! I believe it is stating that Kerberos delegation is not supported by SSIS and would not be a resolution to not being able to write to the network.

https://feedback.azure.com/forums/908035-sql-server/suggestions/32909818-with-the-new-ability-to-execute-ssis-packages-from

The last comment made was in 2014 and I don't fully understand the "answer".

Before I ask our IT Department to allow Kerberos Delegation on the server hosting SQL Server, I would like to know if it resolves this issue.

I would be fine with running the package as another user, but that does not appear to be possible.

In short, I want a user to click a button on a program that runs a stored procedure. That stored procedure should do some processing and then write the contents of a table out to a network drive, into a file. The user has access to that network drive. 

I would typically have my program do the work, but this code is already in place. I am simply trying to replace xp_cmdshell "bcp.."

Restore Production Backup Over Testing Environment

$
0
0

Hello, 

I'm still having issues when using SSIS to do the restore of production backup to tessting environment. 

Please see the last question I asked in this thread: https://social.msdn.microsoft.com/Forums/sqlserver/en-US/7bd8cecf-3926-4a43-a9a3-fe48ebcfe993/how-do-i-do-a-simple-backup-and-restore-in-ssis?forum=sqlintegrationservices

Thanks in advance!

SSIS fails when attempting to execute AZcopy via execute task using SQL Agent Job - error "The process exit code was "8" while the expected was "0""

$
0
0

The Package runs perfectly when run on the remote desktop. 

Only fails when run via the SQL Agent Job, and returns the error - The process exit code was "8" while the expected was "0"

Does Exit code "8" refer to anything in particular? (Or is this a generic message.)

Any advice would be appreciated. 


SSIS vs Linked Server Vs Replication For Data Warehousing

$
0
0

Dear All,

Please help me.

SSIS vs Linked Server Vs Replication For Data Warehousing.Which option is best? I need best performance...

Load excel file - SSIS

$
0
0

Good Morning

I have an Excel file to load but it is divided into three groups, header, movements information and communications information.

I want to start loading the information of movements and information of communications but it puts here the question of beginning and end of each part since the volume of the data varies in files or is number of lines are not static, How can I do that?

Any help thank you

"COULD NOT FIND A PART OF PATH" WHILE EXECUTING PACKAGE THROUGH STORED PROCEDURE

$
0
0

Hello Guys,

I have a package which gets a file from a shared folder and copies the data from that file to an SQL Table. It is totally working fine and the data is getting added to SQL Table when I run the project. However, when I deploy the package on file system and run the package through stored procedure using SQL Server Management Studio (Windows Authentication), I get following error:

Description: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.DirectoryNotFoundException: Could not find a part of the path 'Z:\Test\Abz\Mapped'.

Please help...!

I really need the solution urgently ...........! :(

Thanks in advance,

VladAbz.

Transaction not working!

$
0
0

Hello,

I am trying to implement begin-commit transaction in an ssis package so that if the package fails, the transaction rolls back. However, I stumbled upon this link (https://social.msdn.microsoft.com/Forums/sqlserver/en-US/c2216cd5-fcbb-4d07-b360-593ff44c3cf3/data-flow-tasks-deadlocking-each-other?forum=sqlintegrationservices) but after implementing it on my package, the package runs but no data gets inserted. What I am doing it:

  1. Get max date from stage
  2. Get max date from source
  3. Sequence Container: runs multiple Data Flow tasks, which each have a couple of tables that replicate date from source to (DF1, DF2 DF3 to ) stage and (DF4, DF5, DF6 to) dest databases. 
  4. The "insert" DF task has to be inserted after all the DF task in the Sequence Container are done. 
  5. The "insert date to stage" gets date from source to stage so that when the package runs again, it has a new max date to start from.
  6. After all successfully complete, I want the transactions to be committed but nothing happens when I execute the package. It is successful but no data gets inserted. 

However, the package runs successfully without the begin/commit transactions.

The DF Tasks have a couple of OLE DB Sources & Destinations to copy data:

Any advice/comment where I am doing it wrong? 

Thanks


IN~



Trigger/Transaction conflict

$
0
0

I'm not sure this is the right forum for this but here goes...

 

I have an SSIS package that is loading data to a table in one data flow.  A subsequent data flow reads data from that table and loads it (via a Slowly Changing Dimension task) to a target table.  The final target table is in a different SQL database than the source table.  The entire package is running in one transaction.  The target table has an INSERT/UPDATE trigger that updates a column on the table with the current date (update audit date).  When I run this package, the Update path of the SCD fails and I receive several error messages.  The errors are:

 

"A trigger returned a resultset and/or was running with SET NOCOUNT OFF while another outstanding result set was active.". 

 

"Uncommittable transaction is detected at the end of the batch. The transaction is rolled back."

 

"The current transaction cannot be committed and cannot support operations that write to the log file. Roll back the transaction."

 

The first message always appears twice in the output and the subsequent messages appear once for each row on the update path of the SCD.

 

The trigger is a simple update.  It does not return a result set.  We have also tried changing the trigger to an insert (to an audit table) to no avail.  If I leave the trigger enabled but comment out all of the SQL, the process works.

 

If I disable the trigger, the package works.  If I leave the trigger enabled but remove the transaction from the package, it also works.  It is only when the transacation and trigger are both enabled that I have trouble.  I have tried this with several input data sets. 

 

Any insight would be appreciated.

 

Thanks,

 

Chris

Move files using SSIS File system task

$
0
0

Hi,

          I'm trying to move the files from one directory to another using File system Task and Foreach loop container .I have couples of .xlsx files in the source folder , i want to move them to Destination folder(c:\TestDestination) .

Eg: Source folder contains (c:\TestSource\) OraTestA_20130408.xlsx OraTestB_20130408.xlsx OraTestC_20130410.xlsx I'm using Variables in File System Task : MoveSourceLocation : C:\TestSource\ MoveDestnLocation : C:\TestDestination\ I'm getting error Could not find the file in Source Folder.

      Please guide me .Thanks in Advance.


Anita

Deploying to ssisdb (sql server c2 audit enabled) fails

$
0
0

Hi, 

SQL 14.0.3035.2 with C2 Audit enabled. When deploying new SSIS packages to SSISDB the server shuts down, due to being unable to write to trace log. 

If I disable C2, the deploy works fine (tough not direct from VS, see https://social.msdn.microsoft.com/Forums/sqlserver/en-US/2c063b57-8571-41e7-8a95-3ce4a105a5e3/unable-to-deploy-ssis-after-vs-2017-update-1580?forum=sqlintegrationservices).

Is it a bug or am I missing some permission somewhere? 


derived column from string(csv) to int(sql)

$
0
0

 My csv has empty values at times for a a field and I would like to default that to a '1' if empty. The sql field is defined
as int. I have tried multiple examples but syntax error.

 Thanks.

Unable to deploy SSIS in VS 2017 Enterprise Edition

$
0
0

Hello MS Team-

I am Unable to deploy SSIS in VS 2017 Enterprise Edition. It was working fine and suddenly started seeing this error. 

TITLE: SQL Server Integration Services
------------------------------

The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) (mscorlib)

------------------------------
BUTTONS:

OK
------------------------------

Visual studio 2013 and .net 4.5 incompatible

$
0
0

I am building SSIS for SQL 2014 in VS 2013. At project creation I have defined .net 4.6.2 . I added a script task and tried adding a reference to a .net 4.5 added namespace since I need a 4.5 added new class (ziparchive). for the script language in script task I can select VB or c# versions 2012, not 2013 as the VS version is. Also, in the script task can only add reference to .net Framework 4.0 (not 4.6.2 which I selected at project creation).

Any idea how to add this reference to a .net 4.6 namespace (or minimum 4.5)?

Thank you,

Handling unexpected characters from flat file

$
0
0

Hi, I'm importing a flat file into a SQL Server database using SSIS. The flat file contains columns which as specified as BIGINT, null. However, if the the row doesn't have a value then "/N" exists in the flat file. Here is a very scaled back example. Notice row 2 Col2 is null or blank in the flat file, so they print "/N"

Col1      Col2      Col3
897       /N         323

I'm trying to figure out if I can check for this in my SSIS package and make "/N" null.

Does anyone have any advice on this? I'm new to SSIS, so any help is appreciated!


Error in Execute Process Task during Plink bash script

$
0
0

I am trying to get SSIS to execute a bash file that deletes rows from a table on a remote server. I have already tested the bash script on its own on the server. So i know it works. But calling it from my local CMD PROMPT or  SSIS doesn't seem to work. I've reverted back to CMD prompt to at least get it working through that way but cant seem to get passed opening up putty, and logging in. 

Here is an example of what i have in the Process information

Executable: C:\Program Files\PuTTY\plink.exe

Arguments: admin@172.00.00.00 -P 22 -pw PassWord -m "./export/xvdb1/SSH_Scripts/generate_deletes"

 

See below for all values: and the error message i receive.

What am i doing wrong?

Viewing all 24688 articles
Browse latest View live