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

Not able to Access Shared Folder from SQL Server using SSIS

$
0
0

I have created a OLE DB Connection and Created a Flat File Connection pointing to a Shared Folder Location.
When i execute in BIDS, its working fine in placing the file, But when i deploy the code in SSISDB, its errors out, "Cannot Open Datafile", Access Denied

We are using SSIS 2012 and executing the package through stored procedure.

Any Idea!!



Custom SSIS component is not loading in toolbox

$
0
0

I created a custom ssis componet and placed the dll in Pipelinecomponents folder of sql server and also in GAC

But still it is not showing in Toolbox.Please suggest me how can i debug to find where the problem lies.

I am using correct framework version 4.5,i build dll with 4.5 framework

Attunity Error in SSIS - "OCI Error Encouneterd"

$
0
0

I have SSIS BIDS (SQL Server 2008) (32 bit), and am using Attunity connector to connect to an Oracle DB. A while back we had our systems upgraded to windows 7 64 bit.

I have installed Oracle 11g client on my machine, added TNS entries for the above Oracle server connection and also pointed this path (path for TNSNames.ORA) in the "PATH" environment variable as well as "TNS_ADMIN" (which I created) environment variable.

Even after doing all this, I get the following error when validating the Attunity Oracle source connector, the error is as follows:

"OCI Error Encouneterd. ORA-12154: TNS could not resolve the connect identifier specified, Test connection failed".

I also researched that this might be due to paranthesis in the path for devenv.exe (BIDS).... So I went through the following post, installed JUNCTION, and created a junction pointing to the actual directory for devenv.exe.

http://danieladeniji.wordpress.com/2011/08/03/microsoft-sql-server-integration-services-attunity-error-oci-error-encountered-ora-12154-tnscould-not-resolve-the-connect-identifier-specified/

This too has not resolved the problem....

Any help appreciated!!

SSIS Package issue while OLEDB Connection String retrieved from variable.

$
0
0

Hi,

My SSIS Package(VS2012) have two different SQLServer connection called SrcCon and DestCon . And its working fine with normal scenario. But when I try to pass the connection string using a package variable with the help of Expression editor like connectionstring = strconvariable, Then SrcCon getting connected fine but DestCon having  issue to connect and all the task used by the DestCon marked as red. If I open the task and try to connect DestCon it will asking me to username and password every time. so every time It will lead me the username,password prompt.

SrcCon : Provider=SQLNCLI11.1;Password=XXXXX;Persist Security Info=True;User ID=myuser;Initial Catalog=SrcDB;Data Source=*.0.0.31;

DestCon : Provider=SQLNCLI11.1;Password=XXXXX;Persist Security Info=True;User ID=myuser;Initial Catalog=DestDB;Data Source=*.0.0.31\Inst2;

Expecting valuable suggestions.



Thanks, Vasantha Prabakaran


How to Run 2012 SSIS packages on 2008R2 Version

$
0
0

HI Friends,

I have scheduled a job to run 2012 SSIs packages on 2008R2. I am getting this error can you please Give any ideas how can I run them without converting!

ERROR Is :

Package migration from version 6 to version 3 failed with error 0xC001700A "The version number in the package is not valid. The version number cannot be greater than current version number."

Link between sysssislog.executionid and job_id (in sysjobs, sysjobhistory)

$
0
0

Using: SQL Server 2014, SSDT-BI 2014 (VS 2013)

Since last week I log my SSIS tasks in the sysssislog table. For each job that i execute, a new executionID (executionid column in sysssislog) gets written and attached to all my SSIS tasks (source-column in sysssislog).

Problem: I run the same ssis packages with different environments. Therefore I want to join environment information to the sysssislog table. The executionID itself doesn't show me to which job and environment the task/source execution belongs to. Because the environment information is attached to a job, I am searching for a link between the executionID and the job_id. There must be any, since a job is reason for producing all the log informations.

Does anybody have ideas how to get a link between job_id and executionID?

Change Charset of SSIS package from Unicode to Latin 1

$
0
0
I created an SSIS package which makes queries my DB and exports the Result to a CSV File, in order to import the data into the DB of another system B (which I don't have access to). According to the administration of system B the CSV file structure is correct but for some reason the import fails. He also told me, that they use ISO-8859-1 (latin 1) as charset, while Flat File Connection at the SSIS package is set to Unicode. When I try to change the Code page Attribute to 1252 (ANSI - Latin 1) it fails, since some of my columns are of data type Unicode text stream [DT_NTEXT]. How can I convert those values to DT_TEXT so I can change the charset to Latin 1?

I appreciate it very much if you vote my Replies as Helpful or Mark as Answer if I could help you out. Thanks!

execute process task to append file

$
0
0

hi

i am using execute process task to append one file (header)  to main file.

in expession i am using this

"/c copy \"" +  @[User::DestinationHeader] + "\" \"" + @[User::FinalFile] + "\""

but only header is coming ,not the file content.

what should be corect syntax and what should i put in argument


What does SSIS VARCHAR Parameter Size = -1 do?

$
0
0

We have a number of SSIS packages at work where the Parameter Size defined in EXEC SQL Tasks and OLEDB Command Transformations is defined as -1 for VARCHAR parameters.

They are working without issue, but an audit discovered these; what is the actual behavior of VARCHAR fields defined with a Paramter Size of -1 in an SSIS package? I could find nothing in the MSDN documentation.

Some folks here feel they should be changed when he opportunity arises, others feel "don't fix what ain't broke."

But what's the actual defined behavior, and is it documented somewhere?

Call child package x number of times from parent package

$
0
0

I have a child package that I need to call x (10 or less) number of times and have those all run at the same time. The parent package should kick them off either simultaneously or one after the other, but the parent package should not complete until all child packages have completed. I will be sending a different parameter value to the child package for each process.

How can I do this in SSIS without hard-coding several Execute Package Tasks with the same package but different parameter values?

Compare 2 Columns using SSIS from two different tables

$
0
0

Hello,

A newbie to ssis.

I have a Table 1 with Address Details and Table 2 with Address Details of same customer but from different sources. I have loaded these two data sources and also joined these two tables.

I want to compare address column of one table with the other table, if they are not equal need to insert into another table.

With Sql query we can perform it, but just want to know how to perform this with ssis.

windows username change and encryption issue

$
0
0

My IT department decided to change my windows id based on the new standard they came up with and now i am getting the following error when i try to execute my SSIS package i am not sure how to troubleshoot and i have looked around a little but didn't see this happen to others., help would be appreciated. below is the only documentation i have on the issue and it just does nothing when i press execute button 

Warning1Warning loading InputFilesinaFolder.dtproj: Warning: Failed to decrypt an encrypted XML node. Verify that the project was created by the same user. Project load will attempt to continue without the encrypted information.InputFilesinaFolder.dtproj00

Warning2Warning loading InputFilesinaFolder.dtproj: Warning: Failed to decrypt sensitive data in project with a user key. You may not be the user who encrypted this project, or you are not using the same machine that was used to save the project. If the sensitive data is a parameter value, the value may be required to run the package on the Integration Services server.InputFilesinaFolder.dtproj00


Task to add new row and values to Table?

$
0
0
Hi, I am new to SSIS, I have a table that I would like to capture daily currency conversion rates. In my Control Flow pane, I've been able to use a web service task to get a string value of the conversion rate pass it to an XML task, and connect it to at Data Flow Task. So now I'm not sure what to do from here. I would like to input the daily values into my table:

[CurrencyID][int]IDENTITY(1,1)NOTNULL,[CurrXDate][datetime]NOTNULL,[Country][nvarchar](50)NOTNULL,[CurrXRate][float]NOTNULL,

insert into tbl_CurrXrates
(CurrXDate, Country, CurrXRate)
values
(getdate(), 'USD', @[User::ConversionRate])

What data tasks and order would I use to add a new row to my table which I think would be a simple insert statement. Hope my question makes sense.

formatting flat file in SSIS

$
0
0

I have an output table with 

CREATE TABLE [dbo].[Extract_wt_693_Truven_Intel_PharmacyClaims_Output](
	[RowId] [int] IDENTITY(1,1) NOT NULL,
	[OutputRow] [nvarchar](420) NULL,
	[Modified] [datetime] NULL,
PRIMARY KEY CLUSTERED
(
	[RowId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

This output row is populated with several columns concatenated together.

When I try to dump to my text file which is a fixed length the 2nd row downwards has a space between the margin and the beginning of the output ,I have tried all I can but it remains the same any suggestions.

P0000000400N0000006399154010425271 D P0000005043N0000006099154012118651 D P0000001621N0000003999154012151211

A-000000000000000000000000000000000000000 D

iF i reduced it more than the row width above it ab normsif I increase it pushes both the first and other rows further awat from the right margin

store files in Array from directory using script task

$
0
0

How do we the store files from directory into array. I have below code but looks like something is wrong. Any help much appreciated.

string[] sourceFiles =Directory.GetFiles(Dts.Variables["User::Dir"].Value.ToString(),"*.PDF");

string[] ar =newstring[]{  sourceFiles};


Running SSIS from dtexec

$
0
0
I have a project that extracts data from a sql 2008 r2 database and writes it to an excel (2007) file.  When I run it in debug everything works fine but when I run it from a command line I get lookup errors (32 bit) or odbc errors (64 bit).  Any ideas on how to configure or run the package?

How to get value from a parent tag in XML source?

$
0
0
Hi All,

Can anyone please help me achieving the below requirement?

I have an XML source in the format.

<RecordBody>
<Case>
<CaseNumber>IC001</CaseNumber>
<Department>MSD</Department>
<IsProcessed>No</IsProcessed>
<Customer>
<Name>Name1</Name>
<Designation>Officer</Designation>
<EmailAddress>email01</EmailAddress>
<EmailAddressAt>@</EmailAddressAt>
<EmailAddressDomain>gmail</EmailAddressDomain>
</Customer>
<Services>
<ServiceList>
<Service>
<ServiceID>345345432423</ServiceID>
<ServiceType>I</ServiceType>
<Status>Active</Status>
<ServiceProvider>
<Type>ISO</Type>
<Name>Provider1</Name>
<Location>Location1</Location>
</ServiceProvider>
<ServiceJobs>
<ServiceJobsList>
<ServiceJob>
<JobID>98732</JobID>
<Date>20150201</Date>
<Hours>0630</Hours>
</ServiceJob>
<ServiceJob>
<JobID>98732</JobID>
<Date>20150201</Date>
<Hours>0630</Hours>
</ServiceJob>
 </ServiceJobsList>
 </ServiceJobs>
</Service>
<Service>
<ServiceID>35576655</ServiceID>
<ServiceType>E</ServiceType>
<Status>Active</Status>
<ServiceProvider>
<Type>ISO</Type>
<Name>Provider2</Name>
<Location>Location2</Location>
</ServiceProvider>
<ServiceJobs>
<ServiceJobsList>
<ServiceJob>
<JobID>9873</JobID>
<Date>20150301</Date>
<Hours>0830</Hours>
</ServiceJob>
<ServiceJob>
<JobID>9832</JobID>
<Date>20150205</Date>
<Hours>0630</Hours>
</ServiceJob>
</ServiceJobsList>
</ServiceJobs>
</Service>
</ServiceList>
</Services>
</Case>
</RecordBody>

Requirement:

I created tables for each entity in staging (Case, Customer, Services, ServiceProvider, Service Jobs) and want to pull the data to respective table with the Parent ID's (foreign key).

For eg. Need to pull the Case Number in to Customer table or vice versa when pulling the data to staging. Same with ServiceID for Service Providers and Service Jobs.

What is the best possible way to achieve it?

Any help is greatly appreciated.

Thanks & Regards,

Sri


Changing Providers in Connection String Issues

$
0
0

I've got eight 2005 SSIS packages that were accessing SQL Server 2018 for bulk data and a SQL Server 2000 for some data also.

Both connection strings use the Provider=SQLNCLI.1.  These packages all are working daily without trouble even though the DB03 box had been upgraded to SQL2008 but I never changed that Provider to the SQLNCLI10. 

SQL Server 2000 to SQL Server 2012 and I've converted the VS2005 projects to VS2008.  It converted the SQL Server 2008 connection string provider to SQLNCLI10 but since our SQL Server 2000 box is still in place it doesn't convert that Provider.  I thought well I'll just manually change the Provider to SQLNCLI10, recompile and then we'd have to DTSX to quickly swap on the new SQL Server 2012 box.  But on recompile now it changes it back to the SQLNCLI.1 Provider.

Question:  Must I wait til the Server is actually upgraded to be able to change and recompile the DTSX with the new Provider?  How is this usually handled gracefully?

TIA

Harry

SSIS Catalog deployment not creating certificates

$
0
0

I am having a problem with a SSIS Project in the SSIS Catalog. When I schedule the package to run, I get an "Unexpected Termination" error.

If I look in the event viewer, I get the following error:
The SSIS Execution Process could not write to the IS catalog: SERVER:SSISDB Error details: Cannot find the symmetric key 'MS_Enckey_Proj_Param_13', because it does not exist or you do not have permission

If I check sys.symmetric_keys, this key does not exist.
If I check sys.certificates, I can see a certificate name MS_Cert_Proj_13, but no certificate named MS_Cert_Proj_Param_13.

We have recently upgrade the servers to SQL 2014 CU4 from SQL2012.  All the other projects that are working fine were created on SQL2012 and uploaded then.  This is the first project deployed since the upgrade.

I have created a new solution, recreated the parameters and copied the package into this solution.  I then built this and deployed it with the same results.

Any one seen similar or know how to fix this?

Thanks

Event handler error Issue

$
0
0

Hi there,

I have created one package for to process all cubes through foreach loop which is working fine.

for error tracking I was writing script in the OnError event handler

below code I was using in the script task

 Dts.Variables("ErrorDesc").Value = Dts.Variables("ErrorDesc").Value.ToString() & Dts.Variables("ErrorDescription").Value.ToString()

OnPostExecution I was passing ErrorDesc variable to Insert table and related cubenames as well.

which is working fine.

the problem is

I was passing 4 cubes to the foreach loop container there are chances to fail multiple cubes.

when the first cube fails then the ErrorDesc variable holding related error and inserting in the table for that related cube

when the second cube fails the ErrorDesc variable holding previous Cube error and current Cube Error passing that to insert table which is onOnPostExecution

it looks like concatenating currenterror and previous errors....I need the error only to the related Cube error shouldn't concatenate with previous error...

Can anyone guide how to do that do we need to write any sort of logic in the script task ?

Viewing all 24688 articles
Browse latest View live


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