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

While populating computed field data from list in sharepoint into table through SSIS package, getting error

$
0
0

While populating computed field data from list in sharepoint into table through SSIS package, getting below error

cannot access a disposed object.
Object name:'System.Net.HttpWebResponse'.

Please let me know how to resolve this issue.

Thanks in Advance.


SSIS Error 0xC020801F With OData Source - Connection on Microsoft Dynamics CRM

$
0
0

Dear All

I'm using a OData component for connect with Microsoft Dynamics CRM.

When i see data in Odata Source component it are OK, i see data.

However, when i start a execute task i have trouble - ERROR 0xC020801F!

My OData Connect:

OData Connect OK

I can see data in component:

Data from OData

But, when a run task - ERROR 0xC020801F

OData Error

Please!!! Anywhere can help-me?

I try all possibilities finded in foruns.

Thanks!

SSIS: When set the task to ignore errors, don't log the errors

$
0
0

Hello there. Ignoring any discussion of 'coding it right in the first place' (I have my reasons)….I have an SSIS package that loops through a task and sometimes it fails and other times it doesn't.

I've got it functionally working, i.e. errors are ignored, parents + package succeed (as designed) but I can't seem to supress the error logs.

Is there a way to stop these logs?

Thanks.

SSIS FTP Task - Copy Directory changes some spaces in XML to new line

$
0
0

Good day,

I have xml files located on my C: drive with tags correct,some values = " " space

I cant make it blank as the tag will end on next line or null and xml will remove the field

my issue is with the copy directory for backup purposes to a network path, for some fields with " " space converts to next line, but the value in xml file on my PC and sql is " " space correct

example PC C: <ShipNo> </ShipNo>

but when FTP copy directory to network path:

<ShipNo>

  </ShipNo>

Please help, I cant figure out what & why. How do I fix?

Regards

Powershell copy script works on my desktop, and the server, but not in SQL Agent

$
0
0

I am attempting to copy database backups from our Prod server to our BCP server.  The following script runs successfully on my desktop and on the server, in PowerShell ISE, running as the same account set in the 'Run As' field in the properties of the SQL Agent job (SQL 2014).

When I attempt to run this through a SQL Agent job however, it fails.

Version 1

$backuppath = "\\ProdServer\Prod_Backups\msdb\FULL" 
$destpath = "\\BCPServer\Prod_Backups\" 
Get-ChildItem -path $backuppath 
sort-object -Property $_.CreationTime 
select-object -last 1 
Copy-Item -Destination $destpath


Version 1 error:

The job script encountered the following errors. These errors did not stop the script: A job step received an error at line 5 in a PowerShell script. The corresponding line is 'Get-ChildItem -path $backuppath | '. Correct the script and reschedule the job. The error information returned by PowerShell is: 'Cannot find path '\ProdServer\Prod_Backups\msdb\FULL' because it does not exist.

Version 2

$backuppath = "Microsoft.PowerShell.Core\FileSystem::\\ProdServer\Prod_Backups\msdb\FULL" 
$destpath = "Microsoft.PowerShell.Core\FileSystem::\\BCPServer\Prod_Backups\" 
Get-ChildItem -path $backuppath 
sort-object -Property $_.CreationTime 
select-object -last 1 
Copy-Item -Destination $destpath

Version 2 error:

A job step received an error at line 5 in a PowerShell script. The corresponding line is 'Get-ChildItem -path $backuppath | '. Correct the script and reschedule the job. The error information returned by PowerShell is: 'Invalid Path: 'Microsoft.PowerShell.Core\FileSystem::\BCPServer\Prod_Backups\'.


-Al H


SSIS Microsoft oledb provider for DB2 - iSeries/AS400 data source

$
0
0
I have a data flow task with an AS400 data source using Microsoft oledb provider for DB2 v5.  The provider has the 'DateTime As Char' property that works great at converting the binary dates, but it doesn't appear to have the 'Process Binary as Character' property any more.  I'm guessing this needs to be set in the 'Host CCSID' property (default is 37) and/or the 'Binary Codepage' property (default is 0) to convert the byte stream [DT_BYTES] datatype to a character string.  Would appreciate any assistance figuring out how to get the binary array columns to convert correctly in the data source.

Sequence Container in Parallel

$
0
0
While running Sequence Container in Parallel, will the SSIS package wait for all the containers to finish running before showing failure error? Basically, I want to run two tasks independent of each other in parallel without any dependency. I plan to put each task in respective Sequence containers and run both sequence containers in parallel. If one fails, the other one should still keep running.

SSIS Frequently logging error to application event log: .NET Runtime version - Loading profiler failed. Failed trying to receive from out of process a request to attach a profiler

$
0
0

The SSIS 2016 service (MsDtsSrvr.exe) is causing the error detailed below to be logged in the server's application log every 5-10 seconds.  I have been unable to figure out what the actual issue is and how to stop it.  The error is logged even when no packages are being run.  I thought it might have something to do with .Net framework automatic debugging and so i tried to exclude the process from automatic debugging (https://docs.microsoft.com/en-au/windows/desktop/Debug/configuring-automatic-debugging#related-topics) but this had no impact. 

While this doesn't appear to be causing any actual issue I thought it best to stop thousands of these errors being logged.  Any assistance would be appreciated.

Log Name:      Application
Source:        .NET Runtime
Date:          19/03/2019 1:17:25 AM
Event ID:      1022
Task Category: None
Level:         Error
Keywords:      Classic
User:          NT SERVICE\MsDtsServer130
Computer:      xxx
Description:
MsDtsServer130 .NET Runtime version 4.0.30319.0 - Loading profiler failed.  Failed trying to receive from out of process a request to attach a profiler.  HRESULT: 0x8007006d.  Process ID (decimal): 1204632.  Message ID: [0x250d].
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name=".NET Runtime" />
    <EventID Qualifiers="0">1022</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2019-03-18T14:17:25.407395700Z" />
    <EventRecordID>1838550</EventRecordID>
    <Channel>Application</Channel>
    <Computer>xx</Computer>
    <Security UserID="S-1-5-80-3763098489-2620711134-3767674660-4164406483-1621732" />
  </System>
  <EventData>
    <Data>.NET Runtime version 4.0.30319.0 - Loading profiler failed.  Failed trying to receive from out of process a request to attach a profiler.  HRESULT: 0x8007006d.  Process ID (decimal): 1204632.  Message ID: [0x250d].</Data>
  </EventData>
</Event>


Execution Performance report Active Time vs. Total Time

$
0
0

Looking at the figures for various sub-components, the Active Time for a number of them varies between .3 seconds to 4.5 seconds. In most of those cases, the Total Time is between 706 seconds and 721 seconds.

What exactly does this mean? That the component is taking 12 minutes or more for 4 seconds worth of work? Or am I missing the point of these 2 numbers?

If it really is, what could be wrong with the package design to produce such appalling performance?


Nick Ryan MIS Programmer Analyst, ANZ Bank

Read data directly from Azure File Storage to Db

$
0
0
Hi I want to read Excel file directly from Azure file storage to Db without downloading file to local machine and then read excel.Basically I want to reduce VM cost for the same.
So any suggestion would be appreciable.

Note : I am aware about Azure upload and download task to read data but It requires VM .

Script inside a loop. error during 2nd execution

$
0
0

I have a package that runs a script task inside a loop.

public void Main()
{
                     int intCount;
                     intCount = (int)Dts.Variables["User::Count"].Value;

//some logic 

                     Dts.TaskResult = (int)ScriptResults.Success;

}

During the first iteration code works fine. during subsequent execution I get the below error if I try lookup the value of any variable in immediate window or quick watch 

Dts.Variables["User::Count"].Value
error CS1704: An assembly with the same simple name 'ST_850053c10abd463da6fd571ece4d8f95' has already been imported. Try removing one of the references (e.g. 'ST_850053c10abd463da6fd571ece4d8f95.dll') or sign them to enable side-by-side.

effect of CSV column order and SSIS package

$
0
0

I have created a SSIS package to import the data from CSV files. The columns of CSV file are mapped with SQL table columns.

But when if I changed the Column order of CSV file it imports wrong data.

My question is if we are mapping the columns Names of CSV file to DTSX package why the change in column order should affect on importing the data?


Thanks & Regards, Vyankatesh Mujumdar

Remove Different symbols using derived Column

$
0
0

hi all I have some data  in excel source like:

$1000.00

¥ 100.00

RS200.00

₹600.00

Destination SQL Server table I need to get 

1000.00

100.00

200.00

600.00

i need to remove all the symbols.


SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005

$
0
0

HI,

I am getting the below error after run of my SSiS(2012) 8 HRS. 

SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005

Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on OLE_SRC_Master returned error code 0xC0202009.  The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure

Please let me know how to resolve this issue?

Thanks

Error while running variable with mdx in ole db source task

$
0
0

Hi,

 I'm connecting to Cube from Oledb, to fetch data for some quarters in year. While doing i write a for to get each quarter value and pass the value to the MDX query with this user defined value. In ole db task, i selected sql command from variable, which i assigned to the user defined value. Till now its fine, columns are showing for mapping to ado.net destination. once i run the application, below error is displaying. Even tried lot of 'Delay Validation = true' and so on. Please do needful.

[OLE DB Source [58]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.

[SSIS.Pipeline] Error: OLE DB Source failed the pre-execute phase and returned error code 0x80004005.


How to compare header of csv file with table column values

$
0
0

Hi I have a csv file with the columns as below. The column names and order of columns can be changed.

DeptID|Dname|Loc or DeptName|Dept_id|Location or Loc_ID|Dept_ID1.

I got a requirement that if the column comes with different names I need to check the combination , if any of the value matches, I need to add the columns in insert statement.

For this I have created a table as 

create table DeptConfig(ID INT Identity(1,1),ColName VARCHAR(50),ColValue VARCHAR(500)); The colname value represents the original column name of Dept Table.
INSERT INTO DeptConfig values('Deptid','Deptid,Dept_id,Deptid1,Dept_id1')
go
INSERT INTO DeptConfig values('Dname','Dname,Deptname,Dept_Name')
GO
INSERT INTO DeptConfig values('Loc','Loc,Location,Loc_Name')

Actual Table Structure is Dept is the tablename (DeptId int,Dname VARCHAR(50),Loc VARCHAR(50))

By using Deptconfig Table How can I achieve my requirement.

Please let me know if I miss some thing.

login failed in build query in ssis

$
0
0

HI

my data source is OLE DB source then I am create connect manager here test it successfully connected.

then i am going build query throw in error login failed.

1.today morning i am worked same connectiona one OLE DB datasource.evening same packaged i am created another OLEDB source error even 1st OLE DB connect also failed now(Morning created)

2.i am checked same user name and password with my data its working fine

3.if create new SSIS project its working fine.(same server and user name and password)

4.i am tryied 3 to 6 time my ststem restart still i am facing same problem.

Note:server and username and password all correct i checked lot of time.when i create new project(visual studio-->file-->new-->project..)its working good(same server and user name and password)

and also i double checked another system its working fine.

anybody faced this type issue please suggest me.

how resolved this issue..becoz..i am aready created lot of work.

Thanks

Aruna


SSDT - Execute SQL task Build Query login failed

$
0
0

Hello, I have problem execute sql task. when click on BUILD QUERY, show login failed.

I have no problem to use connection manager to login to the database connection. 

the error is only when click on BUILD QUERY, out put LOGIN FAILED, but login and password is righ when test connection on manager manager.

Please Help. thanks


SSIS File System Task - Copy Directory changes some spaces in XML to new line

$
0
0

Good day,

I have xml files located on my C: drive with tags correct,some values = " " space

I cant make it blank as the tag will end on next line or null and xml will remove the field

my issue is with the copy directory for backup purposes to a network path, for some fields with " " space converts to next line, but the value in xml file on my PC and sql is " " space correct

example PC C: <ShipNo> </ShipNo>

but when FST copy directory to network path:

<ShipNo>

  </ShipNo>

Please help, I cant figure out what & why. How do I fix?

Regards


Parameterized Project Connection VS Prameterized Package Connection

$
0
0

Hi,

I'm new in SSIS 2016 and just started upgrading old SSIS packages and work with parameterized connections.

My quesiotn is:

If I work on project deployment mode and use paramterized package connection managers - is there any benifit in converting them project connections?

Thanks!

Erez


David

Viewing all 24688 articles
Browse latest View live


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