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

Sending an HTML Mail Message with the Script Task

$
0
0

I really need help.

My task is to send a HTML Mail Message via SSIS and Script Task.

I am trying this VB.Code:

 Public Sub Main()
        Dim htmlMessageTo As String = _
     Dts.Variables("HtmlEmailTo").Value.ToString
        Dim htmlMessageFrom As String = _
          Dts.Variables("HtmlEmailFrom").Value.ToString
        Dim htmlMessageSubject As String = _
          Dts.Variables("User::HtmlEmailSubject").Value.ToString
        Dim htmlMessageBody As String = _
          Dts.Variables("HtmlEmailBody").Value.ToString
        Dim smtpConnectionString As String = _
   DirectCast(Dts.Connections("HtmlEmailServer").AcquireConnection(Dts.Transaction), String)
        Dim smtpServer As String = _
          smtpConnectionString.Split(New Char() {"="c, ";"c})(1)



        SendMailMessage( _
            htmlMessageTo, htmlMessageFrom, _
            htmlMessageSubject, htmlMessageBody, _
            True, smtpServer)

        Dts.TaskResult = ScriptResults.Success

    End Sub

    Private Sub SendMailMessage( _
        ByVal SendTo As String, ByVal From As String, _
        ByVal Subject As String, ByVal Body As String, _
        ByVal IsBodyHtml As Boolean, ByVal Server As String)

        Dim htmlMessage As MailMessage
        Dim mySmtpClient As SmtpClient

        htmlMessage = New MailMessage( _
          SendTo, From, Subject, Body)
        htmlMessage.IsBodyHtml = IsBodyHtml



        mySmtpClient = New SmtpClient(Server)
        mySmtpClient.Credentials = CredentialCache.DefaultNetworkCredentials
        mySmtpClient.Send(htmlMessage)

    End Sub

but it doesn't work out.

The Variables are ReadOnlyVariables in the Script Task Editor.

I am always getting a runtime error

at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) at Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTATaskScriptingEngine.ExecuteScript()

Please help !!!

Or just give me another soultion for my task. Please explain as simple as possible because I am new to SSIS.

Thanks in advance


HTTP Connection Manager for getting WebTrends Rest URLs

$
0
0

I've had a SSIS package set up to build REST URLs for 5 or so reports from WebTrends, which are then ran in the package using HTTP Connection Manager. These are saved in a folder, and then the rest of the package is grabbing those csv files and putting them in the staging tables. It has been working great for a year and a half, running twice a day. 

(The HTTP Connection Manager is using one of the REST URLs in the "Server URL" field, then I check the "Use credentials" and supply my WebTrends login information.  )

Last week the HTTP Connection Manager stopped working: when I test the connection I get "The underlying connection was closed: An unexpected error occurred on a send." Even if I remove the credentials I get this error.  I can do the process manually fine (paste the URL into IE/Edge and provide the same login info) on the same server.  And I tried a different server (same error) and my PC (same error).

Anyone else experience this?  Or have any idea on why it is suddenly not working? 

SSIS Gurus needed for July!

$
0
0

Come forth all you technical gurus and word wizards!

It's time to show us what you've got, what you know, what you found out!

Spare your fellow professionals from the same mistake!

Share your revelations and awesome ways of doing things!

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.

June's entries are with our judges right now, but here is a reminder of the previous month's winners.

Guru Award BizTalk Technical Guru – May 2016 
Gold Award Winner

Kjetil TonstadTop 10 Tips From a BizTalk Admin to BizTalk DevelopersTGN: “I love this, how to help each other. Well done Kjetil!”
JS: “Integration apps are a lot more than coding. Always remember these.”
SW: “Great article. With the current DevOps trend alignment between developers and administers is key!”
Ed Price: “This is a good set of tips, with a few helpful images, and the Reference links at the bottom give more context. Great job!”
Silver Award Winner

Eldert GrootenboerBizTalk Server: Processing large files (streaming)Ed Price: “Great mix of code, images, and descriptions. Although the code isn’t broken up much (with explanations of what the code does), all the code comments make up for it and make it super clear! Good to end with the See Also section!”
SW: “Streaming large message can be a challenge with BizTalk. This article provide guidance in that area. Very good!”
TGN: “I love this, well explained and a question that is very relevant to BizTalk”
Bronze Award Winner

SMSVikasKBizTalk Server 2013 R2 Dynamics CRM Online / On Premise CRUD Operations (Part 1)JS: “Seeing a lot of CRM lately. Good info for anyone who hasn’t worked with it before.”
SW: “CRUD om Dynamics guidance article. Good”
Ed Price: “Great description (I like CRUD) and fantastic use of images, although it would be better with more explanations in the text.”
TGN: “Why did you split these up into to articles? good article though”

Guru Award Forefront Identity Manager Technical Guru – May 2016 
Gold Award Winner

Peter GeelenFIM2010 / MIM2016: Run profile statistics with PowerShell and Excel Pivot TablesEd Price: “I love the code formatting with the scroll bar. Great explanations and use of images!”
Silver Award Winner

Peter GeelenFIM2010 / MIM2016: Run profile statistics with SQL and Excel Pivot TablesEd Price: “It’s great to have the downloads on TechNet Gallery!”

Guru Award Microsoft Azure Technical Guru – May 2016 
Gold Award Winner

Bhushan GawaleGetting Started with Azure Automation DSCAS: “Very good and helpful article! Thanks for publishing!”
Ed Price: “Great starting point for learning Azure Automation DSC! Good use of images and code, with excellent explanations!”
Silver Award Winner

Sibeesh VenuCreating Azure Mobile App With Visual Studio AS: “Good starting point, but for me all screenshots are broken – none of them is visible. I would find it particularly useful if you just have provided links to a more detailed article(s) on how to configure Visual Studio for windows Mobile development. And probably just show a sample with HTML/JS or UWP (if it is available)”
Ed Price: “What an important topic that’s very well described! The images add a lot of value!”
Bronze Award Winner

Sandro PereiraAzure Logic Apps: Tips and Tricks about the “new” Logic Apps DesignerAS: “A good overview of designer features! I would however also expect to see the less known fact that drop down lists are actually filtered and there is much more to discover when you begin typing into the search field.”
Ed Price: “The images are magnificently assembled to make this process incredibly clear. A very important topic! Great job!”
Guru Award Miscellaneous Technical Guru – May 2016 
Gold Award Winner

ChilbertoConnecting a BitBucket Repository to Visual Studio Team ServicesRichard Mueller: “Well explained. We need links/references.”
Ed Price: “Great use of images. This is a fantastic scenario! It could use a See Also section. “
Silver Award Winner

Carmelo La MonicaManage analog sensor with Raspberry pi2Richard Mueller: “Grammar needs work and we need links/references.”
Ed Price: “Thorough, and great to have the code and images! But it could benefit from breaking apart the code and explaining what it does more, as well as ending with See Also and References sections. Great to have the TOC.”

Guru Award SharePoint 2010 / 2013 Technical Guru – May 2016 
Gold Award Winner

Dan ChristianHow to build a custom report for SharePoint Server lists, libraries or sitesJohn Naguib: “Great one well done”
Margriet Bruggeman: “Great article with not only text, but also images and videos to make this very user friendly.”
Hezequias Vasconcelos: “Great article. Content technical good. Well detailed, great of attached reference materials. Excellent technical guide.”
Ed Price: “Fantastically thorough, with great images and explanations, and once again, your YouTube videos just blow me away, with how well they help tell the story and are integrated into the article like this! It’s a true art form!”
Silver Award Winner

Waqas SarwarSharePoint 2016 How to Change SuitBar’s Text PowerShellHezequias Vasconcelos: “Good content new platform SharePoint 2016. great scripts and well distributed in the Shell”
Ed Price: “Short and sweet! Fantastic scenario. It could use more references and links to other Wiki articles.”
Bronze Award Winner

Vivek JAGGAAlternative Solutions to the Deprecated Features in SharePoint 2016Ed Price: “I love how you’re very clear at the front of this article (as an overview) and then dig deeper into the specifics. Good references at the end.”
John Naguib: “Nice article you can add also the development area”
Margriet Bruggeman: “Useful article with good alternatives. “

Guru Award Small Basic Technical Guru – May 2016 
Gold Award Winner

Philip MuntsSmall Basic: Simpler and Cheaper Raspberry Pi GPIOMichiel Van Hoorn: “This is really Awesome (see also the original article). It opens up Small Basic to the real world. ”
Ed Price: “Building off his Raspberry Pi article, this article does an amazing job of digging deeper and showing you more options, such as Raspberry Pi Zero.”
Silver Award Winner

Nonki TakahashiSmall Basic: ImageMichiel Van Hoorn: “Really cool overview of working with Images (like photos) in SmallBasic. We good topic to inspire programming”
Ed Price: “Very thorough end to end overview of using Images!”

Guru Award SQL BI and Power BI Technical Guru – May 2016 
Gold Award Winner

Greg DecklerGood Ol’ VLOOKUP – The Ultimate Guide to Lookups in Power BIPT: “Quite a valuable and well-written article. Thank you for the extensive coverage of various lookup techniques.”
RB: “Interesting comparison of the lookup techniques available within Power BI.”
Silver Award Winner

Anil MaharjanHow to find a Calculated Measure and Calculated Dimension within a particular cubePT: “This submission a very brief and just mentions a little information that is common knowledge and easily discovered with a simple web search.”
RB: “Interesting tip, a screen dump of the result with all the columns would have been great.”

Guru Award SQL Server General and Database Engine Technical Guru – May 2016 
Gold Award Winner

ChervineStretching SQL Server 2016 tables to the Azure CloudJS: “Great article, your explanations and samples are spot on.”
Ed Price: “Super valuable scenario! Love the diagram, code snippets, and screen shots!”
Silver Award Winner

ShankyWhat Does Fragmentation Means In a Heap Table In SQL ServerEd Price: “Very thorough! Great references at the end.”

Guru Award System Center Technical Guru – May 2016 
Gold Award Winner

vishwanatham sridharSCOM Connector Design prototypeEd Price: “Great scenario with some helpful reference links!”
Silver Award Winner

Anders RodlandSCCM 2012 R2 step-by-step: upgrade of SP1 to current branch – Step by StepEd Price: “Missing the images. Very thorough steps! Great use of the TOC. Could benefit from references.”
Bronze Award Winner

Anders RodlandSystem Center Configuration Manager Build NumbersEd Price: “Good collection of builds and KBs!”

Guru Award Transact-SQL Technical Guru – May 2016 

Guru Award Universal Windows Apps Technical Guru – May 2016 
Gold Award Winner

Namrah KhurramTraffic Lights Simulation via LEDs on Raspberry PiTGN: “Man this is cool. Good information and well structured. well I’m impresses Namrah!”
Ed Price: “A cool scenario that’s masterfully explained! The code has great formatting. It could benefit from See Also and References sections at the end.”
Silver Award Winner

Manuel Cota“DrawIndexedInstanced and the Concepts behind a Home-Made Game Engine”Ed Price: “It could benefit from a TOC at the top and from See Also and References sections at the bottom, but I love how this breaks down the code and explains everything in depth! Great use of diagrams!”
TGN: “I learned a lot from this article. Well done, thanks for sharing!”
Bronze Award Winner

Sajid Ali KhanUWP: Things Required To Do Right After Creation of New ProjectEd Price: “Great use of images and good References section at the end! I love how the code is both on GitHub and MSDN Gallery and how the download links are given!”
TGN: “This can help a lot of people, my favourite this month! Thanks for sharing Sajid”

Guru Award Visual C# Technical Guru – May 2016 
Gold Award Winner

Emiliano MussoEntity Framework Introduction using C#, part IEd Price: “This is a masterful article, It’s thoroughly broken down, and it leverages images, great code formatting, and even a download and an Italian language version at the end!”
Jaliya Udagedara: “Great article with step by step explanation. If you are a newbie to EF, read this one article which will cover most of the basics. And you can download the sample code from MSDN Code Gallery.”
Carmelo La Monica: “Good and very impressive article, it explain in all parts Entity Framework 7, i attend second part “
Silver Award Winner

SYEDSHANUMVC ASP.NET Identity customizing for adding profile imageCarmelo La Monica: “Very good expression, good images and very detailed in all parts.”
Ed Price: “Very thorough steps! Great scenario!”
Jaliya Udagedara: “Good article explaining how you can manage your profile picture with a ASP.NET MVC application. Sample code is available in MSDN Code Gallery.”

Guru Award Wiki and Portals Technical Guru – May 2016 
Gold Award Winner

Peter GeelenWiki: Fixing table layout (table right side off page)Richard Mueller: “Great information that will help a great deal to fix tables in the Wiki. Good use of Wiki guidelines.”
Ed Price: “This is a fantastic solution from Peter!”

Guru Award Windows PowerShell Technical Guru – May 2016 
Gold Award Winner

Matt McNabbOffice 365: How to Manager User License Lifecycle with PowerShellEd Price: “Wow! Great description of these steps, and it ends well with several other links to dig into!”
Richard Mueller: “Good TOC. An excellent idea to code this and overcome limitations. This should be very useful.”
Silver Award Winner

Arleta WanatSharePoint Online: Get all checked-out files using PowershellRichard Mueller: “Good headings and TOC. Good ideas and well explained.”
Ed Price: “Great scenario and use of PowerShell code!”

Guru Award Windows Server Technical Guru – May 2016 
Gold Award Winner

Kia Zhi Tang (Ryen Tang)Nano Server: Using New-NanoServerImage with Show-Command to deploy Nano ServerMark Parris: “Excellent article on the deployment of Nano server. ”
JM: “This is an excellent article on building a new Nano Server, thanks for your contribution!”
Richard Mueller: “Good use of Wiki guidelines, with even horizontal rules and Return to top links. Show-Command is a very interesting feature I like a lot. Good references.”

Thanks in advance!
Pete Laker


#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 toTechNet Wiki, for future generations to benefit from! You'll never get archived again, and you could win weekly awards!

Have you got what it takes o become this month's TechNet Technical Guru? Join a long list of well known community big hitters, show your knowledge and prowess in your favoured technologies!

[OLE DB Destination [471]]: The source and target columns must be in the same order in the INSERT BULK statement

$
0
0

[OLE DB Destination [471]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "The source and target columns must be in the same order in the INSERT BULK statement.".

Started getting above message from last few days.

SAme package has ran fin for a month so not sure what is causing this.

Target is Azure DW and when I choose normal mode of data insertion it is giving error that table does not exist. i think it has to be due to schema call that task makes before running.

Any one has any idea about this error?

Thanks,

Dilkush


Thanks, Dilkush Patel Microsoft SQL Developer Support Microsoft Corporation

SSIS SharePoint List Adapter - Failure when running under SQL Agent SQL2008R2

$
0
0

Hello

I have downloaded and installed the SharePointListAdaptersSetup.msi, loaded the components into BIDS (2008), pulling data from a sharepoint list into SQL, all runs fine in BIDS. Load the package onto SQL Server 2008R2 into MSDB. I then set up a Job under SQL server agent and get the following (note I have also installed the msi above ont he server and restarted the services) Can anyone help?

Executed as user: PALTD\SQLSERVER. Microsoft (R) SQL Server Execute Package Utility  Version 10.50.1600.1 for 64-bit  Copyright (C) Microsoft Corporation 2010. All rights reserved.    Started:  11:30:00  Error: 2011-07-28 11:30:00.53     Code: 0xC00490F7     Source: Export Data Export Data (Timesheet SharePoint List [235])     Description: The managed pipeline component "Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.SharePointListSource, SharePointListAdapters, Version=1.0.0.0, Culture=neutral, PublicKeyToken=933a2c7edf82ac1f" could not be loaded.  The exception was: Could not load file or assembly 'SharePointListAdapters, Version=1.0.0.0, Culture=neutral, PublicKeyToken=933a2c7edf82ac1f' or one of its dependencies. The system cannot find the file specified..  End Error  Error: 2011-07-28 11:30:00.53     Code: 0xC0047067     Source: Export Data Export Data (SSIS.Pipeline)     Description: The "component "Timesheet SharePoint List" (235)" failed to cache the component metadata object and returned error code 0x80131600.  End Error  Error: 2011-07-28 11:30:00.53     Code: 0xC004706C     Source: Export Data Export Data (SSIS.Pipeline)     Description: Component "component "Timesheet SharePoint List" (235)" could not be created and returned error code 0xC0047067. Make sure that the component is registered correctly.  End Error  Error: 2011-07-28 11:30:00.53     Code: 0xC0048021     Source: Export Data Export Data (Timesheet SharePoint List [235])     Description: The component is missing, not registered, not upgradeable, or missing required interfaces. The contact information for this component is "".  End Error  Error: 2011-07-28 11:30:00.53     Code: 0xC004801F     Source: Export Data Export Data (SSIS.Pipeline)     Description: The component metadata for "component "Timesheet SharePoint List" (235)" could not be upgraded to the newer version of the component. The PerformUpgrade method failed.  End Error  Error: 2011-07-28 11:30:00.70     Code: 0xC004801F     Source: Export Data SSIS.Pipeline     Description: The component metadata for "component"Timesheet SharePoint List" (235)" could not be upgraded to the newer version of the component. The PerformUpgrade method failed.  End Error  Error: 2011-07-28 11:30:00.78     Code: 0xC0048021     Source: Export Data Timesheet SharePoint List [235]     Description: The component is missing, not registered, not upgradeable, or missing required interfaces. The contact information for this component is "".  End Error  Error: 2011-07-28 11:30:00.78     Code: 0xC0047017     Source: Export Data SSIS.Pipeline     Description: component "Timesheet SharePoint List" (235) failed validation and returned error code 0xC0048021.  End Error  Error: 2011-07-28 11:30:00.78     Code: 0xC004700C     Source: Export Data SSIS.Pipeline     Description: One or more component failed validation.  End Error  Error: 2011-07-28 11:30:00.78     Code: 0xC0024107     Source: Export Data      Description: There were errors during task validation.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  11:30:00  Finished: 11:30:00  Elapsed:  0.593 seconds.  The package execution failed.  The step failed.

Connection Manager Works Locally Not on Stage Server

$
0
0

I have an SSIS package which makes an Oracle OLEDB connection using MSDAORA. The connection uses a specific user name and password. The SSIS package is triggered from a SQL Agent Job.  The job uses a proxy account as DOMAIN\MYUSER in order to give network path access to a stored procedure called from the package. When executing the job on my local machine it execute perfectly.  However, when I run the SQL Agent Job on the stage server it errors.  The package is exactly the same and the setup of the job is exactly the same.  Here is the error.  Any idea?

Executed as user: DOMAIN\MYUSER. Microsoft (R) SQL Server Execute Package Utility  Version 10.0.5500.0 for 32-bit  Copyright (C) Microsoft Corp 1984-2005. All rights reserved.    Started:  10:35:19 AM  Error: 2016-07-05 10:35:22.21     Code: 0xC0202009     Source: Report  IDV Connection manager "CCI"     Description: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80070005.  An OLE DB record is available.  Source: "Microsoft OLE DB Service Components"  Hresult: 0x80070005  Description: "Access is denied.".  End Error  Error: 2016-07-05 10:35:22.23     Code: 0xC020801C     Source: CCI Contact Information OLE DB Source [1]     Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager"CCI" failed with error code 0xC0202009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.  End Error  Error: 2016-07-05 10:35:22.24     Code: 0xC0047017     Source: CCI Contact Information SSIS.Pipeline     Description: component "OLE DB Source" (1) failed validation and returned error code 0xC020801C.  End Error  Error: 2016-07-05 10:35:22.24     Code: 0xC004700C     Source: CCI Contact Information SSIS.Pipeline     Description: One or more component failed validation.  End Error  Error: 2016-07-05 10:35:22.24     Code: 0xC0024107     Source: CCI Contact Information      Description: There were errors during task validation.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  10:35:19 AM  Finished: 10:35:22 AM  Elapsed:  2.469 seconds.  The package execution failed.  The step failed.

SSIS error could not find installable isam

$
0
0

Hi, I am pulling data from access 2003 database to SQL Server 2014 and have ace oledb provider installed but I still get "could not find installable isam". I am using vs ssdt 2013. Please let me know how to fix this?

Thanks in advance....


SQLEnthusiast


SSIS Packages not reading database connection from config file

$
0
0

We are using SSIS Packages for the 1st time and have a number of packages ready to go into production. We want to use config files with these packages so that we only need to change config file if we have changes.

My config file looks as follows: Its a very simple packages that executes a SP and writes data to a table. The table is then read back in and details written directly to a file.

<?xml version="1.0"?><DTSConfiguration><DTSConfigurationHeading><DTSConfigurationFileInfo GeneratedBy="PRD\21603" GeneratedFromPackageName="SSIS_Daily_PCC_To_CIF" GeneratedFromPackageID="{C5DD332C-A245-44BE-964A-C0FCBE0482F9}" GeneratedDate="29/02/2015 08:16:00"/></DTSConfigurationHeading><Configuration ConfiguredType="Property" Path="\Package.Connections[PCCtoCIFConn].Properties[ConnectionString]" ValueType="String"><ConfiguredValue>\\vs1-alpfc9\sbcit\IT\SSIS Outputs Prod\ConnectDirect\PCCToCIF\PCCtoCIF.txt</ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Connections[NAPS_SQL].Properties[ConnectionString]" ValueType="String"><ConfiguredValue>Data Source=VS1-SQLCTST-01;Initial Catalog=NAPS;Provider=SQLNCLI11.1;Integrated Security=SSPI;Auto Translate=False;</ConfiguredValue></Configuration></DTSConfiguration>

However, I can change the file location on the config file and execute the package and it will write to the new file location but if I change the database name, this is not picked up and the package still continues to run from database name specified in the actual package and not from the entry in the config file

Your help would be much appreciated.

Regards

Ann Marie


Regarding checking an empty or null column in conditional split in ssis

$
0
0

Hi,

I have a column called Manager_GEID and I want to check whether this column contains null values or not. If it contains null values then i want to put it under an invalid category and if not then I want to put it under a valid category.

I am using the below expression in conditional split in ssis to check this:

Valid category: !ISNULL(mgr_geid)

Invalid Category: ISNULL(mgr_geid)

But this is not working the wat it is expected to. Please help.

Thanks

SSIS package take more time than usual

$
0
0

Hello everybody
I am new in sql server and the task assigned to me is to follow the SSIS jobs launched by SQL Server Agent.

Today I had a run-time problem of an SSIS package, it makes more time than usual.

the package is related to another master package
Usually , the execution is done one after the other but in my case the second package run 3 times before than the other starts.
Master.dtsx package ( allows to load a  tabular
cube and should run every 15 minutes but in my case the because of  the package "Alimentation TotaleDWHTotale.dtsx " how runs 3 times successively, master takes more than 40 minutes and directly affects the cube .
What can I do to find  why the job has run 3 times ?and what can I do to avoid it is still happening at other times .
For information, the afternoon the problem disappeared and the package are executed in the order

SSIS FTP Task sleep mode

$
0
0

Hi,

We need to use FTP task in our SSIS packages. The scenario is like this.

Initially we need to send a file to Vendor FTP Server. This file contains a command. Vendor opens a file and looks at command and based on that they will generate a file on their end. This is what need to happen in SSIS package.

1) Using FTP task, need to send a file to vendor via FTP

2) Package need to wait or sleep for 30 seconds because vendor takes 30 seconds to generate a file.

3) After 30 second FTP task should get a file and place it in local folder and then proceed with rest of the tasks execution in the package.

How can make FTP task to go into sleep mode and then resume execution

Please let me know how to handle this.

Thanks,

Spunny

Too many columns found in the current row; non-whitespace characters were found after the last defined column's data

$
0
0

Hello all,

I am using DTS packages in sql server 2005.i am scheduling these dts packegs in sql server.DTS jobs failed.I am facing one error in jobs .

Can you please see the error below.

Please provide any solution.

TSRun OnProgress:  DTSStep_DTSDataPumpTask_1; 154000 Rows have been transformed or copied.; PercentComplete = 0; ProgressCount = 154000

DTSRun OnProgress:  DTSStep_DTSDataPumpTask_1; 155000 Rows have been transformed or copied.; PercentComplete = 0; ProgressCount = 155000

DTSRun OnProgress:  DTSStep_DTSDataPumpTask_1; 156000 Rows have been transformed or copied.; PercentComplete = 0; ProgressCount = 156000

DTSRun OnProgress:  DTSStep_DTSDataPumpTask_1; 157000 Rows have been transformed or copied.; PercentComplete = 0; ProgressCount = 157000

DTSRun OnProgress:  DTSStep_DTSDataPumpTask_1; 158000 Rows have been transformed or copied.; PercentComplete = 0; ProgressCount = 158000

DTSRun OnProgress:  DTSStep_DTSDataPumpTask_1; 159000 Rows have been transformed or copied.; PercentComplete = 0; ProgressCount = 159000

DTSRun OnProgress:  DTSStep_DTSDataPumpTask_1; 160000 Rows have been transformed or copied.; PercentComplete = 0; ProgressCount = 160000

DTSRun OnProgress:  DTSStep_DTSDataPumpTask_1; 161000 Rows have been transformed or copied.; PercentComplete = 0; ProgressCount = 161000

DTSRun OnProgress:  DTSStep_DTSDataPumpTask_1; 162000 Rows have been transformed or copied.; PercentComplete = 0; ProgressCount = 162000

DTSRun OnProgress:  DTSStep_DTSDataPumpTask_1; 163000 Rows have been transformed or copied.; PercentComplete = 0; ProgressCount = 163000

DTSRun OnProgress:  DTSStep_DTSDataPumpTask_1; 164000 Rows have been transformed or copied.; PercentComplete = 0; ProgressCount = 164000

DTSRun OnProgress:  DTSStep_DTSDataPumpTask_1; 165000 Rows have been transformed or copied.; PercentComplete = 0; ProgressCount = 165000

DTSRun OnError:  DTSStep_DTSDataPumpTask_1, Error = -2147209197 (80043013)

   Error string:  Error at Source for Row number 165292. Errors encountered so far in this task: 1.

   Error source:  DTS Data Pump

   Help file:  

   Help context:  0



Error Detail Records:



Error:  0 (0); Provider Error:  12307 (3013)

   Error string:  Too many columns found in the current row; non-whitespace characters were found after the last defined column's data.

   Error source:  Microsoft Data Transformation Services Flat File Rowset Provider

   Help file:  DTSFFile.hlp

   Help context:  0



DTSRun OnError:  DTSStep_DTSDataPumpTask_1, Error = -2147209197 (80043013)

   Error string:  Too many columns found in the current row; non-whitespace characters were found after the last defined column's data.

   Error source:  Microsoft Data Transformation Services Flat File Rowset Provider

   Help file:  DTSFFile.hlp

   Help context:  0



Error Detail Records:



Error:  0 (0); Provider Error:  12307 (3013)

   Error string:  Too many columns found in the current row; non-whitespace characters were found after the last defined column's data.

   Error source:  Microsoft Data Transformation Services Flat File Rowset Provider

   Help file:  DTSFFile.hlp

   Help context:  0

DTSRun OnFinish:  DTSStep_DTSDataPumpTask_1

DTSRun:  Package execution complete.

Please help me.

SSIS log provider for xml files. Release XML, the file stays locked after execution

$
0
0

Hi guys!!Has the title says, I am using the SSIS log provider for xml files in one of my package.  The problem is that the file is kept locked after execution.  I don't get it!!  I've been using the same log provider in all of my packages...  but this one? Nope!! Not working properly!!  Any idea why ? 


Mylene Chalut


Change Multiple Input Columns' Data Types at Once

$
0
0

I am using SQL Server Data Tools 2015 to make an Integration Services Project. On the Data Flow side, I have a Derived Column feeding into a Data Conversion.Important: The table I am working with has hundreds of columns, so I am trying to do this as efficiently as possible. My question is this: In the Data Conversion Transformation Editor, I want to change the Data Type of many input columns to a four-byte integer. I do not want to click the drop-down menu for each of the columns and select the 4 byte Int data type. Is there a faster way I can do this (Highlight the columns and trying to change them all at once did not work)?

Please help me out.

Thanks.

OLE DB Destination Editor: Not Mapping Well Automatically

$
0
0

I am using SQL Server Data Tools 2015 to create an Integration Services Project. On the Data Flow side, my data is ultimately going into an OLE DB Destination.Important: the table I am working with has hundreds of columns and I am trying to avoid clicking the mouse for each column. On the "Mappings" section of the OLE DB Destination Editor, I was hoping that the Input Columns would be matched automatically to the Destination Columns of my database. I spent a lot of time ensuring that the input and destination column names were spelled EXACTLY the same, so that they would be mapped automatically. However, despite all my efforts, so many columns are not being automatically matched. Why/How can the column matching be improved...they already have the same names and Data Tools is still not recognizing the matches!

Please help me so I don't need to click 400 times in the drop down menu.

Thank you.


SSIS Package works on local machine but doesn't work on Server - vs_needsnewmetadata

$
0
0

I have an SSIS package that runs perfectly on my local machine. When I put it out on a server I get the following error message: Error: "PG_SISTEMADETALHE" failed validation and returned validation status "VS_NEEDSNEWMETADATA".

PG_SISTEMADETALHE is an ODBC Source within Data Flow Task that has others ODBC Sources that do similar things: get data from PostgreSQL and copy to SQL Server. The major (and annoying) problem is that not all tasks are failing on that validation. I have ODBC Sources that have query inside that work and others that don't work. ODBC Sources that gets directly the table name and work.

For testing propose I created a test package and tested all ODBC Sources one by one. So it doesn't seem to be a problem on outdated references.

I'm developing SSIS packages on "SQL Server Data Tools para Visual Studio 2013" version "12.0.21.005.1" and my SQL Server version is 12.0.4439

Does anybody has a clue about how to solving this?

Connection string changes mess up the solution - pls help

$
0
0
Hi,
I have a ssis 2012 soluion with 10 packages. I am refering two databases. so, there are two conecton managers in the solution.
Sometime back, they moved the database from one server  to another server. So, In my solution also I changed the server name - But what happened is, all the things inside the things messed up and I could not see anything. Especially, oledb destination, lookups , just changed the connection manager did not work and I had to do all the work again.
Tomorrow, they are going to change the database again from that server to another server. Now, my question is, since my solution now pointing to old server, tomorrow when they change it, will i loose all the stuffs and I had to do it again? thats a lot of work and I am sure I am missing something. Can some experts help me to solve this - that would be of great help!

Runtime error Exception has been thrown by the target of an invocation” from Script task

$
0
0

I have a SSIS package with a script task, I get the following error when i try to run it in my local system. It works fine for my collegues as well as in production. However, I am not able to run it locally, to test. I keep a debug point in the main method, but it is never reached, I get the error before it goes to main method.

I am using VS 2010, .Net framework 4.5.

The script task does compile. I get the following messages SSIS package "..\Test.dtsx" starting. Error: 0x1 at Test: Exception has been thrown by the target of an invocation. Task failed: Test SSIS package "..\Test.dtsx" finished: Success. The program '[2552] DtsDebugHost.exe: DTS' has exited with code 0 (0x0).

VS2013 and SSIS packages running WRONG package

$
0
0

Hi,

I have an integration project with many SSIS packages.   I open one package, and then click "Start" to run that one package, then visual studio decides to pick another package in the project at random and run that one instead.  I have my machine and a server with VS2013 and they both do it.  Even when I right-click the package and choose "execute package", there is a 50% chance it will still run something else.  

Anyone else encountering this or know how to stop it from doing this?

Thanks!

Cast GETDATE() to DT_STR using expression builder?

$
0
0
Having trouble casting GETDATE() to a string value (DT_STR) using expression builder?  I want to concatenate the current date to some text used in a send mail task.  Any help would be appreciated.

Stan Benner

Viewing all 24688 articles
Browse latest View live


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