Issue with Dataflow Task in SSIS Package

Hello Everyone,
I have recently created an SSIS package to Load data from Flat file to SQL Server Table, it was working fine. Now I have bought a new laptop and copied the projects into this new system and changed all the connection managers(Flat files) accordingly. 
Problem is, when I previously ran the package(With File1) in old laptop and check the distinct count on a table it was perfect, but when I ran the same package with same File on New Laptop, the Distinct count gives me an issue with particular record.
Eg: Distinct Count with old laptop Run , 10,20,100
      Distinct Count with old New Run , 10,20,100  , 100
There is a Space being generated for a particular record, when I run the package on new laptop with same File as old one.
Any suggestions on this, I could not exactly figured out the Issue.
Please Help.
Thanks
Thanks, Please Help People When they need..!!! Mark as answered if your problem is solved.

You need to tell the responders here how exactly to reproduce your issue and provide the file.
I do not know how the "distinct count" works.
Seems to me it appears to be a database issue not SSIS.
Arthur
MyBlog
Twitter
When I perform the above query on old laptop, this gives me a result set of
10
20
100
When I perform the Same query on New laptop, this gives me a result set of
10
20
100
'100  ' (No Quotes please see the spaces generated)
Thanks, Please Help People When they need..!!! Mark as answered if your problem is solved.
Can you give us an idea of tasks you're having after the file source?
Particulary see steps where you are doing some data manipulations.
Please Mark This As Answer if it solved your issue
Please Mark This As Helpful if it helps to solve your issue
Visakh
My MSDN Page
My Personal Blog
My Facebook Page
I am using simple Flatfile source and oledb destination in here. this is causing issue, all the other tasks after this are loading perfectly except this.
Thanks, Please Help People When they need..!!! Mark as answered if your problem is solved.

Similar Messages

  • Issues with Approval Task IN IDM 7.1

    Hi,
    I have been facing issues with Approval task.
    Firstly,
    I have created an Approval task with 'Mskeyvalue' and 'Mxref_mx_privilege' as attributes.
    I am having a problem in the Approvers workflow UI where, we see these approvals.
    It not only displays the requested privilege,but also the already provisioned privileges of the enduser to the approver.
    He will not be able to recognize which privilege has been requested.
    Is this an already known issue which has been sorted out in recently updated patches?
    If not can you suggest me a solution for this.
    Secondly,
    The privilege requested by the end-user is getting provisioned to the backend,even before it is Approved.
    Since Provisioning tasks are mapped through repository,privileges are getting provisioned as soon as
    an entry is made into the Identity Stores.
    But,Ideally the requested privilege should not be proviosioned to the backend until it is approved by the Approver.
    Is this an already known isuue which has been sorted out in recently updated patches?
    If not can you suggest me a solution for this.
    Thanks and Regards,
    Joel
    Edited by: Joel Sundararajan Davis on Jul 16, 2009 11:04 AM

    Joel,
    I'm afraid the approval process is not quite this simple.  You are correct, if you have provisioning setup on the repository for a privilege it will be assigned immediately.  The approval task as you are using it works as an 'interrupt' to a process - nothing more.
    There is an entry type called pending value that you would need to leverage in order to have privileges requested route for approval.  This pending value object is created by default for role requests in 7.1, but I'm not sure how to create a pending value for a privilege.
    Which brings to mind a question - is there a reason you want users to request privileges instead of roles? In general I think the security model is setup so that users are assigned roles which contain one or more privileges.
    If you do choose to use a role instead of privilege, simply set the attribute MX_APPROVAL_TASK to the id of the approval task you want to use and the system will do the rest.  The display you referenced in the first part of your question will always display the current values of the attributes you select for the user, so don't try to display the roles there - just display the user id, name, whatever else is helpful and when the approver clicks on the user id they will get the approval details which will include the requested role.
    Also, please note that if you would like to assign a role directly anywhere (bypass approvals) you can use the switch: {direct_reference=1}
    -Geoff

  • CAT2 - Issue with workflow task TS20000460

    Reposting the query in ABAP General Section.
    CAT2 - Issue with workflow task TS20000460
    Waiting for any suggestion?
    Edited by: Amit Khare on Sep 10, 2009 3:01 PM
    Closing due to no responses.
    Edited by: Amit Khare on Sep 10, 2009 3:40 PM

    Hi,
    Could you figure out why the event linkage is breaking when you make it Gen.Task? I think, there is some problem in your wflow template. May be do a Syntax Check in the testing environment. If that time, some error happens, then by the System Defaults in the Event linkage SWETYPV, it will deactivate the linkage.
    I don't think this has got anything to do with you making TS as Gen.Task. Did you see the even trace to see what's the error for linkage breaking ?
    More info. would help in identifying the issue.
    Regards,
    venu

  • Issue with Temp tables in SSIS 2012 with RetainSameConnection=true

    Hello,
    We have few packages written in 2008 and are being upgraded to 2012. Our package mostly uses temp tables during the process.  During initial migration, we faced issue with handling temp table in the OLE Db destination provider and found a solution for
    the same under 
    usage of Temp tables in SSIS 2012
    Most of our packages execute fine now. 
    we came across a different issue recently. For one of our package, which merges 3 feeds into a temp table and then executes a stored procedure for processing, the package fails intermittently.
    Below are properties of SSIS and its components, which you might be interested
    * Retainsameconnection for the OLE Db connection manager set to True
    * properties of OLEDB Destination 
    AccessMode : SQL Command
    CommandTimeOut : 0
    SQLCommand : Select * from #tmp
    * using SSIS 2012 and SQL OLEDB Native Provider 11 (Provider=SQLNCLI11.1)
    * one of the feed is 10MB
    During investigation using profiler, found that though I use RetainSameConnection, I often  could see that more than one SPId is used during the scope of SSIS execution and when ever this happens, package fails with below error message 
    An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80040E14 Description: "Statement(s) could not be prepared.".
    An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80040E14 Description: "Invalid object name '#tmp'."
    Now, Why SSIS uses a different SPId during its execution when RetainSameconnection is set to True (note : I have only one OLEDB connection in that package)? 
    To simulate the issue, Instead of 10MB file, I used a 500KB file and execute the package twice and all went fine.
    Is it because of 10 MB file taking long time to process causing the time out of that OLEDB destionation forcing the SSIS to go for another connection? but remember, CommandTimeout is set to infinite(0) for that OLEDB destination. 
    Much appreciated your response. 

    Hey,
    I understand you used Retainsameconnection property true for all the OLEDB connections you used in the package if not make sure its for all the connection including file connection as well.
    Additionally, you can try to set Delayvalidation property to true for all the dataflows and control flows in the connection and try running the package for 10MB file.
    I hope this will fix the intermittent failure issue you are facing with SSIS.
    (Please mark solved if I've answered your question, vote for it as helpful to help other user's find a solution quicker)
    Thanks,
    Atul Gaikwad.

  • Issue with getting task:acquiredBy in a BPEL Composite.

    Hi,
    We are facing an issue with an XPath query:
    <assign name="RescanHumanTask_1_readTask">
    <copy>
    <from variable="taskAssignedMessage"
    part="payload"
    query="/taskservice:taskAssignedMessage/task:task"/>
    <to variable="RescanHumanTask_1_globalVariable"
    part="payload"
    query="/task:task"/>
    </copy>
    <copy>
    <from variable="RescanHumanTask_1_globalVariable"
    part="payload"
    query="/task:task/task:systemAttributes/task:acquiredBy"/>
    <to variable="inputVariable"
    part="payload"
    query="/client:process/client:invoice/contentType:assignee"/>
    </copy>
    </assign>
    It gives us an error:
    Error in evaluate <from> expression at line "427". The result is empty for the XPath expression : "/task:task/task:systemAttributes/task:acquiredBy".
    Can someone figure out a way of getting the System Attribute task:acquiredBy inside a bpel flow.
    Regards.
    --Irshad.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    acquiredBy will be empty unless it is acquired by any user. you should pick value from last updated by field.

  • Issue with the Task TS17900100 in HCM p & f - Transaction brackets damaged

    Hi Experts,
    We have a custom HCM processes & forms which updates the backend INFTY as the result of execution of Step Process Forms - with the Workflow Task TS17900100
    This works absolutely fine in the DEV System. But when I transported the workflow in the QA environment it worked fine for the first time.
    Ever since then we are getting follow issue -
    The backend INFTY does not get updated.
    On further checkin in SWIA we found that step with the task TS17900100 ( Process Form ) fails and throws the following error
    1.Transaction brackets of the workflow has been damaged
    2.Exit CL_HRASR00_POBJ_WF_EXIT triggered exeception for event STATE_CHG and (target) status STARTED
    3.Error updating the process object
    Would appreciate if I can get any help in this regards.
    Thanks in advance!!
    Regards,
    Akshay..

    Hello,
    Make sure the wf is active in QA (re-activate if possible), check the transport for errors, check authorizations for WF-BATCH perhaps delete and recreate via SWU3?), refresh the buffers (SWU_OBUF).
    Please let me know if any of this helps.
    regards
    Rick Bakker
    Hanabi Technology

  • LCM issues with Workflow, Task Lists, etc.

    I have found several issues with migrating certain artifacts using LCM v11.1.1.3. Note that I have admin rights in all systems, and that there are no special characters involved. So...
    1) Workflow: when migrating Planning Units all of them migrated, including their statuses. But not all PU comments (<annotation>) and logs (<log>) nodes migrated. It happened to almost all users - some who had 1-2 comments in the source system haven't got any in the target one, some got migrated only few (e.g. out of 5 in source, they got 3 in target). Since it happened to all users, it doesn't seem to be security. I have also checked (for those who partially failed) some other nodes, sequence, action, process state - they all seem to be OK. One curiosity I've spotted in few cases, is that in source LCM file (.xml) "priorOwner" node has the name of the user I am investigating, while in the target file (taken after the migration), for that same PU, that node is empty, actually says "null".
    Any ideas why this might be happening?
    2) Task Lists: when exporting TLs (in LCM) on occassion <dataForm> node in XML file would be missing for the task that actually has it attached. Again, no special characters are used, and I am admin. Then I tried to use TaskListDefUtil, and even if that list has required node, when I try to import, the task is still not attached to the form. I had to delete all TLs, then use Util files to reimport.
    Anyone with similar experiences?
    smilo

    I had issues with tasks lists using LCM in instances where parent task name was same as child task or a task has same name planning web forms. You might also find issues with exporting webforms with business rules attached to forms where form is on plan type A and business rule is on plan type B. In this case, after LCM import, plan B business rule will lose location reference to correct plan type and get associated with web form plan type. In this case you will need to attach business rules again.

  • Issues with Windows TasK Scheduler

    Hi!
    I'm having two issues recently with Windows Task Scheduler, and I'm wondering if anyone else has experienced this and know of a resolution. We are on Windows Vista.
    Error value 2147750687 - The task we are using has been running successfully since day one, all of a sudden, two concurrent jobs got triggered the other day, thus one of them failed and gave us this error. Why would the scheduler kick off two jobs start at the same time? How can that happen? The settings are "run with the highest privileges" and run whether user is logged on or not".
    Error value 2147549186 - On this one, the task was running as scheduled, no errors in the log, then all of the sudden, after 10 minutes into the job, it re-started “due to a failure”. The settings are set to restart after 5 minutes, 3 attempts, but since it was running, and our logs do not identify any issues, what could have caused the scheduler to think there was an error?
    Joe

    Hi LordTim,
    >>However, I cannot get Access to load<<
    How did you load the Access? Did you use Access object to automate the Access applicaiton?
    If I understood correctly, did Access load successfully when you in a normal script?
    If yes, I think the issue may relative to the Task Scheduler. I suggest that you get more effective response from
    Windows Community forum about Task Scheduler issue.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Ovi Suite/N97 Issues with recurring tasks

    Hi
    I have finally managed to get my N97 to work with Ovi Suite (v 2.0.1.35) but am having some very annoying issues when it comes to syncing calendar & tasks (personally I wish I could just sync the calendar and not the tasks...).
    I have several recurring tasks in Outlook. They feature in my task list on Outlook as just one task with the recurring symbol next to them.  Whenever I sync my N97 for some reason, on both the N97 and Outlook the recurring tasks disappear  and are replaced by a years worth of the recurring task.  This means that both my N97 & Outlook task lists are suddenly overflowing and impossible to manage.
    Has anyone else experienced this & is there a way round this, or a way to simply sync calendar and not tasks??
    Thanks
    Nick

    Just tried editing my previous post and forum wouldn't let me.
    Anyhow, I just discovered that Ovi suite didn't mark my tasks as complete - it deleted them.  It also deleted quite a large chunk of my completed tasks as well.  I have absolutely no idea why it would have done this, but to say it's very frustrating is a massive understatement, I'm now having to rebuild my task list from memory.
    Never had any of these issues with PC Suite....
    P.S - In my Ovi suite options I have conflict resolution set to Outlook not Device...

  • Render issues with multi-task

    I have this issue with render.
    for example, i load up my projects and render it, if i run into editing problems cus i forget how to do things ill load up firefox find my solution then go back into FCP and it says i need to render the whole project again.
    anyone else run into this or know a fix?
    please and thanks

    1280x720 Motion JPEG A (.mov) @60fps
    im using the DVCPRO HD - 720p60 preset in FCP
    ive used this same setup before without issues
    hope that helps.
    also im using both stills and video

  • Execute SQl Task Error SSIS Package

    Hi all,
    I`m using for each loop container in my package to grab the file name from the source path. I have created 2 vairables
    FilePath and SourceFolder
    I`m using execute sql task inside the container and this is my query
    Insert into [dbo].[DCA_FF_TEST] (File_Name,File_Date) SELECT File_name = ?,
    File_Date = GetDate()
    Please not the Table I am trying to insert has more columns but at this stage I dont need them.
    When i execute the task I get an error
    [Execute SQL Task] Error: Executing the query "
    INSERT INTO   [dbo].[DCA_FF_TEST] ([File_Name],[F..." failed with the following error: "The statement has been terminated.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters
    not set correctly, or connection not established correctly.
    Can someone point me in the right direction? Am I missing anything?
    Resultset property Set to None
    Parameter Mapping: Variablename: FilePath , Direction: Input, datatype : Varchar, Parametername: 0, ParameterSize: 100.
    I`ve checked the connection as well it works.
    FM

    Did you try
    Insert into  [dbo].[DCA_FF_TEST] (File_Name,File_Date)
    SELECT ?, GetDate()
    Or
    Insert into  [dbo].[DCA_FF_TEST] (File_Name,File_Date) VALUES (?, GetDate())
    A Fan of SSIS, SSRS and SSAS

  • Unable to Open Script task in SSIS packages in Microsoft visual studio

    TITLE: Microsoft Visual Studio
    The task with the name "Map Network Drive" and the creation name "Microsoft.SqlServer.Dts.Tasks.ScriptTask.ScriptTask, Microsoft.SqlServer.ScriptTask, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" is not registered
    for use on this computer.
    Contact Information:
    Script Task
    BUTTONS:
    OK

    Hi Covaikumar,
    The issue may occur because the Script Task is not installed properly. Please check whether the Microsoft.SqlServer.ScriptTask.dll file exists in the following folders (supposing it is a 64-bit platform):
    C:\Program Files\Microsoft SQL Server\110\DTS\Tasks
    C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Tasks
    C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.SqlServer.ScriptTask\v4.0_11.0.0.0__89845dcd8080cc91
    If the Microsoft.SqlServer.ScriptTask.dll file is missing in any of the folders, copy one (from the other folders or a different working SSIS server) to the folder. Alternatively, you can also use the command line tool gacutil.exe to install the task assembly
    into the global assembly cache (GAC).
    Regards,
    Mike Yin
    TechNet Community Support

  • Getting error message when i am trying to update the excel file using script task in ssis package

    Hi Guys,
    I am getting error message when I am trying to update the excel. Please find the error messages as below
    Error at Update File [Update File]: Failed to compiled scripts contained in the package. Open the package in SSIS Designer and resolve the compilation errors.
    Error at Update File [Update File]: BC30002 - Type 'Microsoft.Office.Interop.Excel.Application' is not defined., ScriptMain.vb, 32, 32
    Error at Update File [Update File]: BC30002 - Type 'Microsoft.Office.Interop.Excel.Workbook' is not defined., ScriptMain.vb, 33, 25
    Error at Update File [Update File]: The binary code for the script is not found. Please open the script in the designer by clicking Edit Script button and make sure it builds successfully.
    Warning at Update File [Update File]: Found SQL Server Integration Services 2008 Script Task "ST_050fcae972904039b4f0fe59b7528ece" that requires migration!
    and the code that   I am using is
    Dell - Internal Use - Confidential
    ' Microsoft SQL Server Integration Services Script Task
    ' Write scripts using Microsoft Visual Basic
    ' The ScriptMain class is the entry point of the Script Task.
    Imports System
    Imports System.Data
    Imports System.Math
    Imports Microsoft.SqlServer.Dts.Runtime
    Imports Microsoft.Office.Interop.Excel
    <System.AddIn.AddIn("ScriptMain", Version:="1.0", Publisher:="",
    Description:="")> _
    <System.CLSCompliantAttribute(False)> _
    Partial
    Public Class ScriptMain
    Inherits Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
    Enum ScriptResults
                Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success
    Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
    End Enum
    Public Sub Main()
            Dts.TaskResult = ScriptResults.Success
    'Dim proc As System.Diagnostics.Process
    'kill all instances of excel
    'For Each proc In System.Diagnostics.Process.GetProcessesByName("EXCEL")
    ' proc.Kill()
    'Next
    Dim excelnacomm As
    New Microsoft.Office.Interop.Excel.Application
    Dim wbnacomm As Microsoft.Office.Interop.Excel.Workbook
            wbnacomm = excelnacomm.Workbooks.Open("http://test.xlsx")(renamed
    the excel)
            wbnacomm.RefreshAll()
            wbnacomm.Save()
            wbnacomm.Close()
            excelnacomm.Quit()
            Runtime.InteropServices.Marshal.ReleaseComObject(excelnacomm)
    End Sub
    End
    Class
    Please let me know what could be the reason
    Smash126

    Download:
    Microsoft Office 2010: Primary Interop Assemblies Redistributable
    How to: Add or Remove References By Using the Add Reference Dialog Box  /  How to:
    Add and Remove References in Visual Studio (C#)
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Issue with Capture Task Option showing correctly in MDT 2013

    I am aware that having the variable of DomainJoin will prevent the capture dialog from appearing when running the task. The problem is, even when the options are greyed out due to the domain settings not being applied from a different setting in the workflow
    it still breaks the task. 
    E.G.
    I am using the database, and have my workflow as such:
    [Settings]
    Priority=Model, TaskSequenceID, LSettings, CRoles, RApps, LApps, MMApps, MMSettings, Default
    Properties=MyCustomProperty
    DataBase:
    Location Settings: Overall settings for Domain join, wizard skips, etc info per gateway 
    Role Apps: Apps per role
    Make/Model Apps: Apps specific to a piece of hardware
    CustomSettings INI:
    Model/Task Sequence/Default:  I have tried to null out the DomainJoin settings with these variables by adding workgroup join by task ID, Model, etc and nothing seems to work. I've verified in other tasks
    that these settings take place of  what's in the DB, but the DB settings are still there, greyed out and causing an issue. 
    [X86SYSANDCAP]
    JoinDomain=
    JoinWorkgroup=WORKGROUP
    [VMware Virtual Platform]
    JoinDomain=
    JoinWorkgroup=WORKGROUP
    As shown below the model/TS specify the workgroup  (1st pic is normal deploy, 2nd is cap) but the greyed out settings are still having an effect. Skip Capture is set to NO at each level, and when I remove the Domain from the DB it shows up correctly. 
    Not sure what to do besides removing the domain everytime I want to do a capture, which seems a bit unreasonable and I don;t want my T1s in the DB. 

    I highly recommend to always use the standard Client task sequence for a build and capture. Much more reliable.
    Check out these Resources, the info is also valid for Windows 7:
    TechNet Docs - Create a Windows 8.1 Reference Image
    http://technet.microsoft.com/en-us/library/dn744290.aspx
    Virtual Hands-On-Labs - Creating a Windows 8.1 reference image  
    http://go.microsoft.com/?linkid=9845755
    How to deploy Windows 8.1 (and Windows 7) with MDT 2013 - The Resources
    http://www.deploymentresearch.com/Research/tabid/62/EntryId/186/How-to-deploy-Windows-8-1-and-Windows-7-with-MDT-2013-The-Resources.aspx
    / Johan
    Regards / Johan Arwidmark Twitter: @jarwidmark Blog: http://www.deploymentresearch.com FB: www.facebook.com/deploymentresearch

  • Issue with attunity connectors for SSIS 2012

    hi ,
    i have installed the attunity connectors for teradata .
    the connector is able to transfer data from teradata to sql server pretty fast but there are some issues which i am facing .
    any help is appreciated.
    steps i am using :
    1. i am pulling data from teradata to sql server using a sql command .
     the issue .
    the query which i type in teradata source should be in a line else it will throw a error for new line character.
    2nd issue :
    the teradata source pulls the data but the package(when executing from Data Tools visual studio) doesnot completes successfully . it says that package is successfully executed please click here to switch to design mode .
    so if there is any step after this step then it will not execute and the package gets stuck at this point .

    So as ypou can see the third image contains the no of rows in the table in teradata is264558. bu the no of rows transferred from teradata to sql server is 254696. and this keeps on running even when u can see that the first snapshot says that the package
    has finished the execution . but data is still pending .
    seems like a wierd issue . Any help/guidance is appreciated.
    Thanks

Maybe you are looking for

  • Controlling the size of You-tube links

    Is there a way to control the size of the graphic from an You-Tube link? I have embedded a link to the clip in an HTML snippet but don't seem to be able to affect the size of the initial image without truncating some of the image. Anyway to expand or

  • Restructure Customer Account Groups and Number Ranges

    We already have existing customer account groups and number ranges and therefore customer accounts. We need now to restructure Customer Account Groups incl. number Ranges and Number Range Allocation. Is this possible? Any advice? Can a customer keep

  • EDI Process code for PLANDATATRANSFERCO_POSTACTIO01

    Dear all, does anybody have an idea, how to post an PLANDATATRANSFERCO_POSTACTIO01 idoc? I can't find a valid process code for this idoc. I searched for it in table TMSG2, but no valid entry. How to post such an idoc? Any suggestions? Thanks a lot in

  • Unable to open ASL or ATN files by double click, windows error!

    I installed CS4 extended (I previously had PS7) and everything worked fine.  I could double click to open styles and actions, the file types were set to open with photoshop.  Today I deleted my PS7 program and tried to click on one of my styles in th

  • Fluxbox crashes if called with exec startfluxbox [SOLVED]

    Hello, I've got a problem with fluxbox, you see, whenever I try to get it started editing my .xinitrc and adding "exec startfluxbox" it just crashes over and over, hoewever if I put "exec fluxbox" all starts ok. What can I do in order to prevent it f