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

Error promoting package connection to project level

$
0
0

I created a package having a cache transform that saves the data to disk. I updated the connection string using and expression that set  the connection string from a User scoped variable. Worked fine. I then promoted the connection manager to project level - no problems, worked fine.

This was developed using the VS2010 SSIS (Shell) that is distributed withe SQL Server 2012. I then upgraded VS2010 from Shell to Professional (to get TFS access), VS2010 is now Professional at SP1 level. When I load the previously created package, I get errors on the connection manager indicating that the User scoped variable cannot be found. Looking at the variables window, the variable exists. After chasing this down, I discovered that only PROJECT scoped variables are available in the PARAMETER editor and the EXPRESSION editor for a project level cache connection manager.

I was setting the connection string from a user scoped variable because expressions are available (and are not available for project scoped parameters).

Is this a bug?

Thanks


Null Values while loading the Excel file to the table

$
0
0

Hi,

Loading the excel file to the table using SSIS 2005.

Excel file contains the below columns and values

DateRoutineDaysCountCntNumber
1/11/13XYZ377987
1/11/13 XYZ43987
1/11/13 XYZ54987
1/11/13 XYZ64987
1/11/13 XYZ799987

ISsue:

When tried to load the file, it load the column"CntNumber" as NULL values.

But if we open the excel file, double click on the column "CntNumber" , save it and execute the package, it successfully loaded.

Dont know the exact cause...

Please advise me how to solve this issue?

Regards

SqlStud

FOR EACH ERROR "User::order_ref" differs from the current variable type.

$
0
0

Hi All

I need your help in SSIS ForEach task

I'm have one some rows from SQL and i need to process them one by one.

what i want that it should take first row and processed it then take second row processed it and so on.

during updating tbale i get error

[Execute SQL Task] Error: Executing the query "Update Input_Account_FPROT
set ORDER_URL='https://..." failed with the following error: "No value given for one or more required parameters.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

and on FOR EACH I GET THIS ERROR.

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

kindly suggest something needful.

Script that copy a file from a Sharepoint site

$
0
0

Hello,

I need some help, I'm trying to create an script that connect to a Sharepoint site and copy a file to other folder in the sharepoint site, is that proper in VB?

Or download the file to the server and then upload it to the new folder?

I appreciate your help

Thanks

getting errotr obeject refernce not set to an instance of an object . duing Edition on any of the task

$
0
0

Hi Friends

When i Edit any of task in SQuence Container it return me error.

like;


Even my package has no error but still i get build ERROR when i  hit F5.

 Unexpected build error: Access to the path 'C:\abc\PkgPacketFormulation\Integration Services Project1\Integration Services Project1\bin\Deployment\CallBackSchedule.dtsx' is denied..  Make sure that the product is installed properly. 

kindly help me to resolve this issue.

With Regards

BI_Group

How to zip multiple backup files into different archive files

$
0
0

Hi All,

i am using visual studio 2008 .My scenario is multiple backup files  zip into individual archives.its like(1.bak,2.bak,3.bak into 1.zip,2.zip,3.zip) . i am using winrar.

i have done with execute process task .I used for each loop enumerator in that

collection-File enumerator

sourcepath is - C:\Database backup and File is *.bak  Fully qualified

In variable mapping -FileName

After that i took execute process task in for each loop.In that Executables - C:\Program Files\WinRAR\WinRAR.exe

For Arguments I used expression in that -----  "a "+ @user::filename + ".zip"

My source and destination folder is same

its giving result like different zip files.But the problem is For 1.bak  its zipping correctly 1.zip.  For 2.bak it is zipping 1.zip file and 2.bak file and For 3.bak it is zipping 1.zip,2.zip and 3.bak files .

 Now i want to use seperate source path and destination path.

Can Any one help Detailed Way.

Thanks in advance


solution file...

$
0
0
I saved  capoul of ssis packeg solution file but i could'nt see .xln  file..
Where should i find in operating system files.

SSIS Package terminates without even finishing PackageEnd Entry to sysdtslog90

$
0
0

Hello All,

This has happened second time in our production env. There is SSIS package which reads from AS400/DB2 and writes into SQL Server using Data Flow task.

Recently this package failed with following error message:

Executed as user: NA\sqlagent. Microsoft (R) SQL Server Execute Package Utility  Version 9.00.5000.00 for 64-bit  Copyright (C) Microsoft Corp 1984-2005. All rights reserved.    Started:  9:34:33 PM.  The return value was unknown.  The process exit code was -1073741819.  NOTE: The step was retried the requested number of times (1) without succeeding.  The step failed.

Also, when this happened, i was trying to check entry in Sysdtslog90 and found that SSIS even did not try entry in log table about what error it encountered.


Merge Unique Excel Row

$
0
0

Hi I am using VS 2008. I am trying to combine a set of unique company id's from an excel connection to rows from a sql table.

I have

But this comes out like.

Name(sql)----------------Description(sql)---------company_id(excel)

AP-----------------aaaa bbb-------------null

GL-----------------vvcc sss-------------null

null---------------null------------------18

null-------------null--------------------19

null------------null--------------------20

When I want.

Name------------description------company_id

AP---------------aaa bbb--------18

gl----------------vvcc sss-------18

AP---------------aaa bbbb-------19

gl----------------vvcc sss-------19

ap---------------aaaa bbb-------20

gl----------------vvcc sss-------20

Perhaps each company_id needs to be put in a variable or there is another solution. Not sure I am stuck and can't think of way top do this, any help would be appreciated.

This error is thrown by Connections collection when the specific connection element is not found.

$
0
0

hi friends nwhen i run SSIS PAKAGE i get this error

I'm using ForEach loop vaiables ,script task, executesqltask

Data Flow Task 1: HttpRequest: The connection "{A0E02B68-7D11-42B1-A213-99F16D548718}" is not found. This error is thrown by Connections collection when the specific connection element is not found.  

kindly help to resolve this.

Thanks

WithRegards

BIGroup

SSIS mail task activation

$
0
0

Hi Friends

I need to activate Mail from SSIS.

What is the requirement of this?

From where i can start ?

please help is there any kind of service activation it need from mail server if yes then kindly let me know?

thanks

With regards

BI_Group

pass QueryString on Web.

$
0
0

hi

If I need to send Post Query On Web how can i achieve this task.?

I have one Query string .

https://secure.f-prot.com/keyportal/cgi-bin/keyportalorder.pl?u=all&p=tfdsTAdhN&product_id=1&number_of_u=3&type=1&length=d&partner_id=2932&order_ref=16&account_reference_name=audney&account_reference_value=trudith'.

i just send this Information to Web.

Kindly help friends

BI_Group

SSIS Maintenance Plan - how to configure SelectedDatabases?

$
0
0

I was trying to build a SSIS Maintenance Plan where in I wanted to configure SelectedDatabases - I tried generating package configuration but could not see this property setting. Is that me missing to find this property or is this not possible?

Thanks

How to use SSIS to import multiple Access databases

$
0
0

I have a folder with more than 300 Access databases (written by a program over which I have no control). They all have the same structure, just a single table. I am importing the data into a table in SQL Server (2005). Using the import wizard works great, but it only works with one Access db at a time. The field names in the table on the SQL Server are the same as the ones in the table in Access and the datatypes match also. I have imported a couple of these databases as a test, and they work fine, but because I have so many, I need a way to do it more efficiently.

I have searched and searched for a way to do this, and I thought I was on to something using a Data Flow Task inside a ForEach Loop Container. However, I only see a way to do this with Excel files or flat files as sources.

Any help is greatly appreciated.

Confirm: SSIS 2008 Package with Script Task won't Run on a 2012 Server

$
0
0

I've been battling this for a long time.  I have a package built with 2008 with a script task.  The script task is set to run under .Net framework 3.5 (project properties inside the script task code).  This package will not run on a server with 2012 installed (under the legacy integration services service).  Actually, it does run if I execute the package from my local machine (pointing to the server), but it won't run directly on the server; it gives:

The component metadata for “Script Component, clsid {874F7595-FB5F-4OFF-9BAF-FBFF825OE3EF}” could not be upgraded to the newer version of the component. The PerformUpgrade method failed.

Creating a new 2012 style package and using the same code in a script component works fine.

It seems like maybe the old SSIS service is not able to run my script using the proper framework or something, but there's no way of knowing.  Is this scenario simply not going to work?




moving flat file to mssql 2008 .

$
0
0

Dear all,

i have an urgent request from my company to moving flat file DB with fixed length  to MSSQL .  the reqired is :

1 - moving al the data from flat file to  mssql 2008  .

2 - update the flat file with any insert & update & delete  in mssql .

3-  update mssql  with any insert & update & delete  in   the flat file .

can i have a plan and how i will do it . it looks like a replication to me .  is ssis the best sulotion for that and how ?

and what is the best bractice for that .

regards,,

The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

$
0
0

hi friends

I'm getting this error ;

Error: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.WebException: An exception occurred during a WebClient request. ---> System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
   at System.IO.Path.SafeSetStackPointerValue(Char* buffer, Int32 index, Char value)
   at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck)
   at System.IO.Path.GetFullPathInternal(String path)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
   at System.Net.WebClient.DownloadFile(Uri address, String fileName)
   --- End of inner exception stack trace ---
   at System.Net.WebClient.DownloadFile(Uri address, String fileName)
   at ST_9f5963403da84ddf81bea1505dd025b1.csproj.ScriptMain.Main()
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
   at Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTATaskScriptingEngine.ExecuteScript()

kindly help me why it can come ?

With Regards

BI_Group


SSIS defaulting seconds to 00 and rounding to nearest minute when converting string to datetime

$
0
0

Hi

I have an SSIS 2008 R2 package that gets data from an intersystems cache database and inserts it into an SQL database. The cache table contains some time fields in the format hh:mm:ss and in order to get this into a datetime field in SQL 2005, I have done some transformation and conversions to it.

The problem I am getting is that the seconds is defaulting to 00 and the minutes is being rounded up/down based on what the original seconds value was.

e.g: Original time field in cache: 18:14:33

       Destination field in SQL showing: 01/01/1900 18:15:00

These are the steps I'm taking in my package:

  1. Selecting my cache data using ADO.net data source component
  2. converting the time fields to string (length 8) using Data Conversion component
  3. using Derived Column component to add 1900-01-01 (length 19) so that I can insert the time into a datetime field in SQL
  4. converting the string back into a Date type using the Data Conversion component (data type used is date [DT_Date])
  5. inserting into ADO.net destination (sql 2005 table)

I dont get any errors and the package runs fine but the only issue I have is that the seconds in the time part is defaulting to 00 and rounding up/down the minute when I need to actual seconds from the source table.

How can I get this to work so that my destination field displays '01/01/1900 18:14:33' instead of  '01/01/1900 18:15:00'?

Thanks for your help

Rob

SSIS Configuration Files

$
0
0

Hi

I have option to add config files at different places.

1) When designing the SSIS package config file can be added inside the pacakge

2) When deployed in SSIS (SQL Server storage) and executing the package there is tab for configuration file

3) when creating job to execute the package (either file system or SQL server storage) i see another config file table in stpes of the job.

Suppose i am adding config files in all 3 locations which one will overwrite which?


Ravi.S Chennai, Tamil Nadu, India

Transactions and errors management

$
0
0

I have two different problems, both related to transactions. Although the use-cases are basic, I can't find simple solutions.

Before somebody suggests using RetainSameConnection = true and manual BEGIN TRAN / COMMIT / ROLLBACK, this is NOT a solution because my data flow requires multiple connections and SSIS will NOT satisfy my RetainSameConnection demand.

[1] Is it possible to exclude a read-only connection manager from transactions?
I ask because I have a connection manager that cannot enlist into DTC -- and doesn't need to. But it makes make package fail.
Current solution is to use two data flows, one for reading (no tx), one for writing (inside a tx) and pass the data around into a raw file. This is ugly and inefficient.

[2] Inside my transactional flow, I would like to log error rows into a special table for further error analysis. This seems a basic requirement to me but it turns out to be hard to do. The DTC seem to be all-or-nothing, so if I redirect error rows to a DB destination, they are enlisted into the transaction and rolled back after the failure of the data flow.
Possible solutions could be: use another connection manager outside the DTC if possible (same as [1], seems impossible); or exclude a destination task from the DTC (also seems impossible).
Only solution I see: write the errors into a non-transactional destination (i.e. raw file) and save them later after the rollback. Like one [1] this is ugly and inefficient.

What is the recommended/right way of doing this?

Viewing all 24688 articles
Browse latest View live


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