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

SSIS Script task not working in production environment

$
0
0

Dear all,

I am using Script task in SSIS to read some value and create file using that value and place that file in share location,

Its working fine in my dev environment when i deploy the package in production server (64 bit operating system),  i am not getting any error and package execution is success, but expected output is not placed in share location.

this was working fine earlier, but not working after i modified few task(not script task) and deployed again.

Thanks in advance

Regards,
Ashok


Cannot run SSIS from SQL Server-Agent

$
0
0

Hi all,

we have several SSIS-packages, that run by SQL Server Agent 2012 without any problems.

Now there is new SSIS-package, that runs properly in Visual Studio.
It has a for-each-container, wich loops a file-directory within flat-files.
There is a variable "fullpathsource" for a flatfile-connection, that is combined of (static) path and file-name from for-each-container.

Before the for-each-loop runs, variable "fullpathsource" contains only the path.
That's what the Agent remarks: flat-file-connection is not valid.

I have allready changed the package protectionlevel to "not save sensitive data", but that didn't help.

Thanks in advance for any hint.

Regards
Matze

Schema in xsd file.

$
0
0

Hello Friends,

I need your precious help here. I have an xsd file in which i have a schema. I need to get into my sql server database. Please tell me how can i do it through our ssis.

I have seen many blogs and posts. But every one says about xml to xsd schema file or using xml file. I dont have any xml file. I just got the xsd file in which there is database schema, tables and their attributes.

Please advise how to achieve this by step-by-step process. Appreciate your time and help..


Thanks, Anji

After installed SP1 for SQL Server 2012, can no longer export to csv

$
0
0
After installing SP1 today via Windows Update, I am no longer able to export data to csv using the SQL Server Import and Export wizard. I get the following error message:

"Column information for the source and the destination data could not be retrieved, or the data types of source columns were not mapped correctly to those available on the destination provider."
...
"Column "col1": Source data type "200" was not found in the data type mapping file."...
(The above line repeats for each column)

The work-around I have to do is to manually map each column in the "Edit Mappings..." option from the "Configure Flat File Destination" page of the wizard. This is an extreme inconvenience to have to have to edit the mappings and change each column to "string [DT_STR]" type from "byte stream [DT_BYTES]" type each time I want to export to csv. I did not have to do this before installing SP1; it worked perfectly for months with hundreds of exports prior to this update and no need to modify mapping.

Deploy SSIS 2012 Environments

$
0
0

Hey,

What's the easiest way to also deploy my Development environment with all its variable to my acceptance/production environment?


Please mark the post as answered if it answers your question | My SSIS Blog: http://microsoft-ssis.blogspot.com | Twitter


Cannot insert duplicate key row in object ERROR

$
0
0

Dear ALL,

I have a simple data flow task in my package. What i'm doing is merging data from two different sources. The destination table has a field 'AgeOfActiveDetailID' which is the primary key and it is not from the source (i have no idea how its getting populated). What my package is supposed to do is add the data from the second source to this DESTINATION TABLE. When i execute the job i get the following error:

An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80004005  Description: "Cannot insert duplicate key row in object 'dbo.AgeOfActiveDetail' with unique index 'idx_AgeOfActiveDetail'. The duplicate key value is (Jan 24 1901 12:00AM, 49, 1, 13417500, <NULL>).".

Please need help


SV

SSIS 2008 R2 Loading tab delemeted csv Issues?

$
0
0

Hi ,

i got one requirement like i have to load sample file data which is given by client.

The sample data contains tab delemeted  values. it contains 4 rows and 12 columns and client has given one sample table with 17 coulumns

now i have to load sample data into my table. while loading the data i got the below error , if i click OK then i can able to see my 4 records .

but when i tried to load the data i am loading only 3 rows , the last row i.e 4th row is not yet inserting into table. last row contains only 2 columns data

Requirement:

i have to load all 4 records and in future client may pass 17 columns but right now i got only 12 columns data into excel.

If i add 17 columns from advance tab to the  flat file then my 4 rows records will become only 2 rows.

how can i over come this issues.



Thanks in advance


franklinsentil

Command text was not set for the command object.

$
0
0

Good Morning,

In my package i have a dataflow task and it has a red cross on it , but when i opened the data flow task i didn't see any of the components having that ed cross mark. I checked the error details and i found out the following error, can anyone please tell me what it means?

Error     17           Validation error. Load Disposed Cases Update Case Detail [696]: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E0C.  An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0"  Hresult: 0x80040E0C  Description: "Command text was not set for the command object.".                 casesS.dtsx

I'm using a OLEDB Command transformation in the data flow task to update the field 'CaseDetail' TABLE

update CaseDetail
set CaseTypeID = ?, CaseStatus = ?, FileDate = ?, DispositionDate = ?
where CaseDetailID = ?

I mapped these five fields to five parameters. Please need advice.

Thanks


SV


I have a master table hw can u insert and update the rows into that one?

$
0
0

I have a master table hw can u  insert  and update the new rows or updated rows  into that master table ?  using ssis

can some one tell me the answer............

Regards

I have a task that loading the data into the destination table,that contain millions of records?

$
0
0

 I have a task that loading the data into the destination table,that contain millions of records?

suddenly that task faild at the 50001 recored position ,And I started the process from 50002 record from the last continuation hw can we achive that task (Apart from check points)

Can some one tell me the soluction

Regards

SSIS 2005: insert large numbers of data into SQL server

$
0
0

Hi,

I am trying to insert 4 million data from dB2 to SQL server. But after 1 million it's failed. I have tried with small amount of data(1000) and it is working fine.

One more thing, it is taking more than 1.5 hrs to insert 1 million data.

Please help me.

Thanks,

Rana

Configure SSIS Build in TeamCity

$
0
0

I am trying to setup a SSIS build using MSBuild agent on Teamcity 7.x. Created a simple data flow task in a SSIS project to copy data from xls to csv.

I have setup a buildagent with -

 

Build File Path: depot/_main.br/Tools/VikTestSSIS.dtproj

 

MSBuild Version: .Net 4.0

 

However, I get the following error, and need help.

 

[09:17:23]depot\_main.br\Tools\VikTestSSIS.dtproj.teamcity: Build target: D:\LDNDSM020007936_TCAgent\temp\buildTmp
[09:17:23][depot\_main.br\Tools\VikTestSSIS.dtproj.teamcity] D:\LDNDSM020007936_TCAgent\work\a249a3015f83245\depot\_main.br\Tools\VikTestSSIS.dtproj(3, 3): error MSB4067: The element <ProductVersion> beneath element <Project> is unrecognized.

[09:17:23][depot\_main.br\Tools\VikTestSSIS.dtproj.teamcity] Project depot\_main.br\Tools\VikTestSSIS.dtproj.teamcity failed.

Regards,

Vikram R

Creating Folders Named by the first 4 digits of filenames

$
0
0

I have a folder Services. Under this, To Schools and under that lots of Service folders with files in.

I want to look at the To Schools Folder and traverse all the directories. All the files start with a 4 digit code.

I want to be able to create folders somewhere else that match these 4 digit codes.

Services           To Schools      Service1          1111_Service1_Example.csv 

                                                                        1112_Service1_Example.xls

                                                Service2          1111_Service2_Example.doc

                                                                       1113_Service2_Example.xls

                                                                       1114_Service2_Example.doc

                                                Service3          1114_Service3_Example.csv

To

Hotfolders       Upload                        1111

                                                1112

                                                1113

                                                1114

Is this possible using IS? I know it can be set up fairly easily in C# but it would be good if I could do it without that much coding (A Skill I don’t have)

the logic is to create the folders.

Then add the folders to the folders (Someone has already healed me with this)

Then delete all the folders after the files have been moved somewhere else by users, ready for next time.

Debbie

How will express LIKE function in SSIS expression in Derived Column(Data flow task)

$
0
0

Hi,

How to Express in derived column as like T-SQL:(LIKE function)

T-SQL query:

case when rtrim(ltrim(d1.[batch])) like '%VMI%'

or rtrim(ltrim(d1.[batch])) like'%VMO%'

then '4'

else '3'

end)

How can Express in Derived Column for above query ?

---

Please help me -Madhu

SSIS 2010 - Data Flow Task doesn't create csv file if no SQL data is pulled

$
0
0

I have a SSIS 2005 package that I converted to 2010. But there seems to be a difference in how the two versions execute. In the 2005 version, in the Data Flow task that pulls data from SQL Server, if there is no data to pull the task still creates a csv file with headers included, just no data. The 2010 version doesn't create the file at all. So far I haven't found any property where I can indicate that I want a file generated even if there's no data. Is there a way to do this?

Thanks



Moving Files to folders based on First 4 digits of Name. If Folder doesn't exist DONT move file

$
0
0

I'm moving files to folders based on the 1st 4 digits of the folder name.

If the first 4 digits don't correspond to a folder name how do you just ignore the error and dont move the file? I'm thinking its in the OnError Event handler but again, there isnt much in the way of decent documentation on how to do this.

Any help would be appreciated

Debbie

type of value assigned to variable differs from the current variable type

$
0
0

hi all,

I have a Data Flow Task that has to be ran against a collection of files in a folder.

I have put the Data Flow Task inside a ForeachLoop container with a Package level parameter

User::fileName as enumerator. Even though it is declared as String, and the names of the files are strings, I get this error message:

Error: 0xC001F009 at Package: The type of the value being assigned to variable "User::fileName" differs from the current variable type. Variables may not change type during execution. Variable types are strict, except for variables of type Object.

 I have tried to define the parameter at the Data Flow level, I tried to declared before adding the Foreach Loop, nothing works. Another parameter which happens to be an int, where I put a row count seems to work just fine - as a matter of fact the first iteration works, in that the first file is processed OK, however the next file in the folder is not processed and I get the error mesage above (sorry about the font, I don't know what happened),

Thanks,

kowalsky

How to create process to call SSIS if datetime is today in DB table?

$
0
0

We have SQL Server 2012.

We want SQL Server Agent Job, which has task to check database table every 30min to see if SSIS should be called or not.

We can use create SSIS package or stored procedure. Which one is better?

What kind of SQL statement is needed? Specially interested about how to check if timestamp is today and how to handle return value logic.

I would like to check:
-IF ETL_started_value (datetime) is not NOT NULL
-IF ETL_finished value (datetime) is TODAY
-IF ETL_result is 1 (smallint)
If all criteria is OK-> call SSIS, which includes Business Logic
If not all criteria is OK- Do nothing and Job Task will try again aftern 30min.

THIS IS OUR TABLE AND ANOTHER ETL TOOL MAKES UPDATE TO IT:
CREATE TABLE [dbo].[ETL_status](
             [ETL_started] [datetime] NOT NULL,
             [ETL_finished] [datetime] NULL,
             [ETL_result] [smallint] NULL,           
 ) ON [PRIMARY]
GO


Kenny_I

System start time variable issue

$
0
0

Hello Everyone

I have use system start time variable for my flat file name. I changed expressions for  connection string for my flatfile connection, so it will take system time in file name.

Now if i see connection string, it has exact time as system time variable has, but when i execute the task, it takes time when i am running that task...

How can that happen? In past, i have used exact scenario and it worked fine, but somehow in this task, i am getting this issue.

Please help

Thanks

Here is string for start time variable:

RIGHT("0" + (DT_STR,2,1252)DATEPART("MM" ,@[System::StartTime]), 2) + RIGHT("0" + (DT_STR,2,1252)DATEPART("DD" ,@[System::StartTime]), 2) +  (DT_STR,4,1252)DATEPART("YYYY" ,@[System::StartTime]) + "_"
+ Right("0" + (DT_STR,4,1252) DatePart("hh",@[System::StartTime]),2) + "" + Right("0" + (DT_STR,4,1252) DatePart("n",@[System::StartTime]),2)  +""+ Right("0"+ (DT_STR,4,1252) DatePart("ss",@[System::StartTime]),2)

Output of the data profiling task (xml data) load into SQL Server

$
0
0

Hi,

In my source table how many number of the null values is therer I want to find out,for that one I'm using data Profiling(Column null ratio profile)  task.Now I want to load that null values into sql table.Can any one help to me regarding to this issue.

Viewing all 24688 articles
Browse latest View live


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