All -
I'm getting exactly below error when i use excel as source. Please help me what shld i install exactly and link for the same..
Regards,
All -
I'm getting exactly below error when i use excel as source. Please help me what shld i install exactly and link for the same..
Regards,
I am creating a SSIS package which is accessing an excel file and then using a Foreach loop container to load each tab to sql server. However when I try to configure the Excel source, I get the following message
"The argument system_comobject cannot be converted into parameter type. Additional Information - Object must implement iconvertible (mscorlib)"
Any help to resolve would be much appreciated.
thanks
Scott
I have a simple packages that loads Excel data into a SQL Server table.
It runs successfully, but the last few rows, which are part of the newly added ones, didn't get loaded in. I don't visually see any obvious problems with these rows in the Excel spreadsheet (no gaps between the lines). What could be the possible causes of this?
Any pointers or solutions will be much appreciated!
Regards.
When I open up my existing SSIS project, I always get this error. Does anyone know what was wrong ?
TITLE: Microsoft Visual Studio
------------------------------
Unable to cast COM object of type 'Microsoft.SqlServer.Dts.Runtime.Wrapper.PackageNeutralClass' to interface type 'Microsoft.SqlServer.Dts.Runtime.IObjectWithSite'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{FC4801A3-2BA9-11CF-A229-00AA003D7352}' failed due to the following error: The application called an interface that was marshalled for a different thread. (Exception from HRESULT: 0x8001010E (RPC_E_WRONG_THREAD)).
I'm trying to create an SSIS package that includes a bulk insert tasks that inserts data from a fixed width file. I have a file created that has the proper widths for each column. There are 19 columns in this specific file. I created a format file off of the table to reference with the bulk insert task.
It comes up with the error message:
Cannot bulk load. Invalid column number in the format file "C:\FileFormat01-n.fmt".
I try it outside of SSIS and I get the same error. Here is the format file created off of the table:
9.0
19
1 SQLNCHAR 2 102 "" 1 Recordnumber SQL_Latin1_General_CP1_CI_AS
2 SQLNCHAR 2 20 "" 2 Patient Number SQL_Latin1_General_CP1_CI_AS
3 SQLNCHAR 2 2 "" 3 Facility ID SQL_Latin1_General_CP1_CI_AS
4 SQLNCHAR 2 6 "" 4 Patient Type SQL_Latin1_General_CP1_CI_AS
5 SQLNCHAR 2 74 "" 5 Guarantor SQL_Latin1_General_CP1_CI_AS
6 SQLNCHAR 2 74 "" 6 Patient Name SQL_Latin1_General_CP1_CI_AS
7 SQLNCHAR 2 50 "" 7 Guarantor Address 1 SQL_Latin1_General_CP1_CI_AS
8 SQLNCHAR 2 50 "" 8 Guarantor Address 2 SQL_Latin1_General_CP1_CI_AS
9 SQLNCHAR 2 36 "" 9 Guarantor City SQL_Latin1_General_CP1_CI_AS
10 SQLNCHAR 2 4 "" 10 Guarantor State SQL_Latin1_General_CP1_CI_AS
11 SQLNCHAR 2 18 "" 11 Guarantor Zip Code SQL_Latin1_General_CP1_CI_AS
12 SQLNCHAR 2 56 "" 12 Relative 1 Name SQL_Latin1_General_CP1_CI_AS
13 SQLNCHAR 2 26 "" 13 Relative 1 Phone SQL_Latin1_General_CP1_CI_AS
14 SQLNCHAR 2 12 "" 14 Patient Birthdate SQL_Latin1_General_CP1_CI_AS
15 SQLNCHAR 2 2 "" 15 Patient Indicator SQL_Latin1_General_CP1_CI_AS
16 SQLNCHAR 2 12 "" 16 Guarantor Birthdate SQL_Latin1_General_CP1_CI_AS
17 SQLNCHAR 2 26 "" 17 Guarantor Work Phone SQL_Latin1_General_CP1_CI_AS
18 SQLNCHAR 2 22 "" 18 Guarantor Soc Sec No SQL_Latin1_General_CP1_CI_AS
19 SQLNCHAR 2 6 "" 19 Filler1 SQL_Latin1_General_CP1_CI_AS
One thing I noticed is that it doubled the size of the field 102 should really only be 51. I've rebuilt the format file a hundred different ways, but it still does not come out right.
Here is the table
CREATE
TABLE [dbo].[01]([Recordnumber] [nchar]
(51)NULL,[Patient Number] [nchar]
(10)NULL,[Facility ID] [nchar]
(1)NULL,[Patient Type] [nchar]
(3)NULL,[Guarantor] [nchar]
(37)NULL,[Patient Name] [nchar]
(37)NULL,[Guarantor Address 1] [nchar]
(25)NULL,[Guarantor Address 2] [nchar]
(25)NULL,[Guarantor City] [nchar]
(18)NULL,[Guarantor State] [nchar]
(2)NULL,[Guarantor Zip Code] [nchar]
(9)NULL,[Relative 1 Name] [nchar]
(28)NULL,[Relative 1 Phone] [nchar]
(13)NULL,[Patient Birthdate] [nchar]
(6)NULL,[Patient Indicator] [nchar]
(1)NULL,[Guarantor Birthdate] [nchar]
(6)NULL,[Guarantor Work Phone] [nchar]
(13)NULL,[Guarantor Soc Sec No] [nchar]
(11)NULL,[Filler1] [nchar]
(3)NULL)
ON [PRIMARY]
The data in the file is like this (all on one line):
2 9999992203MOUSEUSH,MICKEY;C DIPP,FIRSTS;C 9999 EEE LLLL LLL 12 GGGGGGA OH45103 999999E999999 999-99-9999 NN
I know I could probably go through and just set up all of the columns manually in a connection manager for a dataflow, but I need to do this with dozens of different layouts and already have proper table formats set up the files. It would be nice to get it to work with the format files.
What am I doing wrong?
--Thanks--
Hello, everyone,
I have a simple packages that loads Excel data into a SQL Server table.
One of the Excel Comlums is assigned a data type of DT_NTEXT and it's corresponding database column is varchar(1000). I tried changing the data type to DT_STR in the Advanced editior but it wouldn't let me (reverts back afterwards).
Regards.
We are getting below mentioned error while executing SSIS package or maintenance plan.
Executed as user: ICROSSING\*****. Microsoft (R) SQL Server Execute Package Utility Version 11.0.3381.0 for 64-bit Copyright (C) Microsoft Corporation. All rights reserved. Started: 3:35:00 PM Error: 2014-02-23 15:35:01.56 Code: 0xC0000033 Source: Db Engine database Log backup Description: Integration Services evaluation period has expired. End Error Error: 2014-02-23 15:35:01.58 Code: 0xC0000033 Source: Db Engine database Log backup Description: Integration Services evaluation period has expired. End Error Could not execute package because of error 0xC0000033. Started: 3:35:00 PM Finished: 3:35:01 PM Elapsed: 0.671 seconds. The command line parameters are invalid. The step failed.
We have license BI edition of sql server 2012. Other services and database are working fine. Issue with integration service only.
Please help me sort out the issue.
Thanks,
Shitalkumar Kasliwal
In the northern hemisphere at least, Spring is here! (apparently)
And at TechNet Wiki, we're hoping you're all hatching new ideas for this month's TechNet Guru competition!
We're looking for more shoots and leaves of wisdom to sprout forth from the great tree of MSDN/TechNet life.
We're also hoping some of our old Guru winners will be coming back out of hibernation and flexing their grey matter!
So, pick up your pen and MARCH into TechNet History! This could truly be the start of something BEAUTIFUL!
What delightful new arrival will YOU be bringing into this world?
All you have to do is add an article to TechNet Wiki from your own specialist field. Something that fits into one of the categories listed on the submissions page. Copy in your own blog posts, a forum solution, a white paper, or just something you had to solve for your own day's work today.
Drop us some nifty knowledge, or superb snippets, and become MICROSOFT TECHNOLOGY GURU OF THE MONTH!
This is an official Microsoft TechNet recognition, where people such as yourselves can truly get noticed!
HOW TO WIN
1) Please copy over your Microsoft technical solutions and revelations toTechNet Wiki.
2) Add a link to it on THIS WIKI COMPETITION PAGE (so we know you've contributed)
3) Every month, we will highlight your contributions, and select a "Guru of the Month" in each technology.
If you win, we will sing your praises in blogs and forums, similar to the weekly contributor awards. Once "on our radar" and making your mark, you will probably be interviewed for your greatness, and maybe eventually even invited into other inner TechNet/MSDN circles!
Winning this award in your favoured technology will help us learn the active members in each community.
Feel free to ask any questions below.
More about TechNet Guru Awards
#PEJL
Got any nice code? If you invest time in coding an elegant, novel or impressive answer on MSDN forums, why not copy it over to the one and onlyTechNet Wiki, for future generations to benefit from! You'll never get archived again!
If you are a member of any user groups, please make sure you list them in the
Microsoft User Groups Portal. Microsoft are trying to help promote your groups, and collating them here is the first step.
Hi All,
I have a EXCEL Macro needs to be called from SSIS. We could not use Script task because of some internal reason.
So we have taken an approach to call a .BAT file using Execute Process Task. This .BAT file will call a .VBS file which will execute the EXCEL Macro.
The SSIS Package is running good if I execute the package from BIDS.
But the real problem is with the scheduling this SSIS Package using SQL JOB.
If i execute this SSIS package from SQL Server Job, its executing the whole package successfully except the Execute Process Task.
So the overall issue is SQL Server Job is not executing properly if I call any .BAT file from the SSIS Package.
Please give me suggestion to get rid of the issue. Thanks in advance.
Hi All,
I am trying to sftp files using Tectia Client from my local system. For that I have used the Execute Process Task in SSIS. First I open DOS command and try to instantiate the sftp3.exe.
Then I write down the below command
binary
open username@hostname
lcd C:\Test
cd <Destination Path name>
put test.txt
How to execute the command in execute process task ?
help is appreciated
Thanks
Hi,
How can I put my XMLA script to Variable in SSIS 2005 using script task?
In my XMLA script,I will need to change values dynamically using ssis variables(eg:DatabaseID,ProcessType etc)
Below is the eg XMLA script.
<Batch xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
<ErrorConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2" xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2">
<KeyErrorLimit>-1</KeyErrorLimit>
<KeyErrorLogFile>C:\as.log</KeyErrorLogFile>
<KeyNotFound>IgnoreError</KeyNotFound>
<KeyDuplicate>ReportAndContinue</KeyDuplicate>
<NullKeyConvertedToUnknown>ReportAndContinue</NullKeyConvertedToUnknown>
<NullKeyNotAllowed>ReportAndStop</NullKeyNotAllowed>
</ErrorConfiguration>
<Parallel>
<Process xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2" xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2">
<Object>
<DatabaseID>Cube12</DatabaseID>
</Object>
<Type>ProcessFull</Type>
<WriteBackTableCreation>UseExisting</WriteBackTableCreation>
</Process>
</Parallel>
</Batch>
I would like this XMLa script in a Variable so that I can call it in DDL analysis task.
Hi Folks,
I have columns like below: I need my LatestColumn(new col) need to produce maximum callbacktime
the condition
So something like MAX(Callback1datetime (where Callback1Status IS NOT NULL), Callback2datetime (where Callback2Status IS NOT NULL), CallbackStatus3datetime (where Callback3Status IS NOT NULL),etc…)
callback6Date Time has maximum time but callback6status has null then I need to skip this like above condition.
Thank you very much for your time
Greetings,
Is there a way to change the port in the Attunity/Microsoft Teradata Connector (SSIS)? Our Teradata server is not connected on the default 1025 port, we use 1521.
I've tried changing the port by appending it to the address: xx.xxx.xxx.xxx:1521 & xx.xxx.xxx.xxx,1521 but it doesn't work.
I can connect using ODBC but it is too slow.
I've been on this problem for days. Any help would be appreciated.
Thanks,
Pete
Additional Info:
Using Driver version 1.2 32 bit, SQL Server 2008, Windows Server 2008.
Hi,
After performing a merge join, there are columnsthat are no longer needed for the continue of the data flow, and I would like to remove or hide them, in order to not confuse with other columns.
Is there a way to do this (didnt see any by myself) ?
So something like MAX(Callback1datetime (where Callback1Status IS NOT NULL), Callback2datetime (where Callback2Status IS NOT NULL), CallbackStatus3datetime (where Callback3Status IS NOT NULL),etc…)
below examble my latestdate need to produce callback5datetime because callback6datetime is maxmum but their corresponding status is null !!
can you please help me how can write T-sql query ???
thanks for advance
Hi everyone,
I have an issue regarding setting values at run time
I use package configuration to manage different enviroments scenarios (DEV, PROD):
XML file to store the connections string of SSISConfigDB
and the actual values of parameters in that SSISConfig DB tables Filtered by ConfigurationFilter column
Now, one of my packages needs in addition setting at run time value of a flat file name
i used an Execute SQL task - within the task i read into a variable the file name using command line
then, the full path of Flat File Connection is set by expression concatenating the root folder and the variable
the problem is that the variable stays empy! as if the Execute SQL task was never executed!
Am i doing something incorrect? in the package configuration wizard the configured value are only XML file and the connection string of the DB.
to summerize - how can i combine package configuration, default value, Execute SQL task and expression at runtime?
I managed to download the QuickBooks Data Provider and QuickBooks SSIS Component which allowed me to create an ADO NET Source linked to a OLE DB Destination in SSIS.
I am relatively new to SSIS so have a few questions at this stage:
- If I want to import a new table in the ADO NET Source I then seem to have to delete the existing OLE DB Destination. Is this correct or is there a workaround for example if say someone is importing multiple tables linked to multiple destinations (in my case SQL Server 2008 R2 Developer)?
- If data is updated in SQL Server can/should it be reciprocated/viewed in QuickBooks? I am not sure what the protocol is here in terms of what is right or wrong.
- Is there a free alternative to RssBus http://www.rssbus.com/ado/quickbooks/screenshots.aspx as I only have a trial version?
N.B. I followed these instructions but using ADO NET Source in SSIS as there is no DataReader Source in BIDS 2008 R2:http://www.rssbus.com/kb/articles/ado-ssistask.rst
Many Thanks for any advice.
Hi,
I have flat files whose data I am going to insert in table. I have primary contrain on my table. If any row voilet primary key contrain then I am redirecting that row to Error table. For this purpose I am using script component. With the help of below method I am getting error discription but I want error row also. Can anyone help me to get error row with the help of below method.
Public overridevoid Input0_ProcessInputRow(Input0Buffer Row)
Thanks
I have an .XLSLX File. I have a DFD Task to export that xlsx file into SQL. I use SSIS 2008. However when I run the package, it fails with this error below.
[Connection manager "Excel Connection Manager"] Error: SSIS Error Code DTS_E_OLEDB_EXCEL_NOT_SUPPORTED: The Excel Connection Manager is not supported in the 64-bit version of SSIS, as no OLE DB provider is available.
Hi Team,
I am trying to understanding one of the package which is development by some other person.
There is a database connection nothing assigned in properties of the connection it is just a hard-coded connection but there are variables for data source, initial catalog... i am not sure how this is working.
This is batch file script:
"C:\Program Files\Microsoft SQL Server\90\DTS\Binn\DTExec.exe" /file "C:\Test\Testing.dtsx" /set \package.variables[SQL_DATA_SOURCE].Value;"Testing" /set \package.variables[SQL_INITIAL_CATALOG].Value;"DB_Conn" /set \package.variables[DEBTPDS].Value;"C:\Test\TestingFolder" /set \package.variables[LOGPATH].Value;"C:\Test\LOGFILE.TXT" /set \package.variables[SYSPATH].Value;"C:\Test\SYSFILE.TXT" /set \package.variables[SQL_USER_ID].Value;"sa" /set \package.variables[SQL_PASSWORD].Value;"Password@123" /De test > OUTPUT.TXT
i like to know what this batch script is doing, how the variable values are passed.
There is a script task where the variables are used
'Variables being set externallyThanks,
Eshwar.
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.