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

Identify and move the files to different folder using file owner name.

$
0
0

Hi ,

I have on FTP folder where we received CSV files every day. Now there are few files with some different different owners name.

For example we have 3 files with owner A and 4 files with Owner B name. Now Before my ETL start i want to check and move owner B files to different folder and want owner A files to be there as it it.

 Using sql server 2012 .

Please suggest is ti possible ?

Thanks in advance.


Version Exception on C# Script Task

$
0
0

We are getting the following error when attempting to schedule and run a SSIS Package on our Production Job Server.

Source: Script Task - C# To Determine File Size for Control File Script Task - C# To Determine File Size for Control File     Description: There was an exception while loading Script Task from XML: System.Exception: The Script Task "ST_d2eaec3757c64bbe937ea17da8a504e3" uses version 15.0 script that is not supported in this release of Integration Services. To run the package, use the Script Task to create a new VSTA script. In most cases, scripts are converted automatically to use a supported version, when you open a SQL Server Integration Services package in %SQL_PRODUCT_SHORT_NAME% Integration Services.     at Microsoft.SqlServer.Dts.Tasks.ScriptTask.ScriptTask.LoadFromXML(XmlElement elemProj, IDTSInfoEvents events)  End Error  Error: 2020-08-15 04:00:05.09     Code: 0x00000003     Source: Script Task - C# To Determine File Size for Control File      Description: The Script Task is corrupted.  End Error  Error: 2020-08-15 04:00:05.09    Code: 0xC0024107     Source: Script Task - C# To Determine File Size for Control File      Description: There were errors during task validation.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  4:00:00 AM  Finished: 4:00:05 AM  Elapsed:  4.203 seconds.  The package execution failed.  The step failed.

Is this merely a change to the Project within Microsoft Visual Studio and Configuration Properties/General

And changing the TargetServerVersion  to SQL Server 2016 or  it erroring on the C# Edit Task is it something deeper, more complex than that?

This SSIS Package runs fine locally on my client machine. Just errors out when running it from our Production Job Server.

Thanks for your review and am hopeful for a reply.

Weird error - while SSIS package execution.

$
0
0

Hi ,

We are running packages using sql agent and using service account. Few packages failed daily with these error messages. 

But we have logic in again job step for retry. So in first attempt step failed but on retry its success.  Please let me know how to fix these error if you have same experience.

Thanks in advance.

01.dtsx

8/15/2020 5:47 AM

Sent Failure Email:Error: Executing the query "" failed with the following error: "Retrieving the COM class factory for component with CLSID {8957A18C-F62B-4A46-83FC-E8792FFD06DC} failed due to the following error: 800703fa Illegal operation attempted on a registry key that has been marked for deletion. (Exception from HRESULT: 0x800703FA).". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

Changing a datatype for a column in an odata datasource

$
0
0

Hi,

I'm trying to import an odata datastream via an OData Source component. The datastream contains a column with decimals in it (like 0.42). The OData Source component defines this column as a DT_NUMERIC with precision 38 and scale 0. 

For some reason the decimal part of the number is cut off during the import. I have tried a derived column with a type cast to decimal(38,2) and a data conversion.

I also tried changing the data type at the most logical place for me: right at the source in the OData Source Component with the external columns but SSIS displays an error "Property value is not valid" and then starts telling me "

Error at Retrieve Werkorders [TDO Werkorders [246]]: The data type of output columns on the TDO Werkorders cannot be changed, except for DT_WSTR and DT_NTEXT columns.

Error at Retrieve Werkorders [TDO Werkorders [246]]: System.Runtime.InteropServices.COMException (0xC020837D)
   at Microsoft.SqlServer.IntegrationServices.OData.ODataSource.SetOutputColumnDataTypeProperties(Int32 iOutputID, Int32 iOutputColumnID, DataType eDataType, Int32 iLength, Int32 iPrecision, Int32 iScale, Int32 iCodePage)
   at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostSetOutputColumnDataTypeProperties(IDTSManagedComponentWrapper100 wrapper, Int32 iOutputID, Int32 iOutputColumnID, DataType eDataType, Int32 iLength, Int32 iPrecision, Int32 iScale, Int32 iCodePage)"

I have been looking at this for over a day now. Does anyone have a clue?

Thanks in advance. Regards,

Peter de Hoog


Keeping Dynamic DateTime Variable "Static"

$
0
0

In one step of an SSIS package, i create an outgoing XLS filename based on the current datetime setting, a la:

 

"myFileName_" + (DT_WSTR,4)YEAR( getdate()) + RIGHT("0" + (DT_WSTR,2)MONTH( getdate()),2)+
RIGHT("0" + (DT_WSTR,2)DAY( getdate()),2) +
RIGHT("0" + (DT_WSTR,2)DATEPART("hh", getdate()),2) +
RIGHT("0" + (DT_WSTR,2)DATEPART("mi", getdate()),2) +
RIGHT("0" + (DT_WSTR,2)DATEPART("ss", getdate()),2) +".xls"

 

which provides the format as myFileName_yyyymmddhhmmss.xls.

 

This value is then assigned to a variable, user::myFilenameDateTime.

 

This variable is referred to in various steps which need the full pathname or filename.

 

I found, though, that in subsequent steps, the value for user::myFilenameDateTime is re-calculated whenever the variable is invoked.

 

So in one Task i created the physical output XLS file and named it "correctly", eg, myFileName_20070428090204.xls; in the next Task, i call a Stored Procedure in SQL Server 2005 to email the file with a corresponding message (that pulls in more data from the database).

 

The single Parameter to the Stored Procedure (that does the emailing) is the supposed/expected full Pathname of the outgoing file just produced but the parameter no longer represents the original filename -- and has changed slightly (a few seconds have been added) and the filename is now, myFileName_20070428090210.xls; consequently, my Email Distribution program cannot find the file with that specific name, although File = myFilename_20070428090204.xls does certainly exist.

 

so it appears that these variables are calculated realtime whenever encountered.

 

1) Am I misunderstanding something or misusing the variable assignment?

2) How can i keep << myFileName_yyyymmddhhmmss.xls >>, "static" throughout the duration of the overal SSIS Process.

3) I would think that even if I assign the derived myFileName value initially to ANOTHER "static" variable, this won't achieve anything because the new variable will be re-calculated again, as well, when it is invoked.

 

thx/spirits,

 

seth j hersh

 

 

 

Value cannot be null. Parameter name: value (mscorlib)

$
0
0

Hello,

   I'll try to start PowerShell for Integration services Catalog and i'll get this error :

===================================

Value cannot be null.
Parameter name: value (mscorlib)

------------------------------
Program Location:

   at System.String.IndexOf(String value, Int32 startIndex, Int32 count, StringComparison comparisonType)
   at Microsoft.SqlServer.Management.PowerShellTasks.StartPowerShellActionHandler.ReplaceServerNameWithServerNameAndPortInUrn(Urn urn, String serverNameWithPort)
   at Microsoft.SqlServer.Management.PowerShellTasks.StartPowerShellActionHandler.PerformAction(String actionMoniker, IContext context)
   at Microsoft.SqlServer.Management.TaskManagementService.Microsoft.SqlServer.Management.ITaskLauncherService.PerformAction(String actionMoniker, IContext context)
   at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ActionMenuItem.Invoke()
   at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ToolsMenuItemBase.MenuInvokedHandler(Object sender, EventArgs args)

Can someone help me please?

Regards,

Amar ADGHAR

 

Reponse

SSIS package Just fails...not compatible with this version of the DataFlow?

$
0
0

Executed as user: x ...0.00 for 64-bit  Copyright (C) Microsoft Corp 1984-2005. All rights reserved.    Started:  11:27:08 AM  Error: 2013-01-09 11:27:09.74     Code: 0xC0048020     Source: import file import file (DTS.Pipeline)     Description: The version of component "Flat File Source" (1) is not compatible with this version of the DataFlow.  End Error  Error: 2013-01-09 11:27:09.75     Code: 0xC0048020     Source: import file DTS.Pipeline     Description: The version of component "Flat File Source" (1) is not compatible with this version of the DataFlow.  End Error  Error: 2013-01-09 11:27:09.75     Code: 0xC004706C     Source: import file DTS.Pipeline     Description: Component "component "Data Conversion" (773)" could not be created and returned error code 0x80070005. Make sure that the component is registered correctly.  End Error  Error: 2013-01-09 11:27:09.75     Code: 0xC0048021     Source: import file Flat File Source [1]...  The package execution fa...  The step failed.

I am unsure what i am running into here.... Any ideas?

Microsoft.SqlServer.Management.IntegrationServices namespace

$
0
0

After several tries, I am unable to find the Microsoft.SqlServer.Management.IntegrationServices.dll or the namespace stated in the title.

I am trying to write a C# application that will execute a SSIS 2012 package that I deployed to the Integration Services Catalog.

I appreciate any assistance you can lend me in this matter.


Viewing all 24688 articles
Browse latest View live


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