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

JOB execution fails due to Access failure to procedures and views using certificates (encryption)

$
0
0

Job execution fails using SQLServerAgent account but runs successfully under another windows personal account.

Both have same security access on server and DB.

The Windows account is mapped to dbo on the database .

The package uses procedures and views which are using encryption by certificates.

Please advice on how to provide security so that job runs from the agent


Moving SSISDB and catalog.check_schema_version

$
0
0

So I followed the instructions to move SSISDB.  MSDN article: hh213291(v=sql.110)

Step 8 in the restore section says to run catalog.check_schema_version to check compatability.  The MSDN for this is lacking. 

It returns:
SERVER_BUILD  SCHEMA_VERSION SCHEMA_BUILD ASSEMBLY_BUILD SHARED_COMPONENT_VERSION COMPATIBILITY_STATUS
11.0.3412.0       2                          11.0.3412.0      11.0.2100.0          11.0.3000.0                                                                  0

What does compatibility_status = 0 mean?

SSIS - For Each File Enumerator Directory Empty Warning Issue

$
0
0

So it appears from an issue I encountered and from the entries on this blog that if permissions are not correct on a directory that SSIS will throw a warning that no files were found instead of an error that the account doesnt have rights to the directory. This seems counter intuitive. They are two very seperate things. Files not being there is not always an issue if the package is just periodically checking and doing something if the files are there. But not being able to even check because of a permissions issue is an entirely different situation and it seems this would raise an error on the package. Is there really no way to differentiate between these two occurrences? Surely this is a bug right? Or is there something I'm missing here?

Any help with this would be greatly appreciated. I have fixed the issue on this occurrence by using a proxy account but since this did not cause the package to fail we went longer than we would have wanted with our ETL process not bringing in certain files. I just assumed (please no cliche reply :)) that if you got a hard access error it would register that.

Execute SSRS report in SSIS

$
0
0

I have created a report which renders data for an advertiserid,I have 5 advertiser ids and there should be 5 reports for all the five advertisers and all the five reports need to be uploaded to ftp site. I hope this can be done in SSIS.

Can anyone please help or provide me a reference.

Thanks in advance

Ssis Package help

$
0
0

I work in Healthcare and I just started using SSIS tool. I have so far created basic packages for ETL processes. I need to create a package with some advanced skills.

Here`s my scenario:

I have a report that runs monthly & quarterly. The rowcount is about 5 million rows. I want to run a refresh at the end of the each month.

here`s the table structure

Servicenumber, amount, startdate,enddate,paid date,Department.

My source is our OLTP DB, what happens is lets say if i pull data for q1(12/1 - 02/28) and load in "Table1" job done plain and Simple. The report runs at Monthly and Quarterly schedules. The issue is I will get diff numbers in monthly run than quarterly run. I want to lets say Pull data weekly and at the end of the month run a refresh.

Can someone help me how can i achieve this ?

Using Powershell - How to check if sql server job is still running before starting another job?

$
0
0

Hi,
Using PowerShell, I have created SQL server agent Job for a SSIS package

After the above job is started, I want to check continuously if the job is running or not.

Once the job finishes (either successful or failure), I want to start another job for the same SSIS package.

Could somebody help with the PowerShell script on how to check if SQL server agent job is running or not?

Any help is appreciated.
Thanks
Bhargavi

Execution status of running packages

$
0
0

Hello,

We have SSIS running in the file system and logs are not stored in SQL Server. we want to implement the health check to currently running job. Is there any way to get the job status? . I already referenced the following link but looks like this one able to give the status only the job running thru SQL Agent.

http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.management.smo.agent.job.currentrunstatus.aspx

please help me on this regard.

Thanks in advance.

SSIS: Using CASE Statement Within A Derived Column Transformation Expression

$
0
0

The following is my Data Flow:

Ole DB Source > Copy Column> Derived Column>Ole DB Command

My OLE DB Source has the following SQL command task:

SELECT*FROM Repair RLEFTOUTERJOIN Vehicle VON R.SN = V.SNAND R.Reg = V.RegLEFTOUTERJOIN Product PON R.PID = P.PID

This yields a column of concern for me named PartNumber, which are represented by the following 2 formats:

%-%%-%-%

The following are my Copied Columns:

Input Column= PartNumber
Output Alias = Copy of PartNumber

The following are my Derived Column expressions:

Derived Column Name  Derived Column                  Expression
Name                 Replace 'PartNumber'LEFT(PartNumber,FINDSTRING(PartNumber,"-",1)-1)
Copy of Name         Replace 'Copy of PartNumber'RIGHT([Copy of PartNumber],LEN([Copy of PartNumber])- FINDSTRING([Copy of PartNumber],"-",1))

So My PartNumber Column is Replaced with ######### of typestring and the Copy of PartNumber column is replaced with#### of type int

As I stated earlier PartNumber also is in the format of %-%-% which raises the following question:

How can I replace PartNumber Column with NULL if in format of%-%-% and take the PartNumber and put it in new column namedSubPart while keeping all the logic within SSIS objects?

So in essence I want to do something like the following:

PartNumber =CASEWHEN'PartNumber'LIKE'%-%-%'THEN ABC = PartNumber AND PartNumber ISNULLEND

I have tried the case statement in a Derived Column expression and is not working. Would I add theCASE statement to the SQL command task in my OLE DB Source?

I hope this question is concise for you.


Script Task : exception has been thrown by the target of an invocation

$
0
0

Having a simple SSIS package that downloads a file from SharePoint using client object model.

the task runs successfully through VS2010 IDE and SQL Agent on development workstation but fails when running through SQL Agent on the server. there are other similar SQL jobs that work fine, so the permission should not be an issue.

the error happens so that I cannot trap it using try/catch. when editing script in VS2010, I noticed the path of SharePoint assemblies are referring to version 16 of SharePoint (2013 ?)  and I have SharePoint 2010 on server. As I have set it to run no any version of SharePoint (using "Specific Version = False") I expect it runs with 2010 version but it doesn't.

I'm using SQL Server 2012 Enterprise x64.

Thanks for help.

SSIS / SQL Memory Contention

$
0
0

Hi all,

I'm running SSIS and SQL server on a single PC. 

I have an ETL process consisting of several SSIS packages to load data from a source OLTP to a data warehouse.

OLTP DB resides on SQL 2012 instance.

Datawarehouse resides on SQL 2008R2.

My SSIS packages 'hangs' and reports it is failing to swap out memory buffers - they're all held by the SQL 2012 (source db) instance.

On my PC I've configured max memory on each SQL instance:

PC Memory = 16GB

SQL 2012 Max Memory = 6GB
SQL 2008r2 Max Memory = 4GB

My ETL package now runs smoothly. 

My question is - what is best practice for managing this memory contention in a production environment. I do not want to limit the available memory to my OLTP db. 

My ETL is ran once per day  - overnight.  Perhaps I could reconfigure max memory before and after each ETL processs? But I don't like this as it would require a server restart & cold cache for my OLTP apps.

Thanks for reading. Appreciate suggestions.

Clay

Converted DTSX with Error Builds and Runs fine??

$
0
0

I converted a SSIS project originally developed in VS2005 on an XP box. Copied the whole project over to Win7 64bit box and converted it into a VS2008 project. One blazing error:

Error 4 Error loading MobileData.dtsx: Failed to decrypt protected XML node "DTS:Property" with error 0x8009000B
"Key not valid for use in specified state.". You may not be authorized to access this information.
This error occurs when there is a cryptographic error. Verify that the correct key is available.

Thing is it rebuilds in output fine and actually have run it through and producing output file just fine.....do I ignore this error?

I'd hate to put it into production and the deal blow up.

TIA

Harry

How to call a webservice while inserting data in sql table using SSIS

$
0
0

I have a table which consists of several columns at Source table. While importing the data i have to map with destination table. But one of the column is getting generated with the help of web service which has three parameters ie.e coming from source table.

Here i have to call a webservice for generating column with the help of three input parameter of a source table. I have to also import other columns to the destination table.

Is it possible and if then how?


Error 0xC0010009 Script Component

$
0
0

I have a SSIS package with a two script components, inside of two separate data flows.  In the first, I'm getting row numbers that are written out with other data to a text file destination.  I am using a variable to store the last row number, so I can pick up the next row number in the subsequent data flow.  I get an error:  Script Component has encountered an exception is user code:  HRESULT: 0xC0010009.  However, if I add a breakpoint to either of the scripts, it runs successfully.  Has anyone seen a script component run successfully with a breakpoint, but fail without it?


Brad Johnson

Why no native restore database task in SSIS Toolbox

$
0
0

Hi,

I'm a little confused as to why there is no "Restore Database Task" in the SSIS Toolbox when editing a package in BIDS/SSDT?

We are provided with a native "Back Up Database Task" but no corresponding restore component. Searching the web shows that most developers are using "Execute T-SQL Task" to restore a database, which is fine.

But why have half the a solution to the backup/restore activity in the toolbox?

Thanks,

Gary

SSIS Fast Load fails to copy correct number of rows

$
0
0

 

Step 1 - truncate destination table

 

on success

 

Using obdc source table source to a odbc destination use a fast table load to take three colums out of source, and copy to destination.

 

In the source, column 1 is the primary key (int)

Other two columns are time stamps

 

Destination table, column 1 is int (no keys) - does not allow nulls, column 2 & 3 allow nulls

 

Noramlly the rowcount in the source and destination tables match after a run. However, on occasions, the destination table count is less than the source table. On the destination odbc source, we enable identify insert and check constraints. I can't see how we'd drop rows since by definition the row needs to existing in the source (we're copying the primary key).

 

The first time this occurred, anecdotal information is that the source sql server was under memory stress.

 

Has anyone seen this behavior before? Any ideas on how to resolve it?

 

Ken

 

 

 


How to downlaod file from SFTP location using SSIS script task with out installing any dll or component

$
0
0

Hi All

in one of my requirement we need to get the file from SFTP location . The problem here in our comapny there is security issue so now they are not allowing to install any thing newly . so how can we use existing script task to download file from SFTP location.


Surendra Thota

PrimeOutputFailed on last buffer?

$
0
0
I'm running SSIS 2008 SP1 (10.0.1600 shows in SSMS when I connect to SSIS).

The following is the error message I'm getting in the SQL agent job which calls dtexec. It has run consistently for months and just failed twice in 6 hours but is not currently failing.

Error: 2009-08-08 06:00:52.02    
 Code: 0xC0202009    
 Source: DF (My Data Flow) OLESRC (My Source) [1]    
 Description: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred.
 Error code: 0x80004005.  An OLE DB record is available. 
 Source: "Microsoft SQL Server Native Client 10.0" 
 Hresult: 0x00040EDA 
 Description: "Warning: Null value is eliminated by an aggregate or other SET operation.". 
End Error 
Error: 2009-08-08 06:00:52.09    
 Code: 0xC0047038     
 Source: DF (My Data Flow) SSIS.Pipeline    
 Description: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on component "OLESRC (My Source)" (1) returned error code 0xC0202009.  The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure. 
End Error 
DTExec: The package execution returned DTSER_FAILURE (1).

This error occurs after the next to last buffer to flow from the source in this data flow. That makes me suspicious. Let me describe the data flow.

OLEDB Source connected to a Row Count transform connected to an OLEDB Destination. The OLEDB Source is in SQL command mode and runs a sql command which does a group by and a min on a nullable string column. (Thus the "null value is eliminated" warning. Indicentally, it does eliminate null values every time the package runs, even when it succeeds, so I think that warning message is just a warning.)

When I look at the OnPipelineRowsSent events for the path leaving the OLEDB Source...

Yesterday when it succeeded at noon, it pumped 269,168 rows which was 27 buffers of 9,947 rows and one buffer of 599 rows and one buffer of zero rows.

At midnight last night it pumped 27 buffers of 9,947 then failed with the above error. Same when it failed at 6am today.

Today when it succeeded, it pumped 27 buffers of 9,947 rows and one buffer of 820 rows and one buffer of zero rows.

The source system is a SQL2005 server on the LAN. I don't suspect it's because of a dropped network connection because it happened at midnight and 6am... and because multiple SSIS packages are executing in parallel pulling from this SQL server, and this is the only one which failed.

Anyone run into this before or have any suggestions?
http://artisconsulting.com/Blog/GregGalloway

Error while executing SSIS Package after upgrading the Oracle Client

$
0
0

Hello,

I am running to the below error after we upgraded the Oracle client to 11g from 10g. The source of the Data is Oracle database . Looked online but each error is pointing towards different route, Confused here any help is very much appreciated. Have to say I am not a pro with SSIS.

SSIS package "Bentek_ISO_Package (2).dtsx" starting.
Information: 0x4004300A at Temp_tbl Injection Data Flow Task, SSIS.Pipeline: Validation phase is beginning.
Information: 0x4004300A at Temp_tbl Injection Data Flow Task, SSIS.Pipeline: Validation phase is beginning.
Warning: 0x80049304 at Temp_tbl Injection Data Flow Task, SSIS.Pipeline: Warning: Could not open global shared memory to communicate with performance DLL; data flow performance counters are not available.  To resolve, run this package as an administrator, or on the system's console.
Information: 0x40043006 at Temp_tbl Injection Data Flow Task, SSIS.Pipeline: Prepare for Execute phase is beginning.
Information: 0x40043007 at Temp_tbl Injection Data Flow Task, SSIS.Pipeline: Pre-Execute phase is beginning.

Error: 0xC0202009 at Temp_tbl Injection Data Flow Task, OLE DB Source [1]: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E14.

An OLE DB record is available.  Source: "OraOLEDB"  Hresult: 0x80040E14  Description: "ORA-12801: error signaled in parallel query server P183, instance *****:qrmgmt2 (2)
ORA-01861: literal does not match format string".
An OLE DB record is available.  Source: "OraOLEDB"  Hresult: 0x80004005  Description: "ORA-12801: error signaled in parallel query server P183, instance ****:qrmgmt2 (2)
ORA-01861: literal does not match format string".
Error: 0xC004701A at Temp_tbl Injection Data Flow Task, SSIS.Pipeline: component "OLE DB Source" (1) failed the pre-execute phase and returned error code 0xC0202009.
Information: 0x4004300B at Temp_tbl Injection Data Flow Task, SSIS.Pipeline: "component "OLE DB Destination" (52)" wrote 0 rows.
Information: 0x40043009 at Temp_tbl Injection Data Flow Task, SSIS.Pipeline: Cleanup phase is beginning.
Task failed: Temp_tbl Injection Data Flow Task
Warning: 0x80019002 at *******: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (2) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
SSIS package "****** (2).dtsx" finished: Failure.

sql server job is succeeding even though it should fail

$
0
0

Hi,

I created a sql server job with one job step for a SSIS package using Powershell.

When I run the job (manually), it shows "success" state, but it should fail (because of the bad configuration parameters).

But if I go to job properties, and then edit job step properties (don't have to make any changes here, just clicking ok button is enough)

then the job run will fail as expected.

I am not sure why it is not failing first time?

Any help is appreciated.

Thanks

-Bhargavi

data not loading from source to destination

$
0
0

Hi,

I have source as        FlatFile -----> lookup ----->adonet destination

I had 2 fields descrption datatype of varchar(500), its in flatfile datatype:string(dt_str) of 500

name: datatype of varchar(250).....flatfile datatype: string(dt_str) of 250.

Data is not loading from lookup to adonetdestination.My task execution is completed succeesssfully with out errors. but no data in  tab.

 please help it.

Thanks

AVS

Viewing all 24688 articles
Browse latest View live


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