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

Use custom DLL in SSIS Project

$
0
0

Hi All ,

To use the my custom DLL in SSIS project 2008 i run Assembly.LoadFrom(dllFilePath) in first Script Task of the project.  Then the custom DLL located on local Disk it works fine, but if i deploy SSIS project to production server and path of the dllFilePathcontains server name like this "\\fscl\SSIS\..." i get Error message of permission for using system dll's like System.Data.OracleClient or FileIO :

Request for the permission of type 'System.Data.OracleClient.OraclePermission,System.Data.OracleClent, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

or:

Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Does anyone have any idea how can i solve it or how use the custom DLL of SSIS project in other way ?

Thanx , Evgeniy



Checkpoint SetUp in a package- Pls help me to set Properties

$
0
0

Hi guys,
    I have a package which contains Individual tasks and a Sequence container which contains few tasks inside it.

Now, I want to add CheckPoint feature into the package. 

In the Package propertied.I have set up the 1) CheckPoint file name, 2) checkpoint usage and 3)SaveCheckpoints=True options.

Now,my query is , what  should I select for the 
  a) Sequence Container properties FailPackageOnfailure and FailParentOnfailure
  b) Individual tasks inside the sequence container properties FailPackageOnfailure and FailParentOnfailure
  c) Individual tasks outside the sequence container properties FailPackageOnfailure and FailParentOnfailure

Your help would be greatly appreciated.



The XML Source was unable to read the XML data. DTD is prohibited in this XML document.

$
0
0

I have very simple XML source and OLE DB Source in Foreach Loop Container, but seem to get error. Likely because of XML or XSD. Error happens no matter if I use XSD file created by me or If I try to let SSIS to create XSD.

[XML Source [35]] Error: The XML Source was unable to read the XML data. DTD is prohibited in this XML document.
[SSIS.Pipeline] Error: XML Source failed the prepare phase and returned error code 0xC02090E7.

XML:
 <?xml version="1.0"?>
 <Root>
 <Customer xmlns="CustomerXSDSchema">
         <CustomerName>Microsoft</CustomerName>
         <CustomerNumber>1</CustomerNumber>
  <CustomerCountry>USA</CustomerCountry>
 </Customer>
 </Root>

 XSD:
 <?xml version="1.0"?>
  <xs:schema xmlns:schema="CustomerXSDSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema">

 <xs:element name="Customer">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="CustomerNumber" type="xs:string"/>
        <xs:element name="CustomerName" type="xs:string"/>
        <xs:element name="CustomerCountry" type="xs:string"/>    
    </xs:sequence>
    </xs:complexType>
 </xs:element>

 </xs:schema>


Kenny_I

Derived column question with ISNULL

$
0
0

I have very simple requirement. I would have done this at the query level. Just wanted to learn how to do it in SSIS also

CASE WHEN MiddleName IS NULL THEN FirstName + ' ' + LastName ELSE   FirstName + '  ' + MiddleName + ' ' + LastName END AS FullName

Just wanted to check how i can use ISNULL in derived column  to build new column

Regards


Smash126

CheckPoint is not working properly with Parallel tasks - Please help!

$
0
0
Hi,

I have a sequence container which has 3 SQL tasks in parallel. I have enabled the CheckPoint option. Assume, when I execute the package, two tasks executed successfully and one task fails, then in the  next time execution, all the tasks are running, which I dont want. I want only the failed task to rerun.  I dont want to make them as sequential becuase of the time contraint.

Am I doing anything wrong or Is there any setting where I can change to get the things done?

Thanks in advance!

Dynamically Create New XML Files For Each Record in SSIS

$
0
0

Hi

I have a requirement ( Please see below: )

I have a table with set of records in it , including columns like ID, Firstname, Lastname. There are 6 ID's in that table.

I have created an XML output  based on XML Auto functions , and i can see the XML in SSMS .

My requirement is , to create an XML file based on that table . And when it creates, i need to get 6 different XML files based on ID's . I want to try it using SSIS For each Loop Container .

Please guide me on this . I am new to SSIS .

Checkpoint with ForEach loop containers does not work properly. Pls help

$
0
0

Hi,

    I have a package with a ForEach Loop container with File Enumerator. I have the Checkpoint enabled.

Assume, there is a folder with 10 files and the the packages fetches the 9 files correctly and loading into the table.When it fetches the 10th file, due to some error it fails. So, when we execute it secod time, it should fetch only the failed file, bit instead it is taking all the files again.  

Should I change any setting?   Please dont say why cant I archive the files once its is loaded. My client does not want that.

I googled and found an old article says, "It is not possible to use checkpoints within the For Each Loop and the For Loop containers. This is because SSIS does not keep track of the number of iterations the loop has gone through during processing"

I am using SSIS 2012. Does the problem exist for this version also?

sql task that calls sp_send_dbmail succeeds when run by itself but not when transaction on other tasks are rolled back

$
0
0

I have a SQL task that is connected to a container.  Within the container I have tasks that if they fail, the transactions they are part of are rolled back.  The SQL task that is outside the container is set to Transactions = Not supported, so shouldnt it disregard the transaction state of the task its connected to (the container) ?


Next task wont start

$
0
0

Have a script task followed by sql task.  The sql task is not starting.

I explicitly fail the script task with Dts.TaskResult = Dts.Results.Failure

So then I set the constraint connecting the script task to the sql task as to evaluate on failure.

However, the sql task never gets hit?

What could I be missing

Running the SSIS Package Using the Task Scheduler

$
0
0

Hi,

I want to schedule and run the SSIS package using the Task Scheduler using Batch Script.

Here in Batch script I need to mention the current running account credentials as our credentials frequently changing.

Can anyone provide the steps and Batch Script.

Thanks in Advance

Regards,

Avis


SSIS Project Created in VS 2008 and opened in VS 2010 and it is conveted.How can we open with VS 2008 again?

$
0
0
 

Hi ,

Iam working on SSIS project created on VS 2008. I opened the Solution using VS 2010 and it was converted.When i tried to open it with VS 2008 it throws the error as"cannot be opened from source control because it was created by a version of Microsoft Visual Studio that is incompatible with this one.
If this is the case, you may be able to open it from source control using that version of Microsoft Visual Studio, and then use Microsoft Visual Studio to open the local copy." How can i open the solution using VS 2008 instead of VS 2010. Any help is appreciated

Variable SourcePath is used as source or destination and is empty - Case two File System Tasks in Foreach Loop Container

$
0
0

I have Foreach Loop Container.
I have XML source and OLE DB Destination.
I'm using DelayValidation in Container as I don't know specific file names in source folder.
So far so good. XML files are imported correctly to the database.

Next step is to archive file to "Success" or "Failure" folder.
I have 2 file system task. One for Success and another for Failure. Files are moved to destination folder.

It seem like Execute is running succesfully, but always another File system task is marked as error with code "Variable SourcePath is used as source or destination and is empty"
There is no error if I have only 1 File system task, but error occures if I have Success and Failure File System Tasks.

How to fix?


Kenny_I

How can we a validate a CSV file in SSIS and log the error details in another CSV File by using Sript Task.

$
0
0
How can we a  validate a CSV file in SSIS and log the error details in another CSV File by using Sript Task.

How to execute SQOOP.cmd file from SSIS execute process task?

$
0
0

How to execute SQOOP.cmd file from SSIS execute process task?

What is argument need to be prefixed in the arguments property

Executable: C:\Hadoop\sqoop-1.4.2\bin\sqoop.cmd

Arguments: /C"sqoop import -connect "jdbc:sqlserver://mysystem:1433;database=test;username=myuser;password=mypwd;" -table emp  -target-dir /user/emptable -m 1"

Thanks
Durga



Buffer Type 1 had a size of 0 bytes on cache transform

$
0
0

Hi,

         I am getting the following error when I execute the package:
[Connection manager "I_Cache"] Error: Buffer Type 1 had a size of 0 bytes.

What is happening is there an excel source feeding the data to cache transform. I have tried with delay validation true, but could not success. 



Flat file Source to Destination with out column Headers.

$
0
0

Hi Guys,

Version 2008 R2

I have Flat file Source in the below format.(No Headers)

A,BBB,10

B,BBB,20

Flat File Destination in the Below Format.(No Headers)

A,BBB,10

B,BBB,20

It works as expected, Moving 3 columns data as expected (Source/Destination column length are (1,3,2) String)

Now My source data  have an issue

A,BBB,10,20

I expect my flat file source to throw an expection but it moves data without any issue, how can i make my source to throw exception as the final column length is not as expected??

Regards,

Navin





Navin.D http://dnavin.wordpress.com


How can convert the Data in derived column DT_STRING TO Datetime in Destination table field datatype IN SSIS ?

$
0
0

In a data flow,

Transform data  the Table to Table

Source

--------------------

DOB(Data type:DT_STRING in SSIS,varchar(50) in SQl server)

---------------------

09071984

---------------------

Above DOB should transform other(Destination table)like below data type..,

DOB( Data type:??? in SSIS, datetime in SQL server)

---------------------

?????

---------------------

I tried by using derived column ::

(DT_DBTIMESTAMP)(SUBSTRING([Copy of p_dob],5,4) + SUBSTRING([Copy of p_dob],3,2) + SUBSTRING([Copy of p_dob],1,2))

but error: [Derived Column [8277]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "component "Derived Column" (8277)" failed because error code 0xC0049064 occurred, and the error row disposition on "output column "dob" (14038)" specifies failure on error. An error occurred on the specified object of the specified component.  There may be error messages posted before this with more information about the failure.

[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "Derived Column" (8277) failed with error code 0xC0209029 while processing input "Derived Column Input" (8278). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.  There may be error messages posted before this with more information about the failure.

Can help Data conversion/Derived Column expression ::??

Thanks

-MADHU

saving a csv as unicode appears to insert double quotes

$
0
0
Hi I see some posts about this but none quite address what I see.  When I save a csv as unicode with pipe delimeter, cols with double quotes (symbol for inches in my item #s) appear to turn into double double quotes and there seems to be one double quote inserted at the beginning of the column value as well.  Does anybody know how to avoid even having this occur in the pipe delimited text file? 

Oracle giving Block corruption errors when using CDC for sending the data to SQL Server 2012

$
0
0

Hello Friends,

We are facing an error while using CDC with Oracle. It is a "Block corruption" error, which indicates at some level of data corruption. We ran RMAN validate command to scan the database for corruption but it returned with no errors, however he Alert Log in Oracle is still coming up with the following error. Has anyone experienced this error when using Oracle Standard Edition and SQL 2012 ?

Trace file e:\app\pulse-ad\diag\rdbms\orcl\orcl\trace\orcl_ora_5992.trc

Oracle Database 11g Release 11.1.0.7.0 - 64bit Production

Windows Server 2003 Version V5.2 Service Pack 2

CPU                 : 4 - type 8664, 4 Physical Cores

Process Affinity    : 0x0000000000000000

Memory (Avail/Total): Ph:6782M/24575M, Ph+PgF:12203M/30844M

Instance name: orcl

Redo thread mounted by this instance: 1

Oracle process number: 151

Windows thread id: 5992, image: ORACLE.EXE (SHAD)

 

 

*** 2013-12-12 03:04:33.655

*** SESSION ID:(1281.3832) 2013-12-12 03:04:33.655

*** CLIENT ID:() 2013-12-12 03:04:33.655

*** SERVICE NAME:(orcl) 2013-12-12 03:04:33.655

*** MODULE NAME:(xdbcdcsvc.exe) 2013-12-12 03:04:33.655

*** ACTION NAME:() 2013-12-12 03:04:33.655

Lost-write detected for sequence 70856. The lost-write starts occurring in block 11193. The current block being validating is 12930.

Block dump of the first lost-write block:

Flag: 0x1 Format: 0x22 Block: 0x00002bb9 Seq: 0x000114bf Beg: 0x94 Cks:0x68ee

Dump of memory from 0x0000000598D06C00 to 0x0000000598D06E00

598D06C00 00002201 00002BB9 000114BF 68EE8094  [."...+.........h]

598D06C10 00085BF1 0023BDA1 000DE19C 000DE19C  [.[....#.........]

598D06C20 0000000C 00000000 2209160A 5BF10000  [..........."...[]

598D06C30 3EB10502 00C0F5CA 0031BDA1 00010205  [...>......1.....]

598D06C40 02B22C6A 038A6D69 00000001 00000000  [j,..im..........]

598D06C50 4D554407 30373230 35BB0206 001100AE  [.DUM0270...5....]

598D06C60 0001040A 000D000E 038A6D69 56B25735  [........im..5W.V]

598D06C70 729C0003 E19C0001 000C0006 000D0006  [...r............]

598D06C80 02BB0502 00C0F5CD 0023BDA1 000A0002  [..........#.....]

598D06C90 00C00013 000000D0 00030201 56B25736  [............6W.V]

598D06CA0 03890001 00000000 00000000 002E0105  [................]

598D06CB0 FFFF0003 00C0F5CD 56B25736 3EB10003  [........6W.V...>]

598D06CC0 FFFF0024 0014000C 000C0018 00120014  [$...............]

598D06CD0 09CC0058 E75B0022 0009000F 00085BF1  [X...".[......[..]

598D06CE0 0024BDA1 000DE19D 000DE19D 0000000C  [..$.............]

598D06CF0 00000000 2309160A 5BF10000 3EB10502  [.......#...[...>]

598D06D00 00C0F5CD 0020BDA1 00010205 02B22C72  [...... .....r,..]

598D06D10 03900974 00000019 00000000 3030300A  [t............000]

598D06D20 33303030 06323132 AE35BB02 0B441100  [0003212...5...D.]

598D06D30 0001040A 000D000E 03900974 56B25736  [........t...6W.V]

598D06D40 729C0003 E19D0011 000C0006 000D0006  [...r............]

598D06D50 02BB0502 00C0F5CD 0024BDA1 00EA0002  [..........$.....]

598D06D60 00270016 000001FC 00032C01 56B25736  [..'......,..6W.V]

598D06D70 00000001 00000000 30393007 002E0105  [.........090....]

598D06D80 FFFF0003 00C0F5CD 56B25736 00000003  [........6W.V....]

598D06D90 FFFF0025 00140052 000C0018 00070035  [%...R.......5...]

598D06DA0 0003000A 00070003 0001001D 00030001  [................]

598D06DB0 00010001 00010001 00010001 00010001  [................]

598D06DC0 00010001 00010001 00010001 00010001  [................]

598D06DD0 00010001 00000001 00010001 00010001  [................]

598D06DE0 00010001 00000014 09720174 00000022  [........t.r."...]

598D06DF0 0009000F 00085BF1 0025BDA1 000DE19A  [.....[....%.....]

Block dump of the current block being validating:

Flag: 0x1 Format: 0x22 Block: 0x00003282 Seq: 0x000114c8 Beg: 0x0 Cks:0x312a

Dump of memory from 0x0000000598DDFE00 to 0x0000000598DE0000

598DDFE00 00002201 00003282 000114C8 312A8000  [."...2........*1]

598DDFE10 50424703 31303607 34353335 69745319  [.GBP.6015354.Sti]

598DDFE20 6E696C72 72502067 6375646F 4C207374  [rling Products L]

598DDFE30 4E206474 C3025650 0380013D 0457454E  [td NPV..=...NEW.]

598DDFE40 4E1E09C2 1E09C204 10C2024E 1E09C204  [...N....N.......]

598DDFE50 09C2044E C2024E1E 03C30510 021B0929  [N....N......)...]

598DDFE60 C3053DC3 0F192602 2602C305 C3050F19  [.=...&.....&....]

598DDFE70 0C1A6203 5102C105 C2041F4E 044E1E09  [.b.....QN.....N.]

598DDFE80 4E1E09C2 0410C202 4E1E09C2 1E09C204  [...N.......N....]

598DDFE90 10C2024E 2903C305 78071B09 011D0B71  [N......)...xq...]

598DDFEA0 BF020101 1FBF0215 4E018001 53014E01  [...........N.N.S]

598DDFEB0 0723002C 0B0C7178 0A3C3C18 30303030  [,.#.xq...<<.0000]

598DDFEC0 33373030 4D033337 47034255 36075042  [007373.MUB.GBP.6]

598DDFED0 38333936 4E113331 2065776B 74616C50  [693813.Nkwe Plat]

598DDFEE0 6D756E69 56504E20 0B0AC303 4E038001  [inum NPV.......N]

598DDFEF0 C2045745 0459512E 59512EC2 5253C203  [EW...QY...QY..SR]

598DDFF00 512EC204 2EC20459 C2035951 C3055253  [...QY...QY..SR..]

598DDFF10 1B092903 0B0AC303 3C04C305 C3053239  [.).........<92..]

598DDFF20 32393C04 4F08C305 C105114F 1F4E5102  [.<92...OO....QN.]

598DDFF30 512EC204 2EC20459 C2035951 C2045253  [...QY...QY..SR..]

598DDFF40 0459512E 59512EC2 5253C203 2903C305  [.QY...QY..SR...)]

598DDFF50 78071B09 01190A71 C0030101 C0034709  [...xq........G..]

598DDFF60 8001330A 4E014E01 002C5301 71780723  [.3...N.N.S,.#.xq]

598DDFF70 3C180B0C 30300A3C 30303030 33373337  [...<<.0000007373]

598DDFF80 42554D03 50424703 31304207 344C5131  [.MUB.GBP.B011QL4]

598DDFF90 6F725020 63657073 614A2074 206E6170  [ Prospect Japan ]

598DDFFA0 646E7546 64724F20 44535520 30302E30  [Fund Ord USD0.00]

598DDFFB0 04C30331 03800133 0557454E 5B1603C3  [1...3...NEW....[]

598DDFFC0 03C30521 04215B16 1F4004C3 1603C305  [!....[!...@.....]

598DDFFD0 C305215B 215B1603 4004C304 03C3051F  [[!....[!...@....]

598DDFFE0 031B0929 043304C3 4D245AC2 245AC204  [).....3..Z$M..Z$]

598DDFFF0 02C3054D 040A1A18 494002C1 1603C305  [M.........@I....]

 

*** 2013-12-12 03:05:07.984

** LOGMINER WARNING - Invalidated 6 LCRs **

Complete dump of first invalid START LCR follows:

++  LCR Dump Begin: 0x0000000532C004E0 - CANNOT_SUPPORT

     op: 255, Original op: 3, baseobjn: 0, objn: 233316, objv: 1

     DF: 0x00000002, DF2: 0x00000000, MF: 0x00000000, MF2: 0x00000000

     PF: 0x40000001, PF2: 0x00002000

     MergeFlag: 0x00, FilterFlag: 0x00

     Id: 0, iotPrimaryKeyCount: 3, numChgRec: 4

     NumCrSpilled: 0

     RedoThread#: 1, rba: 0x0114c8.0001c6ce.00d4

     scn: 0x0003.56b593be, xid: 0x0008.00c.00100d85, pxid: 0x0008.00c.00100d85

     ncol: 0newcount: 0, oldcount: 0

     LUBA: 0x3.c109c0.c.15.38f64

Thanks

Dee

Why does "Add Existing Package" make a copy of the dtsx?

$
0
0

How do we sync up dtsx files with Visual Source Safe? best practices?

Each team member needs to create .dtsx files and add to the same project.
When we do "Get Latest Version", other team member's dtsx files are obtained (which is good). But, when we do "Add Existing Package" in Business Intelligence Development Studio, it makes a copy of the existing dtsx file (Example, mypackage.dtsx becomes mypackage(1).dtsx ). Is there another way of adding existing .dtsx files?  

Viewing all 24688 articles
Browse latest View live


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