Showing posts with label SSIS. Show all posts
Showing posts with label SSIS. Show all posts

Thursday, July 23, 2015

How to pass multiple variables to the Arguments property of a Execute Process Task

  1. Right-click anywhere in the Control Flow window and select "Variables"
  2. Create whatever number of variables you will need to pass to your task
  3. Double-click on the Execute Process Task and open it in Editor
  4. Select "Expressions". On the right-hand side, click elipse to open Property Expressions Editor
  5. In Property dropdown select "Arguments", and in Expressions click on elipse and to open Expression Builder
  6. In expression window type your expression. (Example: @[User::Variable1] + " " + @[User::Variable2] + " " @[User::Variable3])
  7. When done click "Evaluate Expression" button then click OK to close the editor

Note: If variables you create are not of type String, you will have to cast them to String in your expression

Wednesday, February 26, 2014

SSIS Error : Failed to decrypt protected XML node "DTS:Password" with error 0x8009000B "Key not valid for use in specified state."

Error:Failed to decrypt protected XML node "DTS:Password" with error 0x8009000B "Key not valid for use in specified state.

Details: Error occurs after deploying SSIS package to another server

Cause:Incorrect package protection level specified - by default it is EncryptSensitiveWithUserKey
Solution:Change package protection level property to to EncryptSensitiveWithPassword, or EncryptAllWithPassword and provide the password

Friday, February 21, 2014

SSIS Error Code DTS_E_OLEDB_NOPROVIDER_64BIT_ERROR

Error: SSIS Error Code DTS_E_OLEDB_NOPROVIDER_64BIT_ERROR. The requested OLE DB provider OraOLEDB.Oracle.1 is not registered -- perhaps no 64-bit provider is available.

Details: Error occurs when attempting to run a SQL Agent job that runs SSIS package that opies data from Oracle to SQL Server

Cause:64 bit OLE DB provider Microsoft.Jet.OLEDB.4.0 is not installed on a 64-bit machine.
Solution:Run the SQL Agent job in 32 bit mode:
  1. Right-click on the job name and select Properties
  2. Go to Steps
  3. Select the step your job fails on and click Edit
  4. Select "execution optons" tab and check a "use 32 bit runtime" checkbox

Friday, February 7, 2014

[OLE DB Source [45]]: Cannot retrieve the column code page info from the OLE DB provider

Error: [OLE DB Source [45]]: Cannot retrieve the column code page info from the OLE DB provider. If the component supports the "DefaultCodePage" property, the code page from that property will be used. Change the value of the property if the current string code page values are incorrect. If the component does not support the property, the code page from the component's locale ID will be used.

Details: This error occurs attempting to view colmuns of an OleDB data source in a Data Flow task inside the Business Intelligence Development Studio, while attempting to do a data transfer between Oracle and SQL Server databases


Cause:It is actually only a warning that means that the data provider does not publish code pages used for text columns and also that SSIS does not do implicit conversions between Unicode and non-unicode strings

Solution:We can get rid of this warning by setting AlwaysUseDefaultCodePage property of the OLE DB Source Data Flow Component to True. It is set by default to False but can be changed easily from the Properties window in Business Intelligence Development Studio project.