المركز الرئيسي لصيانه هاير (01014723434 ) اصلاح ثلاجات هاير ( 01225025360)التجمع الاول
unable to load data from excel as source in ssis
Hi,
could any one help me i am unable to load data using .xlsx file as source in data tools 2017.
if i chnage the file to .xls it is working fine.
do we need to install any drivers for this.
please find the screenshot.
IsDate Function in SSIS?
Hi Friends,
is there any way to get the isdate function in ssis? If we can through script component, then could you give me sample codes...?
Thanks,
Prakash
Excel Column Headings and values getting truncated by two letters in SSIS while loading
Hi Everyone,
I am loading an excel file to the database. strangely, the last two letters of each column heading (and values) is getting truncated for no reason. can you please guide me in this.
For Ex: If the column name is 'MyDate' and has the value '2018-10-14', In 'Columns' tab it is coming as 'MyDa' and the value is '2018-10-'.
after insert or update the record the job should check for the job status for every run. if job is not running then immediately run else wait for the completion of the running job.
HI All,
I wrote the below code to run the job for each update or insert in the application tables. below code is not check for the job status every time. I need to check the status for each job run and if job is not execute the job should run if job is already started it should wait for the prior job completion.
Create trigger [Person].[updatetrigger]ON [Person].[Address]
AFTER INSERT, UPDATE
AS
SELECT sja.run_requested_source
INTO #temp FROM msdb.dbo.sysjobactivity AS sja
INNER JOIN msdb.dbo.sysjobs AS sj ON sja.job_id = sj.job_id
WHERE sja.start_execution_date IS NOT NULL
AND sja.stop_execution_date IS NULL and name = 'MYnew JOb'
WHILE EXISTS(SELECT TOP 1 * FROM #temp WHERE run_requested_source = 4)
BEGIN
WAITFOR DELAY '00:00:59'
END
EXEC msdb..sp_start_job -- msdb..sp_stop_job
@job_name = 'MYnew JOb';
I strucked with that above code please help me.
using variable in oledb command
i am using merge join transformation. In the oledb command for update . I want to use oledb command only for this purpose.My query is as below. I am getting error as unspecified.
How to have both "?" and Parameter @RunDate in the same update query. Please help. Thanks
UPDATE Dim.Customer
SET CustNumber=?
,CustName=?
,CustType=?
,ModifiedDate=@RunDate
Where CustId=?
How do I pick the most recently file and load into sql database using Foreach loop container in SSIS package
Hi Team,
I need's to load most recent excel data(from specific folder ) into sql database. If it is possible could you please provide the solution for this issue.
Thanks Bala Narasimha
Package to Project Deployment in 2017 conversion issue
Hi all,
My name is srinvas. I am new to this Conversion the packages. I have one scenario.
My client given 9 packages ( which are in package deployment mode) and they want me to convert in project deployment in 2017. But these packages have Configurations ( XML, Sql server) Added in each package. I am followed project conversion wizarard on right click on project and select project conversion.
1. After completing conversion to project deploymnet and see configuration they are not added. Do we need to add manually these configuration on each package after convertion to project deployment ? I am able to see Project Parameters added.
2. XML Configuration file is mapped to server location. i have unchecked this while conversion else it is showing error. can i get the XML configuratio file from server and create same folder structure and add manually these configuration ?
3. Do we need to converst any other manually after converstion to project deployment ?
Please provide any suggession and references to me . Thanks for the help on advance.
Regards,
Srinivas
Exception from HRESULT: 0xC020801C getting this error while trying to execute programitically built SSIS package
I'm developing a SSIS package programitically using C#.net, every thing is fine til i acquire the connection, i'm struck here, i'm getting COM exception i.e HRESULT: 0xC020801C, i went through many threads but i could not find any proper solution, so i'm posting this query again, i need the solution badly.
here goes my code...
PipeLineWrapper.CManagedComponentWrapper managedOleInstance = managedOleInstanceDestinationComponent;
// setting the connection
if (destinationComponent.RuntimeConnectionCollection.Count > 0)
{ // If connection is necessary
destinationComponent.RuntimeConnectionCollection[0].ConnectionManagerID =
destinationDatabaseConnectionManager.ID;
destinationComponent.RuntimeConnectionCollection[0].ConnectionManager =
DtsConvert.ToConnectionManager90(destinationDatabaseConnectionManager);
}
// Set the custom properties.
managedOleInstance.SetComponentProperty("AccessMode", 0);
managedOleInstance.SetComponentProperty("AlwaysUseDefaultCodePage", false);
managedOleInstance.SetComponentProperty("DefaultCodePage", 1252);
managedOleInstance.SetComponentProperty("FastLoadKeepIdentity", false);
managedOleInstance.SetComponentProperty("FastLoadKeepNulls", false);
managedOleInstance.SetComponentProperty("FastLoadMaxInsertCommitSize", 0);
managedOleInstance.SetComponentProperty("FastLoadOptions", "TABLOCK,CHECK_CONSTRAINTS");
managedOleInstance.SetComponentProperty("OpenRowset",
string.Format("[{0}].[dbo].[{1}]", DatabaseName, TableName));
// Now activate a connection and create the mappings
// =========================================================================
// Establish a connection
managedOleInstance.AcquireConnections(null); --------------------------> this is the point where i'm getting the exception
// initialize the metadata
managedOleInstance.ReinitializeMetaData();
// Get the destination's default input and virtual input.
PipeLineWrapper.IDTSInput90 input = destinationComponent.InputCollection[0];
PipeLineWrapper.IDTSVirtualInput90 vInput = input.GetVirtualInput();
i'm using csv file as sourece and sql server as destination, sql server is running in the local system here goes my connection string
Data Source=1DTWN0023;Initial Catalog=AdventureWorks;User ID=sa; Password=sa@123
would be very happy to see the response.. thanks in advance
Warm regards
--
murali
Update/refresh SSIS Package to match with table schema changes
Hi All,
We need to update or refresh SSIS Package with table schema changes in source DB.
Thanks for your help
Thanks, Naga
Need to Update SSIS to match on Items by priority
Hi All,
I need to update records based on Items by priority.
1.column5
2.column6
3.column7
Items are ranked by priority. If 1 is missing then move to 2 then to 3.
I have already an SSIS which runs sucessfully to bring latest data from source to destination for few columns.
SSIS Package is
ole DB source - > lookup transformation -> ole DB command.
Using below condition in lookup transformation
WITH cte_latest AS (SELECT [column1_id], [column2_id], [column3_id], [column4_id], [column5_id], [column6_id], [column7],row_number() OVER (partition BY column7 ORDER BY column6 DESC) Rn
FROM [dbo].[source] WITH (nolock)
WHERE column7 IS NOT NULL AND column7 != '0' ) SELECT *
FROM cte_latest
WHERE rn = 1
Now I need to bring the data into destination based on Items priority but it should avoid duplicates.
Thanks for your help in advance
Thanks, Naga
Slowly Changing Dimension Wizard. Is it possible to not have a business Key?
I am upgrading a BIDS 2008 SSIS package to VS2017 or SSDT2017. I am looking at the old SCD wizard, when I open it, there is a warning that states "one business key must be selected" This is from production and has been working. in my new package (SSDT 2017) I cant get beyond this point.
How could this work? Am I losing the key somewhere? I searched in the XML of the old package and could not find, maybe its labeled something different in the XML.. as apposed to the wizard. How can I find the Business key without guessing?
Thanks,
Mike
Visual Studio 2010 - SSIS project Delay Notification and error
Hello, I created a new SSIS project in Visual Studio 2010 to publish on SQL server 2012.
When I double click on the Data Flow I'm getting this error back:
===================================
Value cannot be null.
Parameter name: obj (Microsoft Visual Studio)
------------------------------
Program Location:
at Microsoft.Internal.VisualStudio.PlatformUI.Utilities.GetObjectType(IVsUIObject obj)
at Microsoft.Internal.VisualStudio.PlatformUI.DataSource.SetValue(String name, Object value)
at Microsoft.VisualStudio.PlatformUI.MainWindowDataSource.set_IsActive(Boolean value)
at Microsoft.VisualStudio.PlatformUI.MainWindow.OnDeactivated(EventArgs e)
at System.Windows.Window.HandleActivate(Boolean windowActivated)
at System.Windows.Window.WmActivate(IntPtr wParam)
at System.Windows.Window.WindowFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
If I delete the package and start over It's the same.
EBCDIC file is getting loaded with all special characters in my table
Hi,
I have an EBCDIC file and I am trying to load it using SSIS.
I created a flat file connection manager, changed the Code page to 1140 (IBM EBCDIC - U.S/Canada (37 + Euro))
When I load the data all my data is loading with special characters. Any help on this, please?
FYI... Pics loaded below for reference:
FYI... I can provide the file if needed since it is a public file and no private data is there in it.
Some data looks good in the Preview mode but when I drag little far it looks weird again.
Attunity oracle connector Version 5.0 not working for SSIS 2.0
Hi,
I had recently upgraded SSDT to 15.8.2 as well as SSIS to 2.0. However, my packages that contain the Oracle Source are not longer being loaded. Error as below, any ideas?
Severity Code Description Project File Line Suppression State
Error Validation error. WF_PCD_POLICYCLAUSESDTL: WF_PCD_POLICYCLAUSESDTL: The component metadata for "Oracle Source, clsid {ADD1F766-6414-4995-AF01-83C5B7AFC90C}" could not be upgraded to the newer version of the component. The PerformUpgrade method
failed. EG Extract - MGA.dtsx 0
Kind regards
Coby
Upgrading to Teradata 16.2 on WinServer 2012R2/SS-2016SP1 and Attunity for Teradata
Hello, I’m on a Windows Server 2012 R2 Standard Edition, and SQL Server 2016 SP1. I also have installed Teradata Driver 15.10, Teradata Transport Utilities 15.10, and Attunity V3.
I need to upgrade the Teradata Driver, Utilities to Teradata Version 16.2, and I may have to upgrade the SQL Server Attunity for Teradata Connector to Version 4, not sure yet on that one.
My question is, has someone else out here with the same system setup, performed this same upgrade without issues and no incompatibilities problems? Any pitfalls I need to be made aware of by chance?
Thank you
[Package Configuration Wizard][SQL Server Connection Issue]
Hi,
In my SSIS package used XML file for my OLEDB connection and loaded the configurations with Package Configuration Wizard which works fine, the problem raises when likes to use this connection for further configurations from this database connection as it is not available in the connections drop down when SQL Sever selecting from Configuration Type.
Please share your thoughts if anyone face the similar problems.
Many Thanks,
Muhammad Yasir
Rendering SSRS report in email body with indicators/images
I am running SSRS report using script component in SSIS using C#.net and sending the report as HTML email. In the email body, only text are displayed and indicators are displayed as a red cross mark inside small box.
Inside script component I have used mimeType ="mhtml/text";
Is there any method to display indicators in email body then help me with the details.
Thanks.
DBCC command to reseed identity of table inside Execute SQL Task in SSIS
I have a situation in which a fact table is loaded every day.
There are two SSIS packages that load this table.
1) Package1_FullLoad.dtsx - runs every Sunday, with a full refresh
2) Package2_DailyLoad.dtsx - runs on all days except Sundays, deleting and loading the data for the past 14 days alone.
Now, the full load package (Package1_FullLoad.dtsx) has an Execute SQL Task, truncates all the rows from the fact table.
Then the Data Flow loads the fact table from scratch.
In this case the identity value of the fact table starts from 1 and increments by 1, and this is fine, no issue.
However, for the daily load package (Package2_DailyLoad.dtsx), after the DELETE statement (which deletes data for the past 14 days alone), in the Execute SQL Task, I set this code:
DBCC CHECKIDENT('dbo.FactTable', RESEED,1)
DBCC CHECKIDENT('dbo.FactTable', RESEED)
Then I run the data flow to load the data, which inserts only data corresponding to the past 14 days.
Say there are 10 rows in the fact table after the full load (take as an example to illustrate the situation better), and 3 are deleted today and 5 are to be inserted today (insertion and deletion to be done by the daily load package today), the new identity value must start from 8 and end at 12. Instead I see the new identity value starting at 11 and ending at 15.
I do not see any impact in this DBCC code in SSIS Execute SQL Task.
This DBCC code works fine in the SSMS on the database side.
Any idea on how to fix this issue?
Unable to run SSIS Package
when ever i try to run the package i getting below error
TITLE: Package Validation Error------------------------------
Package Validation Error
------------------------------
ADDITIONAL INFORMATION:
Error at Data Flow Task [Excel Source [1]]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0209302. There may be error messages posted before this with more information on why the AcquireConnection method call failed.
Error at Data Flow Task [SSIS.Pipeline]: Excel Source failed validation and returned error code 0xC020801C.
Error at Data Flow Task [SSIS.Pipeline]: "Excel Source.Outputs[Excel Source Output]" contains no output columns. An asynchronous output must contain output columns.
Error at Data Flow Task [SSIS.Pipeline]: One or more component failed validation.
Error at Data Flow Task: There were errors during task validation.
Error at Package [Connection manager "Excel Connection Manager"]: The requested OLE DB provider Microsoft.ACE.OLEDB.12.0 is not registered. If the 32-bit driver is not installed, run the package in 64-bit mode. Error code: 0x00000000.
An OLE DB record is available. Source: "Microsoft OLE DB Service Components" Hresult: 0x80040154 Description: "Class not registered".
Error at Package [Connection manager "Excel Connection Manager"]: The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine. For more information, see http://go.microsoft.com/fwlink/?LinkId=219816
(Microsoft.DataTransformationServices.VsIntegration)
------------------------------
BUTTONS:
OK
------------------------------