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

SSIS Loop Condition For or For Each loop

$
0
0

Hello..

I have a scenario where i have a table like below and trying to use for loop untill the Status is Y and want to assign the date to variable when the first instance of Y occurred (ordering the data on date desc) really appreciate any help!

DateStatus
11/28/2016Y
11/29/2016Y
11/30/2016N
12/1/2016N
12/2/2016N


How to split Excel file data into 30:70 ratio into two seperate excel file.

$
0
0

Hi,

I have a excel file having some data and want to generate 2 different excel file having data into 30:70 ratio of original data.

How we can do this using SSIS ?

Example: I have Excel file A - 100 Record.

and want to generate 2 different excel B and C using Excel - A.

Excel B - should be 30 record

Excel C - should be 70 record


Regards, Bijay Maurya

SSIS 2014 - Export to CSV file UNICODE - UTF8

$
0
0

Hi,

I have an SSIS package to export to csv file from SQL Server 2014 database the following columns structure (in the database):

- Prénom nvarchar

- Région nvarchar

- Tél nvarchar

The problem is that when i export with code page : UTF8 - 65001 i have a problem with accent and special character as following:

Even when i set "DefaultCodePage" in the OLEDB source to "65001" and set the property "AlwaysUseDefaultCodePage" to True, i have the same problem of accent and special character

When i check UNICODE

i have all the information in one column in the file generated (i use semicolon {;} as column delimiter)

I heard that Unicode encoding with BOM and BigEndian = true, force Excel to separate in column in place of putting it in one column but i don't see how to set that in SSIS

SO how can i solve such problem either csv formatting in UNICODE or special character with UTF8.

Kind Regards,

Mohamed Ridha



In Sql Server 2014 Integration Services, how do I code for Row_number since Over is not supported

$
0
0
Is there ANSI code which will provide sequential row numbers?

Sandy Shin

SSIS SharePoint List Source : how can we use variable in camlquery

$
0
0

Hi,

I have SSIS solutionthat  that works with the component SharePoint List Source component.

Iit works fine when the query in CamlQuery is fixed string.

I want to write a caml query with a variable, it seems it doesn't work?

How can I do that?

  Thanks in advance.

Best regards

Bachir


Where can get sharepoint 2016 list adpater, I try to use Sql server 2012 SSIS to connect share point 2106

$
0
0

I try to use Microsoft sql server 2012 to retrieve data from sharepoint 2016, but I don't have sharepoint 2016 list adapter.

where can get sharepoint 2016 list adpater

test build cant convert strings, prod can, both built from same source

$
0
0

Hi we run 2012 enterprise.  Except for the following differences, my sub package's dtsx files are identical in test and prod.   The question is how the same source dtsx built in two different environs can act differently as explained below? 

The production sub package runs without issue.  The test appears to come down because it claims it cannot convert a handful of columns from Unicode to non Unicode in its 6th component which is a dataflow.

The component with the issue has delay validation=true and merges a raw file with a db2 source outputting a raw file.   I could be wrong but I don't believe the raw file was there at package validation.  But I do see it was there when the job went down.  I will try to prove that with environ variables etc it was able to see the raw file when it started running. 

XML Differences:

1) as you would expect guids are assigned differently in a number of places

2) sometimes the same xml code extends to more than one line in one or the other environ

3) one of my conn strings has extra stuff like an app name in prod, but not test

4) one of my pkg vars seems to have partially different xml code in the middle of the tag as follows and may be related to an event handler

dwd:BoundingLeft>1000</dwd:BoundingLeft><dwd:Layout><dds>
dwd:Layout><dds>

5) an object whose purpose I don't know but whose default layout is Microsoft...graphlayout100 has these slight differences in the middle of the tag

nextobject="7"...x="33708" y="17304"
nextobject="5"...x="33232" y="17304"  

6) an object whose name I'd have to look back at has these different binary values

<ddsxmlobjectstreamwrapper binary="01010000900180380100065461686f6d61" />
<ddsxmlobjectstreamwrapper binary="01000000900144420100065461686f6d61" />  

7) presumably from the same object, these look drastically different

<ddscontrol controlprogid="DdsShapes.DdsObjectManagedBridge.2" tooltip="Execute SQL Task" left="2223" top="3016" logicalid="3" controlid="1" masterid="0" hint1="0" hint2="0" width="3598" height="1164" noresize="0" nomove="0" nodefaultattachpoints="0" autodrag="1" usedefaultiddshape="1" selectable="1" showselectionhandles="1" allownudging="1" isannotation="0" dontautolayout="0" groupcollapsed="0" tabstop="1" visible="1" snaptogrid="0"><control><ddsxmlobjectstreaminitwrapper binary="000800000e0e00008c040000" />

<ddscontrol controlprogid="DdsShapes.DdsObjectManagedBridge.2" tooltip="Failed to lock variable "ETLBatchId" for read access with error 0xC0010001 "The variable cannot be f..." left="926" top="-186" logicalid="3" controlid="3" masterid="0" hint1="0" hint2="0" width="3598" height="1164" noresize="0" nomove="0" nodefaultattachpoints="0" autodrag="1" usedefaultiddshape="1" selectable="1" showselectionhandles="1" allownudging="1" isannotation="0" dontautolayout="0" groupcollapsed="0" tabstop="1" visible="1" snaptogrid="0"><control><ddsxmlobjectstreaminitwrapper binary="000800000e0e00008c040000" />


error 0xC001001C: While using SPS List source reg,.

$
0
0

Hi,

I am using SPS list source for loading data from SPS List to SQL table. But upon execution of the pack i am getting the below error. And not getting any help on net. Please help if any one knows the solution. - Thank you!

Error1 Microsoft.SqlServer.Dts.Runtime.DtsRuntimeException: The package failed to load due to error 0xC001001C "The object "%1" references ID "%2", but no object in the package has this ID.  If the object "%1" was added to the package by a manual edit ensure that the referenced object with ID "%2" is also added to the package.". This occurs when CPackage::LoadFromXML fails.   ---> System.Runtime.InteropServices.COMException: The package failed to load due to error 0xC001001C "The object "%1" references ID "%2", but no object in the package has this ID.  If the object "%1" was added to the package by a manual edit ensure that the referenced object with ID "%2" is also added to the package.". This occurs when CPackage::LoadFromXML fails.       at Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPackagePersist100.LoadPackageFromXML(Object vSource, Boolean vbSourceIsLocation, IDTSEvents100 pEvents)    at Microsoft.SqlServer.Dts.Runtime.Package.LoadFromXML(String packageXml, IDTSEvents events)     --- End of inner exception stack trace ---     at Microsoft.SqlServer.Dts.Runtime.Package.LoadFromXML(String packageXml, IDTSEvents events)     at Microsoft.SqlServer.Dts.Runtime.Project.LoadPackage(IProjectStorage storage, Package package, String streamName, IDTSEvents events)     at Microsoft.SqlServer.Dts.Runtime.PackageItem.Load(IDTSEvents events)     at Microsoft.SqlServer.Dts.Runtime.PackageItem.get_Package()     at Microsoft.DataTransformationServices.Project.DataTransformationsProjectBuilder.IncrementalBuildThroughObj(IOutputWindow outputWindow)     at Microsoft.DataTransformationServices.Project.DataTransformationsProjectBuilder.BuildIncremental(IOutputWindow outputWindow)00


--------------------------- Radhai Krish | Golden Age is no more far | --------------------------


Problem With DataFlow SSIS - Column cannot be found.

$
0
0

Good morning,

I am hoping i can seek some expert advice as i'm struggling with one of my SSIS dataflows. I am relatively new to SSIS so please excuse my terminology :).

Basically I have a parent package that calls a subpackage that contains multiple dataflows, however one specific dataflow within this subpackage is failing when ran from the SQL Server Agent which calls the parent package. The package is an OLEDB Source and OLEDB Destination data transfer.

The error is "column "column name" cannot be found at data source". Now the thing that is puzzling me is that the column it's mentioning isn't even mapped in the dataflow, and doesn't exist in the source or destination tables. So it's not even being picked up in SSIS which is correct as it doesn't exist. Is there a reason why the package would be looking for this column? 

The other thing that's puzzling is that the dataflow will run within the SSIS subpackage if i run the data transfer manually within the dataflow.

I've tried recreating the dataflow and remapping/redeploying, but unfortunately this hasn't fixed the problem.

Any assistance would be greatly appreciated.


Script Component fails on first attempt

$
0
0

Hi guys,

I have an SSIS package the contains a script component. However, each time I run the package the script component throws an error on first attempt but if I run it the second time, it will run successfully.



Please I need assistance with this.

Thanks


me

Where can we download(install) DTEXEC.EXE from to run dts packages?

$
0
0
Where can we download(install) DTEXEC.EXE from to run dts packages?

Lookup Transformation issue

$
0
0

Hi,

I'm hoping someone can assist with an issue I'm having in SSIS 2008.  I'm trying to update the SQL statement in a Lookup Transformation but no matter what I do the changes I make aren't saved.  I can't figure out why this is happening.  I've taken the package over from a developer who left the company, so I don't know the ins and outs of what he's developed.  He does have a lot of script tasks in the SSIS package but I don't see anything that would set this SQL statement.

If you have any idea where to look or how to figure this out I'd be extremely grateful!

Thank you,
Kevin

Any way to change SSIS Default column delimiter forever?

$
0
0
I have a ton of files that get purged and then rewrote through some SSIS data flows. Whenever the files are purged all the column delimiters that I've set to Pipe delimited, switch back to comma delimited and write my files in the wrong format. Thus requiring me to return to the package monthly and re-update the column delimiter from (comma) to (pipe) for ALL my tables. Is there a way to just always have it be (pipe delimited) instead of (comma). Thank you

read committed snapshot isolation question

$
0
0
Hello Everyone, how r u?

Guys, i have a ETL that runs every each five minutes and load
approximately 190 thousands lines, this is like monitoring in QlikView.. So, i wanna know how is the best way to dont give any lock for update, insert, select or delete in production.. I just need an idea because i'm monitoring all Brazil with our WMS System.. Anyone here can help me with any idea? Thank u guys..

Rafael Marvila IT Profissional

Azure Virtual Machine as datasource

$
0
0

Hi

Whar steps do I need to take to define a SQL Server on Azure Virtual machine as a datasorce?


Lars Wärvik


Retrieve specific cell value from Excel into SSIS variable

$
0
0

Hi all,

I'm experiencing a very frustrating issue. I am using the guide below to read a cell value in Excel into a SSIS variable;

http://www.techbrothersit.com/2013/11/ssis-read-excel-cell-value-in-ssis.html

It works very well for anything but a cell that has a date in it! I have tried to change the data type of the SSIS variable to everything possible but it still doesn't work, and I keep getting this error message;

An error occured while assigning a value to variable "ValuationDate": "Unsupported data type on result set binding 0"

The cell I am trying to read is B4, and the SQL Statement I am using in the Execute SQL Task isSELECT * FROM [Sheet1$B4:B5]. I am happy this is correct because if I change the value in B4 to anything that isn't a date, it works.

Please help!!

Explicitly Stop SSIS Package Execution

$
0
0

Hi,

I have one SSIS Package, which have four Execute SQL task in Sequential manner. This Package generally takes 10 minutes to execute. I have one scenario that, If ssis package takes more than 15 minutes to execute, then it should stop(Stop SSIS package execution.).

Thanks in Advance.

Not able to execute SSIS Catalog package through SQL job

$
0
0

Hi All,

I am facing an issue calling SSIS Cataloog package through SQL job.

The ETL has steps to move files from one location other location(between server), the ETL runs fine when calling directly in the SSIS catalog but through job it is faling with below error:

"An Error occurred with the following error message: "Access to the path is denied".

Appreciate your help.

Thanks,

Ram.


Please don't forget to Marked as Answer if my post solved your problem and use Vote As Helpful if a post was useful. It will helpful to other users.

Error when executing SSIS package in SQL server Agent

$
0
0

Hello,


I have a SSIS package created with a odbc connection to a Pervasive database.

My local machine has then proper odbc driver (32 bit) installed.  When running the package directly from Visual studio and directly from SQL server Management studio all is performing ok. Using the 32 bit runtime execution setting under the advanced options in Sql server management studio.

At the moment that I want to execute the package using SQL Server Agent I'm getting errors.

Below are the reports I'm getting:

Data Flow Task 1:Error: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "SourceConnectionOLEDB" failed with error code 0xC0202009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.

R8_to_SqlServer:Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E09.
An OLE DB record is available.  Source: "Pervasive PSQL OLE DB Provider"  Hresult: 0x80040E09  Description: "Toestemming geweigerd.".
An OLE DB record is available.  Source: "Pervasive PSQL OLE DB Provider"  Hresult: 0x80004005  Description: "-4905: The application encountered a permission error".

I tried many options but non are working. What I do understand is that the main botlleneck is Pervasive

Hope that someone can help me!

CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER

$
0
0

Hi,

I have a SSIS package that runs ok when Im running from any desktop. (It works in BIDS and SSMS)

But when I log onto the server (with the same account) -  SQL Server 2008 R2 - I get an error

SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009

I get this on the server in BIDS, SSMS and when running from an agent job.

Any ideas what this might be?

Thanks,

Zoe

Viewing all 24688 articles
Browse latest View live


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