SSI...
Tech support at my host says that you just have to include
files based on their relative path to the running page and that the
page must be labeled .shtml. I have created the include file and
placed it on the page, it is at "/includes/header.htm" and have
named the homepage file index.shtml
The SSI was not working so I called them to see why and they
said that they do not support use of #exec in files for security
reasons.
I added the include through dreamweaver by selecting
Insert>Server Side Include and choosing my header file.
The code it added is below... obviously this won't work on
their server.
Does anyone know how I can include this file without using a
#exec command? I am on a Linux server if it makes a difference...
You have used an HTML include. Your code should work.
What is the link to the file?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"ArtsyAndi" <[email protected]> wrote in
message
news:g14cur$ibp$[email protected]..
>I am on my new domain trying to get my SSI to work now.
>
> Tech support says that you just have to include files
based on their
> relative
> path to the running page, the page must be labeled
.shtml. I have created
> the
> include file and placed it on the page, it is at
"/includes/header.php"
> and
> have named the homepage file index.shtml
>
> The SSI was not working so I called them to see why and
they said that
> they do
> not support use of #exec in files for security reasons.
>
> I added the include through dreamweaver by selecting
Insert>Server Side
> Include and choosing my php file.
> The code it added is below... obviously this won't work
on their server.
>
> Does anyone know what I should change this to in order
to make it pull the
> file in? I am on a Linux server if it makes a
difference...
>
>
>
> <!--#include file="includes/header.php" -->
>
Similar Messages
-
I know I've REALLY struggled with this before. I just don't understand why this has to be soooooo difficult.
I can very easily do a straight Data Pump of a .xlsX File into a SQL Server Table using a normal Excel Connection and a normal Excel Source...simply converting Unicode to DT_STR and then using an OLE DB Destination of the SQL Server Table.
If I want to make the SSIS Package a little more flexible by allowing multiple .xlsX spreadsheets to be pumped in by using a Foreach Loop Container, the whole SSIS Package seems to go to hell in a hand basket. I simply do the following...
Put the Data Flow Task within the Foreach Loop Container
Add the Variable Mapping Variable User::FilePath that I defined as a Variable and a string within the FOreach Loop Container
I change the Excel Connection and its Expression to be ExcelFilePath ==> @[User::FilePath]
I then try and change the Excel Source and its Data Access Mode to Table Name or view name variable and provide the Variable Name User::FilePath
And that's when I run into trouble...
Exception from HRESULT: 0xC02020E8
Error at Data Flow Task [Excel Source [56]]:SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occured. Error code: 0x80004005.
Error at Data Flow Task [Excel Source [56]]: Opening a rowset for "...(the EXACT Path and .xlsx File Name)...". Check that the object exists in the database. (And I know it's there!!!)
I don't understand by adding a Foreach Loop Container to try and make this as efficient as possible has caused such an error unless I'm overlooking something. I have even tried delaying my validations and that doesn't seem to help.
I have looked hard in Google and even YouTube to try and find a solution for this but for the life of me I cannot seem to find anything on pumping a .xlsX file into SQL Server using a Foreach Loop Container.
Can ANYONE please help me out here? I'm at the end of my rope trying to get this to work. I think the last time I was in this quandry, trying to pump a .xlsX File into a SQL Server Table using a Foreach Loop Container in SSIS, I actually wrote a C# Script
to write the contents of the .xlsX File into a .csv File and then Actually used the .csv File to pump the data into a SQL Server Table.
Thanks for your review and am hoping and praying for a reply and solution.Hi ITBobbyP,
If I understand correctly, you want to load data from multiple sheets in an .xlsx file into a SQL Server table.
If in this scenario, please refer to the following tips:
The Foreach Loop container should be configured as shown below:
Enumerator: Foreach ADO.NET Schema Rowset Enumerator
Connection String: The OLE DB Connection String for the excel file.
Schema: Tables.
In the Variable Mapping, map the variable to Sheet_Name, and change the Index from 0 to 2.
The connection string for Excel Connection Manager is the original one, we needn’t make any change.
Change Table Name or View name to the variable Sheet_Name.
If you want to load data from multiple sheets in multiple .xlsx files into a SQL Server table, please refer to following thread:
http://stackoverflow.com/questions/7411741/how-to-loop-through-excel-files-and-load-them-into-a-database-using-ssis-package
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Error While executing a SSIS package which contains a script task through SQL Server Agent job
Hi,
I have a SQL Server 2012 SSIS package with a script task along with other tasks [data flow, execute sql tasks ]. When I manually executed the job through BIDS, its completed successfully.
Then I have automated the execution of the package through SQL Server Agent Job. But when I executed the package through SQL Agent job, it runs successfully for all the tasks except script task. When it comes to execute the Script Task, it is getting failed
with the below error message.
"Error: 2012-08-29 12:45:14.67
Code: 0x00000001
Source: Script Task
Description: Exception has been thrown by the target of an invocation.
End Error
DTExec: The package execution returned DTSER_FAILURE (1).
Started: 12:45:10 PM
Finished: 12:45:14 PM
Elapsed: 4.353 seconds
I have installed the SSIS on the 64-bit environment and SSIS service is running. Also I tried to run the job through 32 bit [job option] but I am getting the above error in all cases.
Any help will be greatly appreaciated !
Thanks,
Navin
- naveen.reddyHi Arthur,
My script task access the excel files in a network share, refresh them all and save them. When I execute the ETL manually or thru DTEXEC, it is executing successfully. I am facing the issue when I am executing thru SQL Agent Job only. Logging also showing
the same error.
"Error: 2012-08-23 12:45:14.67
Code: 0x00000001
Source: Script Task
Description: Exception has been thrown by the target of an invocation.
End Error
DTExec: The package execution returned DTSER_FAILURE (1).
Started: 12:45:10 PM
Finished: 12:45:14 PM
Elapsed: 4.353 seconds
- naveen.reddy -
Excel Connection Manager suddenly can no longer connect to Excel from SSIS package
<p>During the last 3 months, I used 32 bit SSIS 2008 (v 10.50.2500.0) on an WinXp machine (v 5.1.2600 SP3 Build 2600) to create a package that writes multiple query results (reports) to an excel spreadsheet. Each report is written to a different
tabbed sheet in the same spreadsheet. </p><p>The package was working just fine until May 9 2013, when suddenly every single Data Flow task with an Excel Destination displayed error icons and raised the following
error message when opening the Advanced Editor:</p><p>SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005 Description: "Unspecified error". <br />Error at <DataFlow task name>: SSIS
error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager <Excel connection Manager> failed with error code 0xC0202009. There may be error messages posted before this with more
information on why the Acquire Connection method call failed. Exception from HRESULT: 0Xc020801c (Microsoft.SQlServer.DTSPipelineWrap)</p><p>Originally the error message reported that the Error Code was "0x8000FFFF", but I can't seem
to reproduce that error code since. Now I am only getting the above error message.</p><p>From the time I created the original package (when it worked fine) until now, I have been using the same computer, writing to a (32 bit) 2010 Excel file in
a local folder. The filename and location have not changed. The ConnectionString has not changed. The Connnection String I am using is Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Conversion\Conversion Results_dt01.xlsx;Extended Properties="EXCEL
12.0 XML;HDR=YES;". </p><p>Now an attempt to create and test a NEW Connection Manager yields me this error. "Test connection failed because of an error in initializing provider. Unspecified error.", whereas before I had
no problems creating a new connection manager.</p><p>I checked a second SSIS package, which I also built during the past 3 months, which loads multiple sheets from multiple Excel files to a SQL Server 2008 database holding table. It uses the same
ACE OLE DB 12.0 connection to load the Excel speadsheets and this package continues to work fine on the same workstation.</p><p>In desparation, wondering if the Microsoft ACE OLE DB 12.0 driver had become corrupt (even though the second package
was raising no errors), I did download and install the Microsoft ACE OLE DB 12.0 driver. That did not solve my problems with the first package.</p><p>I need to get this package running again ASAP as it is targeted for UAT testing in a
matter of days. Any help with this issue would be greatly appreciated!</p>I submitted this issue above and now I am having the same problem again. I am using the same local computer, the same operating system (WinXp v 5.1.2600 SP3 Build 2600) as originally described. I am working with the same SSIS package that
writes multiple query results (reports) to an excel spreadsheet. This package has been successfully executed multiple times, but now I am suddenly getting the same error as follows:
Error at 1ConversionContacts [Connection manager "Excel Connection Manager"]: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft Access Database Engine" Hresult: 0x80004005 Description: "Unspecified error".
Error at DFlow Write soft deleted duplicate claims to Excel sheet [Excel Destination - write duplicate claim nbrs that have been removed to Excel [61]]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method
call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed.
The package will not run because of these multiple errors (multiple because it occurs on every single excel destination in the package).
I have Run64BitRuntime set to false on the project. I have triple checked that the excel file name (which I created and can access) exists with the correct name in the correct path, which is local on my machine. The file is the same file in the same
location as when the package worked. I am running the SSIS service under my own network login, as I was when the package worked. I have been consistently getting this same error whenever I change my network password without updating the password
in the SSIS service, but I have triple verified that the service is using my latest password. If I try to open and edit the Excel Destination in any DataFlow task I get the same error. I can successfully create a new Excel Connection Manager pointing
to the same excel file. However if I try to assign the newly created Excel Connection Manager in the data flow, I cannot activate the drop down to choose the Excel sheet without getting an 'Unspecified error' message. I then swapped out
the file with its template version, and ensured the name was updated as correct. I still get the same errors.
Oh, and the SSIS package is extracting data from a SQL Server 2008 database with an ADO.net Connection Manager using Windows authentication. I have no problems with the SQL Server connection, it has always worked and still does. It is only
the connection to excel output file which is locally stored on my machine.
Has anyone got any suggestions for me? -
Issue with creation of SSIS package - reading from XML
Good Morning,
having a slight difficulty here and more than this, am afraid solution is pretty straight forward. I am trying to read an XML-file and save the rows to a CSV file (late ron it should be sent to SQL-database).
Am having this input XML
<?xml version="1.0" encoding="utf-16"?>
<DataSet>
<xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="ROW">
<xs:complexType>
<xs:sequence>
<xs:element name="COLUMN" type="xs:short" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
<NewDataSet>
<ROW diffgr:id="ROW1" msdata:rowOrder="0">
<COLUMN>1</COLUMN>
</ROW>
<ROW diffgr:id="ROW2" msdata:rowOrder="1">
<COLUMN>2</COLUMN>
</ROW>
</NewDataSet>
</diffgr:diffgram>
</DataSet>
but when running the SSIS-package, I get this
no errors are shown, but also no rows are written/processed.
Why is nothing read here?by the way, when I split the schema and the XML data, having those 2 files
data.xml
<?xml version="1.0" encoding="utf-8"?>
<NewDataSet>
<ROW >
<COLUMN>1</COLUMN>
</ROW>
<ROW >
<COLUMN>2</COLUMN>
</ROW>
</NewDataSet>
schema.xsd
<?xml version="1.0"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xs:element name="NewDataSet">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" name="ROW">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="COLUMN" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
then result is fine -
Can not find the SSIS in the msdb
Hi Everyone,
I'm using a SQL Server 2k5, and recently i was stuck with a SSIS issue. I have one job which needs to be changed. The job property is as below
As we can see, the instance name is "DE-S-0157580\DE_S_0157580". Then I connect to the Integration Service as below:
The interesting thing is even if I expand every single folder but I can find nothing at all.
Can somebody give me some advice? Thank you very much for your time and efforts.
regards,
OliverHi Vaibhav,
Thanks for your reply. Under Maintenance plan folder, there is a database which actually contains nothing also. I executed the scripts you provided. I can definitely find the package that I need as well as many other packages in the result. But why I'm not
able to see them in integration service.
regards,
Oliver
Ahh, see the link provided by Harry :)
Your account must have db_dtsAdmin role if you are admin for all packages or just to view you must have
db_dtsOperator role
-Vaibhav Chaudhari -
I have been working with the Sql Server 2008 R2 SSIS Tutorial at
https://msdn.microsoft.com/en-us/library/ms170419(v=sql.105).aspx
--specifically -- Lesson 1. I have been having some problems with this lesson where the source data from the samples download doesn’t exactly match the data described in the tutorial, and the tables in the tutorial are different from what
is contained in AdventureWorksDW (tutorial refers to DimTime – AdventureWorksDW contains DimDate and no DimTime).
So, after futzing in BI with this tutorial so that I can at least get it to run in Debug – it errors out on the 2<sup>nd</sup> LookUp object.
Rather than looking for a fix to the problem(s) that I am having between the tutorial and the stuff I downloaded in the samples --
I want “Adapt” the tutorial so I can use the stuff I downloaded and hopefully learn how to use SSIS with the elements (source data and tables) that are present on my workstation.
Here is a description of what is going on for me – which I really don’t understand what is going on in BI – based on the images below – like what columns (from what tables) are they associating to in the OleDB Destination?
Note: the sql in the LookUps here is the sql that I copied from the tutorial.
I probably need to modify these sql statements – so -- the help I am requesting is to make the required modifications/changes
so that I can adapt this tutorial with the stuff that’s on my workstation.
I downloaded the samples and the AdventureWorksDW mdf for Sql Server 2008 R2.
It turns out that in the tutorial it wants me to select a DimTime table, but the version of the AdventureWorksDW db does not contain a DimTime table.
Instead, it contains a DimDate table. So I tried adapting DimDate for the tutorial.
Additionally, the sample data file -- SampleCurrencyData.txt -- has slightly different data types than the types described in the tutorial, so I selected data types for the columns in the datasource text file that would work in BI would to
connect column from source data file to the table.
After finishing all the steps for Lesson 1 -- when I tried debugging the package – and it error'd out on the 2<sup>nd</sup> Lookup object whichwent red.
I edited the lookups and the sample Ole DB Destination to "ignore on fail” and I did all
green but the FactCurrencyRate table is not being populated -- as described in the tutorial, so I reset the on error back to default (Fail on error option). And based on this tutorial -- I believe FactCurrencyRate
table is the table which is supposed to be populated with the data from SampleCurrencyData.txt?
In the sample data file that downloaded with all the samples I removed all the data from the text file except for 6 rows, so instead of the original 1100 or so rows, I have only 6 rows of data in the source data file (just to keep things
simple for debugging for now). I did not modify the data itself.
Here is what the (raw) data contained in SampleCurrencyData.txt looks like (from the samples that I downloaded from codeplex) – it’s supposed to be 4 columns of data – float, nvarchar, datetime, float:
0.281690141 USD
6/26/2004 0:00 0.281713948
0.281690141 USD
6/27/2004 0:00 0.281642539
0.281690141 USD
6/28/2004 0:00 0.281761573
0.283286119 USD
6/29/2004 0:00 0.283221933
0.283286119 USD
6/30/2004 0:00 0.283358363
0.281690141 USD
7/1/2004 0:00 0.281682206
Below are images of my BI Layout for Lesson 1 from this tutorial -- the FlatFile and configurations for On Fail Error, A Flow task, the 2 LookUps (CurrencyKey and DataKey), the OleDB Destination configuration, the Design view of the associated tables and
the Debug Run of Lesson 1, and the following error messages. My goal is to figure out what is going on in BI for this tutorial.
Error: 0xC020901E at Extract Sample Currency Data, Lookup Datakey [51]: Row yielded no match during lookup.
Error: 0xC0209029 at Extract Sample Currency Data, Lookup Datakey [51]: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.
The "component "Lookup Datakey" (51)" failed because error code 0xC020901E occurred, and the error row disposition on "output "Lookup Match Output" (53)" 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.
Error: 0xC0047022 at Extract Sample Currency Data, SSIS.Pipeline: SSIS Error Code DTS_E_PROCESSINPUTFAILED.
The ProcessInput method on component "Lookup Datakey" (51) failed with error code 0xC0209029 while processing input "Lookup Input" (52). 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.
--this is the flat file
-- SampleCurrencyData.txt (which only contains 6 data rows for my purposes)
--and here is where I assign the data types for the colums of -- SampleCurrencyData.txt
This is the first LookUp Object -- LookUp Currency Key – The DB contains DimCurrency table.
I copied the sql from the tutorial here.
I actually have a DimCurrency table in my copy of AdventureWorksDW.
Here’s the design view of DimCurrency and a sample of the data contained in DimCurrency and the On Fail configuration
I actually have a DimCurrency table in my copy of AdventureWorksDW.
Here’s the design view of DimCurrency and a sample of the data contained in DimCurrency and the On Fail configuration
--Here is what the data looks like in the DimCurrency table
--2<sup>nd</sup> LookUp object -- LookUp Data Key – this is the LookUp
where BI errors out on Debug
--it appears this lookup is referencing the DimDate table – which I DO have in the DB.
--I can’t find the following sql in the tutorial, so I suppose BI added the sql (did it?)
--Here's how I configured for On Error
--Here is DimDate table in Design view
--Here is a sample of the original data contained in DimData
OleDB Destination
--Here is where I get lost a bit – what is going on in the destination here?
--Here's my On Error configuraino
--and here is the FactCurrencyRate table
--and here is a sample of the data contained in FactCurrencyRate
Rich PThank you for your reply. I changed the error handling as you suggested on the 2nd lookup to redirect to unmatched rows. Now I get all greet. I don't have the conditional split as in your diagram. But also, nothing appears to have
happened in the DB. Aren't the rows in my text file supposed to be added to the FactCurrencyRate table?
How do I get a conditional split?
Rich P
OK, sorry I forgot to reply you back.
Conditional Split was just dummy task. Ignore it.
Manipulate the data in such way that you get matching records.
Inside Source, for first 2 rows I put the dates which are available in DimDate.
1.00010001,ARS,7/1/2005 0:00,0.99960016
1.00010001,ARS,2/5/2006 0:00,1.001001001
1.00020004,ARS,9/5/2001 0:00,0.99990001
1.00020004,ARS,9/6/2001 0:00,1.00040016
1.00050025,ARS,9/7/2001 0:00,0.99990001
1.00050025,ARS,9/8/2001 0:00,1.001001001
Then in OLE DB Destination, I loaded the rows to TestFactTable.
(Now, you don't even need NO MATCH OUTPUT as there are matching records here)
Cheers,
Vaibhav Chaudhari
[MCTS],
[MCP] -
SSDT package errors when running from non SSIS server
I am trying to run a 2012 SSIS package on a server that doesn't have Integration services installed and I keep getting the following error:
"To run a SSIS package outside of SQL Server Data Tools you must install SharePoint List Source 1 of Integration Services or higher."
It is on a cluster and I was under the understanding that I could run a package without having SSIS engine installed?
Thanks!This is not true. Executing SSIS packages requires the SSIS installation. It is possible though to have a package executed on a remote host, and it will run within that machine memory space, again the target has to have the SSIS installed.
Besides, SSIS is not a clustered resource.
Arthur My Blog -
SSIS package issues when running as a regular user
Hello
I have one package which is getting data from MSSQL server and putting it to the excel (2007 format).
When started as an administrator from Visual studio, IS, command line or SQL Agent job it works just fine.
But when using regular user (SSIS proxy in SQL Agent job) it does not return any errors, but result Excel file is just empty. It puts only firs row with headers into it.
Only difference I've found when executing as admin and regular user is a warning in package execution detailed log:
OnWarning,SERVERNAME,USERNAME,PACKAGE_NAME,{GUID},{GUID},2014.03.21 15:23:22,2014.03.21 15:23:22,-2147183868,0x,Warning: Could not open global shared memory to communicate with performance DLL; data flow performance counters are not available. To resolve,
run this package as an administrator, or on the system's console.
If I add user to local administrators group it runs just fine.
Trying to search the web I've found that most causes of thet could be UAC enabled on the server. But it is not enabled.
SQLserver - Microsoft SQL Server 2012 - 11.0.2383.0 (X64)
Windows Server 2008 R2
Thanks in advance,
OlegasIt could be also an issue with the access to the %temp% directory.
But I suggest again, you do not rely on turning the logging on that is built into DTEXEC, you need to provide this package right now with thorough logging to find the root cause of the issue. E.g. no access to a shared drive may an issue, too.
Arthur My Blog -
How to find a certain usage of a specific value inside an SSIS package
Hi,
In T-SQL, there are many tools to search for instances of a specific value in all the objects such as tables and SPs.
The only way I can think of in SSIS, is to search for a value in the XML of the DTSX, but it is not that user friendly.
Are there any existing tools or other ways for a value search that can assist ?
Thanks,
DaniSince a package is just a plain text XML file thus you are able to perform a text search in the file.
http://sqlblog.com/blogs/jamie_thomson/archive/2012/06/12/using-find-replace-with-regular-expressions-inside-a-ssis-package.aspx
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
SSIS Flat File Source not populating varchar column
I have SSIS package that imports flat files with column separator | from "Flat File Source" into the database trough "OLE DB Destination".
For one of the columns (file contains UIDs in curly brackets) destination column is varchar(250) null-able, when "Retain nulls" is set to true complete data have been imported, but when "Retain nulls" is set to false beside fact that in
the file data is not null and it is not empty string it is not imported and in the destination column is empty string.
I know that this "Retain nulls" applies to the columns that contains NULLs but this is not the case.
If someone have experience with such issue please help.
Thank you in advance.From your statement it looks like when you have curly brackets it skips the value and inserts nulls instead. And that may be the reason why its working fine when you change retain null value.
I would suggest
Make your setting "retain null" to true and load the flat file, then check what happens to the values having curly braces (is there any value or null) , if there is value we need to check for that(please share a sample file). And if it having null
instead of "{value}", I would suggest to put a script task to remove { from your flat file and then try load the data.
Hope this helps.
Regards, -Amit -
Design Problem When SSIS Get String From Web to Do Fuzzy Lookup
Hi!
In my previous post Search Data by Fuzzy Lookup in Real Time
Scenario, I've tested required functions to build a sample website and SSIS, now it's time to polish my design. Since user will query a name from Web, SSIS is supposed to get a string to do
Fuzzy Lookup. I wonder how I can design to let fuzzy lookup consume String as input instead of a structure (like OLE DB, EXCEL, Flat File, etc ) .
Now I use table as datasource to do a fake input. The SQL_CMD variable will dynamically be replaced from Web input. It seems Fuzzy Lookup component needs a structure to be an input.
Do you have any design idea for my scenario ? Thank you!How are you executing the fuzzy lookup package ? Is it using command line or using asp.net code ?
In SSIS package we can create variables and assign any strings to these variables while running the ssis package in asp.net.
Refer
http://www.codeproject.com/Articles/28096/Excecute-SSIS-package-DTSX-from-ASP-Net
Also have you gone through SOUNDEX option of TSQL
http://www.tek-tips.com/faqs.cfm?fid=4110
Regards, RSingh -
Good day,
I am currently working on a SSIS package that had been built by a previous user. That Package allows me to import data from an excel source to a SQL table. The excel sheet holds multiple columns, However I am having difficulty with one
column when running the package.
The column rows hold a character and an integer (eg: N2). The data types are as follows:
SQL – varchar(3),NULL
SSIS - double-precision float [DT_R8]
I then inserted a data conversion task to change the data type. The task holds the following properties:
Input column – F6
Output Alias – Copy of F6
Data Type – string[DT_STR]
Length – 50
When I execute the package I receive the following error:”
[Excel Source Data [76]] Error: There was an error with output column "F6" (91) on output "Excel Source Output" (85). The column status returned was: "The value could not be converted because
of a potential loss of data.".
I do know that usually the message "The value could not be converted because of a potential loss of data." refers to a data type or length problem.
Further insight to this problem will be much appreciated.Hi Zahid01,
From the error message you post, we can infer the issue is caused by the input column “F6” cannot convert to the output column in Excel Source.
Based on my test, I can reproduce the issue in my environment. The exactly cause is the data type of input column “F6” cannot convert to the data type of corresponding output column. For example, the data type of input column “F6” is [DT_STR], the data type
of corresponding output column is [DT_I4], and there are some nonnumeric values in the input column “F6”. When we execute the task, the error occurs. We can verify the issue in the Advanced Editor dialog box of Excel Source. The following screenshot is for
your reference:
To avoid this issue, please make sure the input column can convert to the output column in Excel Source, including all the values in the input column.
If there are any other questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
March's TechNet Wiki SSIS Guru Winners announced!!
The results for March'sTechNet
Guru competition have been posted!
http://blogs.technet.com/b/wikininjas/archive/2014/04/17/the-microsoft-technet-guru-awards-march-2014.aspx <- results page!
Congratulations to all our new Gurus for March!
We will be interviewing some of the winners and highlighting their achievements, as the month unfolds.
Below is a summary of the medal winners, the last column being a few of the comments from the judges.
Unfortunately, runners up and their judge feedback comments had to be trimmed from THIS post, to fit into the forum's 60,000 character limit, however the full version is shown in the link above.
Some articles only just missed out, so we may be returning to discuss those too, in future blogs.
BizTalk Technical Guru - March 2014
Tomasso Groenendijk
Using BAM in the ESB Toolkit
Ed Price: "Incredibly valuable and very well written! Great article!"
Mandi Ohlinger: "A custom BAM dashboard - LOVE it! Another great ESB addition to the Wiki."
TGN: "Nice one, I really liked this one, explains how to use the ESB together with BAM, great work and well explained!"
Steef-Jan Wiggers
Windows Azure BizTalk Services: Pulling Messages from a Service Bus Queue
Ed Price: "This is amazingly well written with beautiful images and formatting. Great job!"
TGN: "Azure, Azure, Azure! Nice one Steef-Jan, people are waiting on articles like this. Good job, and thanks for the contribution!"
Mandi Ohlinger: "A very informative How To. Screen shots are very helpful."
boatseller
Detecting a Missing Message
Mandi Ohlinger: "GREAT addition to the Wiki and to any user who suspects missing messages. The BizTalk support team can use this orchestration. "
Ed Price: "I love the visuals on the orchestration implementation! Important topic!"
TGN: "Nice article, great to see a solution to detect missing files."
Forefront Identity Manager Technical Guru - March 2014
Eihab Isaac
FIM 2010 R2 BHOLD: Non-BHOLD Approval Process
Ed Price: "Very thorough explanations! Great formatting and colors on the tables and code snippets! And the images are also helpful!"
PG: "Nice article, we need more of these."
Micah Rowland
FIM:How To Use PowerShell to View a Metaverse Object's Connector's Attribututes
Side By Side
PG: "Nice article, nice format. well written"
Ed Price: "Good code snippet and use of code comments. Could use more explanations and maybe breaking the code into sections with more information about each section. Good job!"
Giriraj Singh
FIM:Delete Bulk Expected Rule Entries Using FIM OTB features
Ed Price: "Good procedural steps! It could benefit from more explanations, a grammar pass, and some images. Good article!"
PG: "Short but nice article."
SharePoint 2010 / 2013 Technical Guru - March 2014
Matthew Yarlett
SharePoint: Use PowerShell to find Fields using a Managed Metadata TermSet
Jinchun Chen: "Good article."
Ed Price: "Although this is Matt's shorter article this month, this is an incredibly important topic, and the code is perfect! As Dan says in the comments: "Matthew Yarlett has done it again!! IMHO when it comes to SharePoint powershell
you are second to none." This is a great article!"
Rahul A Shinde
SharePoint 2013: Deploy and apply theme to SharePoint sites with PowerShell
Ed Price: "Fantastic explanations and use of images!"
Matthew Yarlett
SharePoint: Testing Email Alerts in UAT and DEV Environments
Jinchun Chen: "Nice! It can be used for troubleshooting SharePoint Incoming/Outgoing related issues too."
Ed Price: "Wow! This article is astonishingly thorough!"
Small Basic Technical Guru - March 2014
Nonki Takahashi
Small Basic: Centering Text in Graphics Window
RZ: "Clearly written explanation with nice graphics to go with it."
Ed Price: "I love having the three options like this! And the images really bring it to life! The links to the shared programs (with their source code) really help if you want to dig deeper and learn more!"
Nonki Takahashi
Small Basic Known Issue: 23589
- Controls.GetTextBoxText() Returns CR+LF as Newline from Multi-Line Text Box in Local but CR in Remote
RZ: "Bugs are always hard to track down, especially the unknown unknowns :( Good job on hunting it down!"
Ed Price: "This acts as a valuable KB article! Great addition to the troubleshooting library!"
Nonki Takahashi
Small Basic: Expression
RZ: "Good introduction to expressions"
Ed Price: "Short and sweet intro to Expressions. Thanks, Nonki!"
SQL BI and Power BI Technical Guru - March 2014
Michael Amadi
A Practical Example of How to Apply Power Query Data
Transformations on Structured and Unstructured Datasets
NN: "This is a terrific tutorial on Power Pivot with very helpful images. Great article"
Ed Price: "This is a fantastic combination of Power Query and Power Pivot... a valuable contribution!"
SQL Server General and Database Engine Technical Guru - March 2014
chandra sekhar pathivada
managing database backups across all the instances without maintenance plan
Samuel Lester: "Chandra, outstanding contribution and information! Your SSIS package handles many of the shortcomings of Maintenance Plans. MPs were originally created to assist DBAs with the more common administrative
tasks, but as the scale continues to grow across enterprise environments, we're all forced to write our own enhanced versions such as this. Thanks for the addition and please do add to the Gallery if you haven't yet."
Jinchun Chen: "Nice. It is suggested to add error outputs in the package to handler unexpected errors."
NN: "Good article. The SSIS solution can use a bit more explanation. Also See Also section is missing"
DRC: "This is good article, The only this which can be corrected is : ==> This can be achieved using “maintenance Cleanup Task • Maintenance Plan has a control flow item “maintenance Cleanup Task” to delete the old backup files based
on age of the backup, but it creates the problem when it deletes the full database backups based on n no.of days leaving all the dependent intermediate differential and transaction logs which are useless. "
Shanky
Understanding Logging in Tempdb.Is Tempdb re-created or rebuilt after SQL
Server restart
NN: "Very good article with an interesting analysis"
DRC: "This article is good and provides lots of detailed information along with sample query and screenshot. The screenshot of few need few more details (files of model are missing) This article can be broken down into 2 1) understanding
tempdb recreation 2) Logging in Tempdb 1) understanding tempdb recreation:- This is not concluded properly. The article doesnt talk about the physical files which are recreated even if we delete the tempdb files "
Samuel Lester: "Shanky, very nice article on the internals of TempDB! It was tough judging this month as both articles were very informative contributions!"
System Center Technical Guru - March 2014
Mr X
How to manage VM pinning within a Hyper-V cluster by
combining the use of System Center VMM and Orchestrator
Ed Price: "Mr. X, this is another incredibly thorough article! Fantastic job!"
Idan Vexler
Create Custom XML For OSD In SCCM
Ed Price: "Love the list of requirements! Very thorough in dividing each step!"
Omar Lopez (loplim)
SCOM 2012 - Create Alert / Monitor Based on Windows event ( Administrator login
alert )
Ed Price: "Good use of images. Could use a TOC with sections and more descriptions. Good job!"
Transact-SQL Technical Guru - March 2014
Jayakumaur (JK)
Understanding IDENTITY in SQL Server
Ed Price: "Wow, what a competitive month! This article is amazing, with thorough explanations in each section!"
Richard Mueller: "A good tutorial on an important feature of T-SQL."
Durval Ramos
Paging a Query with SQL Server
Ed Price: "Durval's article is fantastically thorough and easy to follow!"
Richard Mueller: "Very useful concept when populating controls from a query, which should improve performance. I like the images. Well done."
Naomi N
T-SQL: Split String with a Twist
Richard Mueller: "Very intersting problem with an original solution."
Ed Price: "A very powerful and well-articulated solution from Naomi!"
Visual Basic Technical Guru - March 2014
The Thinker
Exporting and Importing Wireless Settings Using Netsh in VB.NET
SB: "Code could be formatted better, task is something I can see as potentially useful although I would prefer a bit more narrative description and comments in the code explaining why it was done a certain
way, although the code is simple enough to work through."
MR: "Great tool code!"
Ed Price: "This is a good contribution! One way to improve an article like this is to explain the parts of the code more in depth, as a way to introduce each snippet (and maybe dividing a block up more). Then you could link to the Gallery
iteam if the reader wants to access the entire snippet at once. The images are also very helpful! Great job!"
Richard Mueller: "Perhaps this code should be in the gallery. There should be more explanation in a Wiki."
Visual C# Technical Guru - March 2014
João Sousa
ASP.NET WebAPI 2 - Stream Windows Azure blobs
NN: "Very nice tutorial and also can be downloaded from the Gallery"
Ed Price: "I love to see this ASP.NET content! Each step is very clear! Great code formatting!"
Raghunathan S
C# Code Compilation at Runtime from C# Windows Forms Application
Ed Price: "Good descriptions and code formatting. It could benefit from a TOC. Great article!"
NN: "This looks like an interesting article, but too short and the code is hard to read in its present format"
Raghunathan S
Creating a Simple logging class with System.Diagnostics namespace in C#
NN: "Good article, but too short"
Ed Price: "This is a pretty good article. It could benefit from a TOC and more descriptions around what the code is doing and why. Good job!"
Wiki and Portals Technical Guru - March 2014
Matthew Yarlett
Wiki: Basic Image Formatting using Pixlr
BL: "This deserves credit as much for the idea as for the actual article - many authors contribute from computers that may not have authoring tools installed and this simple online solution has the potential to iprove
quality a lot."
Richard Mueller: "Excellent explanation of a useful tool for Wiki authors. A "See Also" section would be useful."
PG: "Nice artilce, well done, nice layout. Great!"
NN: "Good article"
Durval Ramos
VBA & VBS Portal
NN: "Very good new portal about VBA. Introduction may be improved a bit"
Richard Mueller: "A great collection of Wiki articles. Excellent use of recommended features in a Wiki article."
PG: "Nice article good start!"
BL: "Another great initial compilation of relevant resources. Would be very interested in seeing how this develop over time."
Mr X
Wiki: System Center Orchestrator Portal
NN: "Good new portal. Missing See Also section with links to other portals"
Richard Mueller: "A good collection of articles. This Portal adds a lot to the TechNet Wiki."
PG: "Nice and neat article? Suggestion to add more references to related articles and platforms on Wiki."
BL: "great initial compilation of SC Orchestrator resources. Hoping this will grow over time as the product has a few other active Wiki contributors."
Windows Phone and Windows Store Apps Technical Guru - March 2014
Isham Mohamed
Pin Windows Phone 8 app to start screen on first launch.
Peter Laker: "A very useful and informative article! Also, Nice use of fonts and images."
Ed Price: "Good explanation, but it could benefit from a TOC and tweaked formatting. Good job!"
Ibraheem Osama Mohamed
Coming from an asp.net background, let’s build our first Windows Store Application
Ed Price: "Great job on the formatting, explanations, and code snippets!"
Peter Laker: "Excellent primer for those moving from asp.net and all beginners."
mcosmin
The Performance Analyzer Paradox
Ed Price: "This is a good philosophical article, but it would be richer with examples and visuals. "
Peter Laker: "Nice story, good reading, very worthy entry and gratefully received!"
Windows Presentation Foundation (WPF) Technical Guru - March 2014
Magnus (MM8)
WPF/MVVM: Handling Changes To Dependency Properties In The View
Ed Price: "Nice, thorough topic with good explanations! Could benefit from code formatting. Great article!"
Peter Laker: "A nice primer on a fundamental aspect of xaml. Great layout, images, descriptions, etc."
dev hedgehog
Trick To Use StaticResource With Path
Peter Laker: "A very useful and commonly pondered subject. Thanks for a great contribution!"
Ed Price: "This is a great solution with good code formatting and code comments!"
Windows Server Technical Guru - March 2014
Mr X
How to manage your DC/DNS servers with dynamic IPs in Windows Azure
JM: "This is an excellent article, however you need to change all instances of the term "on-promise" to "on-premise.""
JH: "really detailed, very complete with scripts added"
Richard Mueller: "This might be the best article I have judged. Code formatting could be improved, but otherwise an outstanding contribution."
Mr X
How to assign a private Static IP to a Windows Azure VM
JH: "excellent, concise, good topic"
Richard Mueller: "Excellent documentation of the use of very new tools to manage IP addresses."
JM: "Another excellent article, thanks much for your contributions!"
Mahdi Tehrani
Customize DST time zone configuration across the forest with GPO
JM: "This is an excellent article, however you need to change all instances of the term "Daylight Time Saving" to "Daylight Savings Time.""
JH: "good info, great illustrations and writing"
Richard Mueller: "Original work for an tricky problem. I think the script should run as a Startup script instead of a Logon script on the clients. A "See Also" section and links would help."
----------------- 8< -------------------
As mentioned above, runners up and their judge feedback were removed from this forum post, to fit into the forum's 60,000 character limit.
A great big thank you to EVERYONE who contributed an article to last month's competition.
Read all about THIS month's competition [usually in a stickied post] at the top of this forum, otherwise there is usually a list of forum links for this month's theme/announcement at the bottom of the submission page below:
http://social.technet.microsoft.com/wiki/contents/articles/23837.technet-guru-contributions-for-april-2014.aspx
Best regards,
Pete Laker
More about the TechNet Guru Awards:
TechNet Guru Competitions
#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 only
TechNet 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.Congrats to Michael:
SQL BI and Power BI Technical Guru - March 2014
Michael Amadi
A Practical Example of How to Apply Power Query Data
Transformations on Structured and Unstructured Datasets
NN: "This is a terrific tutorial on Power Pivot with very helpful images. Great article"
Ed Price: "This is a fantastic combination of Power Query and Power Pivot... a valuable contribution!"
Ed Price, Power BI & SQL Server Customer Program Manager (Blog,
Small Basic,
Wiki Ninjas,
Wiki)
Answer an interesting question?
Create a wiki article about it! -
SSIS Integration With Sharepoint 2013
Hello People,
I'am trying to import data from SharePoint 2013 to SQL Server. For that I install a codeplex package to install some SharePoints features to have access to Data Flows from SharePoint:
I already create the connections and insert the URL from my SharePoint. But When a click 'Ok' I'm having the follwing error:
Error at Data Flow Task [GSD Iberia Foundation Support [1]]: System.ServiceModel.ProtocolException: The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom
encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html dir="ltr" class="ms-isBot" lang="en-US">
<head><meta name="GENERATOR" content="Microsoft SharePoint" /><meta http-equiv="Content-type" content="text/html; charset=utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=10"
/><meta http-equiv="Expires" content="Thu, 14 May 2015 15:24:14 GMT" /><meta name="msapplication-TileImage" content="/_layouts/15/images/SharePointMetroAppTile.png" /><meta name="msapplication-TileColor"
content="#0072C6" /><link rel="shortcut icon" href="/_layouts/15/images/favicon.ico?rev=23" type="image/vnd.microsoft.icon" id="favicon" />
<script type='text/javascript'>
// <![CDATA[
var url = window.location.href; var g_initUrl='';
var hashSaverUrl = '';var keyName = 'MDSLoginAllowedUrl';var idx = url.indexOf('&' + keyName + '=');
if (idx != -1) {
var idx2 = url.indexOf('&', idx + 1);
if (idx2 == -1)
idx2 = url.length;
hashSaverUrl = url.s'.
Server stack trace:
at System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(HttpWebRequest request, HttpWebResponse response, HttpChannelFactory`1 factory, WebException responseException, ChannelBinding channelBinding)
at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.ListsService.ListsSoap.GetListAndView(GetListAndViewRequest request)
at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.ListsService.ListsSoapClient.ListsService_ListsSoap_GetListAndView(GetListAndViewRequest request)
at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.ListsService.ListsSoapClient.GetListAndView(String listName, String viewName)
at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.Adapter.ListsAdapter.GetSharePointFields(String listName, String viewId)
at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.ListServiceUtility.GetFields(Uri sharepointUri, NetworkCredential credentials, String listName, String viewName)
at Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.SharePointListSource.GetAccessibleSharePointColumns(String sharepointUrl, String listName, String viewName)
at Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.SharePointListSource.ValidateSharePointColumns()
at Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.SharePointListSource.Validate()
at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostValidate(IDTSManagedComponentWrapper100 wrapper)
Can you help me solving that problem?
Thanks you!!!Hi SaQvL,
Based on my test, we can use SSIS SharePoint List Adapters for SharePoint 2013.
The following steps test in my environment are for your references:
Download and Install SharePointListAdaptersSetup.msi or SharePointListAdaptersSetup_x86.msi.
Right-click the SSIS Toolbox pane to Refresh Toolbox, then we can see SharePoint List Source and SharePoint List Destination under Common group.
Create a SharePoint connection as SharePoint Credential in the package.
Double-click SharePoint List Source or SharePoint List Destination to open the dialog box.
Select the SharePoint Credential as Connection Manager in the Connection Managers pane.
In the Component Properties pane, paste the URL for the SharePoint site into the SiteUrl (exclude anything from the word Lists onward in the URL)
Example: if your SharePoint site URL for Lists is
http://sp2k13/sites/report/Lists/11/AllItems.aspx
then type http://sp2k13/sites/report as SiteUrl, type 11
as SiteListName, type All Items as SiteListViewName.
Finishing the mapping in the Column Mappings pane.
The following screenshot is for your reference:
Reference:
How To Use a SharePoint List as a Data Source in your SSIS Package
If there are any other questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
How do I create an Event Handler for an Execute SQL Task in SSIS if its result set is empty
So the precedence on my entire package executing is based on my first SELECT of my Table and an updatable column. If that SELECT results in an empty result set, how do I create an Event Handler to handle an empty result set?
A Newbie to SSIS.
I appreciate your review and am hopeful for a reply.
PSULionRPDepends upon what you want to do in the eventhandler. this is what you can do
Store the result set from the Select to a user variable.
Pass this user variable to a Script task.
In the Script task do whatever you want to do including failing the package this can be done by failing the script task, which in turns fails the package. something like
Dts.TaskResult = Dts.Results.Failure
Abhinav http://bishtabhinav.wordpress.com/
Maybe you are looking for
-
Can't watch video just purchased from Store on my Mac Pro w/ 23" Cinema Dis
I've searched on here and there are a few comments. But I don't understand. I just purchased one (thankfully) episode of a TV show from the iTunes store. Naturally I want to watch it. But "this movie cannot be played because a display that is not aut
-
How to replace a whole website
I recently redid a whole website for a friend and want to take all of his old web site down and replace it with mine which is currently stored on my computer, can someone tell me the steps of how to do this? Thanks
-
Suddenly Genres column disappeared from List view
Hi guys, I'm still running 8.0.2, and I can't figured out what happened; Genres column is disappeared from the list view and I couldn't find anyway to show it again. I also tried to reinstall iTunes 8.0.2, but nothing changed. Anyone know how to solv
-
Nearly half of the 128GB SSD space missing
Hi all, I have an MBA 2009, model A1304. The Hard drive system information says its an "Apple SSD SM128". But when I look at the available and total space, I have one partition 28.8GB (bootcamp) and one 38.8GB (Main MacOS). Those are the total sizes.
-
Can't stop Adobe Flash Player pop up
Long story short: all of the sudden videos on youtube won't play & some other webpages have display problems in Firefox (ok in IE) so I try to download Adobe Flash Player but my OS (Windows Me) isn't supported so could not install. Problem is it won'