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

Similar Messages

  • SSIS package works in Visual Studio but not as a scheduled Job.

    I have a SSIS package that takes some CSVs and Excel documents and imports the data into a database.  The CSVs and Excel document come from outside agencies so I have no control over them.  I have successfully created and ran the SSIS package in
    BIDS (Visual Studio)  However, when I try to run it as a scheduled job on the SQL server I get the following error.
    Source: Import Brazos CSV data Brazos Co CSV [1]     Description: Data conversion failed. The data conversion for column "offDescription" returned status value 4 and status text "Text was truncated or one or more characters had no
    match in the target code page."
    The column is set to ignore on truncation in the data flow source.
    Any suggestions would be appreciated. 
    Thanks
    KJ
    Kevin Joyner

    Hi Kjoyner96,
    The error usually occurs due to the data conversion between non-Unicode and Unicode characters. According to your description, the data type of the Output Columns of the Flat File Source should be DT_STR. If the source flat file uses Unicode encoding and
    contains Unicode characters, the data conversion from DT_WSTR to DT_STR will fail. So, I guess the source file in your Dev environment doesn’t have Unicode characters, while the source file on the SSIS server has Unicode characters. If this is the case, open
    the Advanced Editor for the Flat File Source, switch to the Input and Output Columns Properties tab, and change the data type of the Output columns from DT_STR to DT_WSTR. In this condition, the Data Conversion Transformation is not necessary.
    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]

  • How do I load an SSIS package created in Visual Studio 2012 Shell (Integrated) onto SQL Server 2012 using SQL Management Studio 2012

    I am fairly new to this whole process of working with the Microsoft development environment.  Here is what I have to work with:
    an NT server running Microsoft SQL 2012  - Microsoft SQL Server Standard (64-bit)  11.0.2100.60
    and on my laptop (all freebie downloads):
    SQL Server Management Studio 2012            ver 11.0.2100.60
    Visual Studio 2012 Express  for Desktop Development and
    Visual Studio 2012 Shell (Integrated)
    I was able to create an SSIS package in
    2012 Shell (Integrated).  It takes a flat file and imports it into an SQL database table.  It runs successfully from within the
    2012 Shell (Integrated) envrionment.
    But I am having trouble figuring out how to set this up on the 2012 SQL Server.  I see that one of my colleagues created an Integration Services Catalog,
    and using SQL Management Studio I was able to create a folder under that called DigLic.  But when I go to the Projects subfolder of DigLic and attempt to import my SSIS package, I get an error message:
    "To launch the Integration Services Deployment wizard, one of the components: Integration Services, Management Tools - Basic or Business Intelligence Development Studio has to be installed by the SQL Server
    2012 Standard, Enterprise, Developer, or Evaluation Edition.  To install a component, run SQL Server Setup and Select the component name"
    I realize that Express Versions of Visual Studio lack the full feature set of a professional version.  But am I wrong in assuming that owning a server version of SQL Server 2012 gives us license to a professional
    version of SQL Management Studio 2012?  If so, how would I go about getting this software component installed?  And I am not clear if this is something that needs to be installed on our SQL Server or if I simply need a professional version of SSMS
    loaded on my laptop.
    I work for a company that is fairly fractured in its repsonsibilities, so I would need to know exactly what to ask for if I need to track down any licenses that I might need and if I need to have any specific software installed on our SQL server or on my
    laptop.
    All helpt would be greatly appreciated.
    Thanks!

    Arthur,
    Thank you for your reply.  But at this point, one of my points of confusion is what software I have available to me.  I wish I had a useful central help desk to call up and just say, "Hey, load me up with all of the professional version(s) of Visual
    Studio.  But I do not know what we have license to.  And I kind of need to know what the options are, so that I can ask a specific question of our vast buracracy.
    For now, I have downloaded only free versions of Visual Studio client software.  Since my company does have servers running Microsoft SQL Server, I am going to assume that we have proper licensing for those servers.  But does that server license
    allow me to get any professional versions of the PC client software for the various Visual Studio(s) 2012?
    And if I get a professional version of Visual Studio 2012, does that do away with the three different flavors that I have right now?  I have 2012 versions of SQL Server Management Studio, Visual Studio Express, and Visual Studio Shell (Integrated).
    Your feedback is much appreciated.
    Thanks!

  • Getting "Couldnot find Installable ISAM" error in script task in SSIS 2005 when trying to open (.xlsx files) Excel 2007-2010 files using VB script in Visual Studio 2005

    Hi Experts,
    I am trying to open .xlsx file in script task of SSIS 2005. I am using the 32-bit AccessDatabaseEngine driver with the Connection string as "Provider= Microsoft.ACE.OLEDB.12.0; Data Source=xlsx file path; Extended Properties="Excel 12.0 Xml;
    HDR=YES"" in script task.
    When we debug the VB script in Visual Studio 2005 and encounters the statement app.open() it throws the error "Couldn't find installable ISAM".
    My SQL server version is 2005 SP2 DE
    OS is Windows server 2003 EE SP2
    Could anyone please let me know what is the resolution for this error?
    Thanks and Regards,
    Adesh

    Hi Adesh,
    First, make sure the package runs in 32-bit runtime mode (set Run64BitRuntime property to False) because you are using the 32-bit ACE OLE DB Provider. If it is not the case, the issue may occur due to the corrupted drivers or registry keys. You can try to
    reinstall the 2007 Office System Driver: Data Connectivity Components as Arthur suggested.
    Regards,
    Mike Yin
    TechNet Community Support

  • Unable to open bpm task in uwl

    Hi experts,
    I am getting below error to open BPM task -
    Unable to open the task xxxxxxxxxxxxx because of technical issues. Contact your system administrator for more details.
    Error getting suddenly and log message is - I/O problem occurred when executing Archiving Command indexdescribe.
    Please clarify dependency here- If I deployed DC on server with some changes, and tried to open old task which is in NEW status, what would be the chances to get error.
    I believe there is no dependency, please correct me and advice how to fix above error.
    Thanks in advance.
    Ian

    Hi all,
    I am sorry to delay in reply, I went on vaction.
    Still issue persists, and observed issue seems not deploying new version of BPM DC.
    As per my application, once user submits WebDynpro application, UWL task will trigger. If I open the task no error coming out, otherwise If I opened the task after few hours I am getting error.
    So far I thought issue with new version of BPM DC, but issue now seems in different way.
    Please find log u2013
    800#Error#com.sap.tc.bpem.nwa.processmgmt.procmgmt.procmgmt.ProcMgmt#
    com.sap.BPM.nwa_pm.000006#BC-BMT-BPM-MON#sap.com/tcbpemnwaprocessmgmt#3C4A9248728053DD0000000200004770#216718650000000004#sap.com/tclmitsamuimainframewd#com.sap.tc.bpem.nwa.processmgmt.procmgmt.procmgmt.ProcMgmt#Guest#0##5366996011D611E18AB900000CEADD3A#f7da953311d511e1c6fb00000ceadd3a#f7da953311d511e1c6fb00000ceadd3a#0#Thread[HTTP Worker [@1437481805],5,Dedicated_Application_Thread]#Plain##
    Retrieval of Process instance details in 'Manage Process' has failed.Contact support.[Ljava.lang.StackTraceElement;@96dcd01#
    #2.0 #2011 11 18 03:13:48:471#0-800#Error#com.sap.tc.bpem.nwa.processmgmt.procmgmt.procmgmt.ProcMgmt#
    com.sap.BPM.nwa_pm.000021#BC-BMT-BPM-MON#sap.com/tcbpemnwaprocessmgmt#3C4A9248728053DE0000000000004770#216718650000000004#sap.com/tclmitsamuimainframewd#com.sap.tc.bpem.nwa.processmgmt.procmgmt.procmgmt.ProcMgmt#Guest#0##5366996011D611E18AB900000CEADD3A#0f8a891811d611e1aba600000ceadd3a#0f8a891811d611e1aba600000ceadd3a#0#Thread[HTTP Worker [@1132952642],5,Dedicated_Application_Thread]#Plain##
    Retrieval of Process instance details in 'Manage Process' has failed.[Ljava.lang.StackTraceElement;@7c47dd9d
    [EXCEPTION]
    com.sap.tc.lm.itsam.ui.proxy.exception.JMXAccessControlOperationException: Caller Guest not authorized, required permission missing (javax.management.MBeanPermission -\#fetchProcessInstanceInfo[com.sap.default:SAP_ITSAMGalaxyProcessManager.Name=SAP_ITSAMGalaxyProcessManager_EA5.SystemHome.abdbbh0,SAP_ITSAMJ2eeCluster.CreationClassName=SAP_ITSAMJ2eeCluster,SAP_ITSAMJ2eeCluster.Name=EA5.SystemHome.abdbbh0,cimclass=SAP_ITSAMGalaxyProcessManager,type=SAP_ITSAMJ2eeCluster.SAP_ITSAMGalaxyProcessManager,version=3.3] invoke)
         at com.sap.tc.lm.itsam.ui.proxy.JMXGenericModelClassMBean.invokeOperation(JMXGenericModelClassMBean.java:632)
         at com.sap.tc.lm.itsam.ui.proxy.JMXAbstractModelClass.invokeOperation(JMXAbstractModelClass.java:160)
         at com.sap.tc.bpem.nwa.processmgmt.procmgmt.model.SAP_ITSAMGalaxyProcessManager.fetchProcessInstanceInfo(SAP_ITSAMGalaxyProcessManager.java:104)
         at com.sap.tc.bpem.nwa.processmgmt.procmgmt.procmgmt.ProcMgmt.supplyInstances(ProcMgmt.java:2125)
         at com.sap.tc.bpem.nwa.processmgmt.procmgmt.procmgmt.wdp.InternalProcMgmt.supplyInstances(InternalProcMgmt.java:479)
         at com.sap.tc.bpem.nwa.processmgmt.procmgmt.procmgmt.wdp.IPublicProcMgmt$IInstancesNode.doSupplyElements(IPublicProcMgmt.java:2875)
         at com.sap.tc.webdynpro.progmodel.context.DataNode.supplyElements(DataNode.java:108)
         at com.sap.tc.webdynpro.progmodel.context.Node.getElementListAsObject(Node.java:263)
         at com.sap.tc.webdynpro.progmodel.context.MappedNode.createMappedElementList(MappedNode.java:78)
         at com.sap.tc.webdynpro.progmodel.context.MappedNode.supplyElements(MappedNode.java:71)
         at com.sap.tc.webdynpro.progmodel.context.Node.getElementListAsObject(Node.java:263)
         at com.sap.tc.webdynpro.progmodel.context.Node.getElements(Node.java:270)
         at com.sap.tc.webdynpro.progmodel.context.Node.sortElements(Node.java:555)
         at com.sap.lm.itsam.ui.util.table.TableSorter.sort(TableSorter.java:211)
         at com.sap.lm.itsam.ui.util.table.TableSorter.<init>(TableSorter.java:138)
         at com.sap.lm.itsam.ui.util.table.TableSorter.<init>(TableSorter.java:152)
         at com.sap.lm.itsam.ui.util.table.TableAccessories.createSorter(TableAccessories.java:420)
         at com.sap.lm.itsam.ui.util.table.TableAccessories.createSorter(TableAccessories.java:370)
         at com.sap.tc.bpem.nwa.processmgmt.procmgmt.procmgmt.ProcMgmtView.wdDoModifyView(ProcMgmtView.java:329)
         at com.sap.tc.bpem.nwa.processmgmt.procmgmt.procmgmt.wdp.InternalProcMgmtView.wdDoModifyView(InternalProcMgmtView.java:2547)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doModifyView(DelegatingView.java:94)
         at com.sap.tc.webdynpro.progmodel.view.View.modifyView(View.java:746)
         at com.sap.tc.webdynpro.progmodel.window.ViewController.modifyView(ViewController.java:254)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.doModifyView(ClientComponent.java:432)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.doModifyView(ClientComponent.java:438)
         at com.sap.tc.webdynpro.clientserver.phases.ModifyViewPhase.execute(ModifyViewPhase.java:69)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequestPartly(WindowPhaseModel.java:162)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doProcessRequest(WindowPhaseModel.java:110)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:97)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:514)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:55)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doExecute(ClientApplication.java:1689)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doProcessing(ClientApplication.java:1503)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doApplicationProcessingStandalone(ApplicationSession.java:899)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doApplicationProcessing(ApplicationSession.java:871)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:356)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:328)
         at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doContent(AbstractDispatcherServlet.java:87)
         at com.sap.tc.webdynpro.serverimpl.wdc.DispatcherServlet.doContent(DispatcherServlet.java:89)
         at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doPost(AbstractDispatcherServlet.java:62)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
         at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:152)
         at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:38)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:404)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:203)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:440)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:429)
         at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:38)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:82)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:268)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:81)
         at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
         at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
         at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
         at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:54)
         at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:42)
         at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:447)
         at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:264)
         at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:56)
         at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
         at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)
         at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)
    Caused by: com.sap.engine.services.jmx.exception.JmxSecurityException: Caller Guest not authorized, required permission missing (javax.management.MBeanPermission -\#fetchProcessInstanceInfo[com.sap.default:SAP_ITSAMGalaxyProcessManager.Name=SAP_ITSAMGalaxyProcessManager_EA5.SystemHome.abdbbh0,SAP_ITSAMJ2eeCluster.CreationClassName=SAP_ITSAMJ2eeCluster,SAP_ITSAMJ2eeCluster.Name=EA5.SystemHome.abdbbh0,cimclass=SAP_ITSAMGalaxyProcessManager,type=SAP_ITSAMJ2eeCluster.SAP_ITSAMGalaxyProcessManager,version=3.3] invoke)
         at com.sap.engine.services.jmx.auth.UmeAuthorization.checkMBeanPermission(UmeAuthorization.java:100)
         at com.sap.engine.services.jmx.JmxServerFrame.checkMBeanPermission(JmxServerFrame.java:101)
         at com.sap.engine.services.jmx.MBeanServerSecurityWrapper.checkMBeanPermission(MBeanServerSecurityWrapper.java:438)
         at com.sap.engine.services.jmx.MBeanServerSecurityWrapper.invoke(MBeanServerSecurityWrapper.java:288)
         at com.sap.engine.services.jmx.ClusterInterceptor.invoke(ClusterInterceptor.java:813)
         at com.sap.pj.jmx.server.interceptor.MBeanServerInterceptorChain.invoke(MBeanServerInterceptorChain.java:367)
         at com.sap.lm.itsam.ui.connection.impl.ITSAMUIMBeanServerConnectionWrapper.invoke(ITSAMUIMBeanServerConnectionWrapper.java:350)
         at com.sap.tc.lm.itsam.ui.proxy.JMXGenericModelClassMBean.invokeOperation(JMXGenericModelClassMBean.java:613)
         ... 77 more
    Caused by: java.security.AccessControlException: access denied (javax.management.MBeanPermission -\#fetchProcessInstanceInfo[com.sap.default:SAP_ITSAMGalaxyProcessManager.Name=SAP_ITSAMGalaxyProcessManager_EA5.SystemHome.abdbbh0,SAP_ITSAMJ2eeCluster.CreationClassName=SAP_ITSAMJ2eeCluster,SAP_ITSAMJ2eeCluster.Name=EA5.SystemHome.abdbbh0,cimclass=SAP_ITSAMGalaxyProcessManager,type=SAP_ITSAMJ2eeCluster.SAP_ITSAMGalaxyProcessManager,version=3.3] invoke)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:327)
         at java.security.AccessController.checkPermission(AccessController.java:546)
         at com.sap.engine.services.jmx.auth.UmeAuthorization.checkMBeanPermission(UmeAuthorization.java:84)
         ... 84 more
    please do adivce to fix.
    Ian
    Edited by: ian.sapce on Dec 13, 2011 4:53 PM

  • Unable to open the physical file "D:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\abc.mdf". Operating system error 2: "2(The system cannot find the file specified.)".

    hi,
    am running the below command for moving sql serevr mdf and ldf files  from one  drive to another : c  drive to d drive:
    but am getting the below error
    SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\abc.mdf". Operating system error 2: "2(The system cannot find the file specified.)".
    use master
    DECLARE @DBName nvarchar(50)
    SET @DBName = 'CMP_143'
    DECLARE @RC int
    EXEC @RC = sp_detach_db @DBName
    DECLARE @NewPath nvarchar(1000)
    --SET @NewPath = 'E:\Data\Microsoft SQL Server\Data\';
    SET @NewPath = 'D:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\';
    DECLARE @OldPath nvarchar(1000)
    SET @OldPath = 'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\';
    DECLARE @DBFileName nvarchar(100)
    SET @DBFileName = @DBName + '.mdf';
    DECLARE @LogFileName nvarchar(100)
    SET @LogFileName = @DBName + '_log.ldf';
    DECLARE @SRCData nvarchar(1000)
    SET @SRCData = @OldPath + @DBFileName;
    DECLARE @SRCLog nvarchar(1000)
    SET @SRCLog = @OldPath + @LogFileName;
    DECLARE @DESTData nvarchar(1000)
    SET @DESTData = @NewPath + @DBFileName;
    DECLARE @DESTLog nvarchar(1000)
    SET @DESTLog = @NewPath + @LogFileName;
    DECLARE @FILEPATH nvarchar(1000);
    DECLARE @LOGPATH nvarchar(1000);
    SET @FILEPATH = N'xcopy /Y "' + @SRCData + N'" "' + @NewPath + '"';
    SET @LOGPATH = N'xcopy /Y "' + @SRCLog + N'" "' + @NewPath + '"';
    exec xp_cmdshell @FILEPATH;
    exec xp_cmdshell @LOGPATH;
    EXEC @RC = sp_attach_db @DBName, @DESTData, @DESTLog
    go
    can anyone pls help how to set the db offline. currently  i  stopped the sql server services from services.msc and started the  sql server agent.
    should i stop both services for moving from one drive to another?
    note: I tried teh below solution but this didint work:
    ALTER DATABASE <DBName> SET OFFLINE WITH ROLLBACK IMMEDIATE
    Update:
    now am getting the message :
    Msg 15010, Level 16, State 1, Procedure sp_detach_db, Line 40
    The database 'CMP_143' does not exist. Supply a valid database name. To see available databases, use sys.databases.
    (3 row(s) affected)
    (3 row(s) affected)
    Msg 5120, Level 16, State 101, Line 1
    Unable to open the physical file "D:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\CMP_143.mdf". Operating system error 2: "2(The system cannot find the file specified.)".

    First you should have checked the database mdf/ldf name and location by using the command
    Use CMP_143
    Go
    Sp_helpfile
    Looks like your database CMP_143 was successfully detached but mdf/ldf location or name was different that is why it did not get copied to target location.
    Database is already detached that’s why db offline failed
    Msg 15010, Level 16, State 1, Procedure sp_detach_db, Line 40
    The database 'CMP_143' does not exist. Supply a valid database name. To see available databases, use sys.databases.
    EXEC @RC = sp_attach_db @DBName, @DESTData, @DESTLog
    Attached step is failing as there is no mdf file
    Msg 5120, Level 16, State 101, Line 1
    Unable to open the physical file "D:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\CMP_143.mdf". Operating system error 2: "2(The system cannot find the file specified.)"
    Solution:
    Search for the physical files(mdf/ldf) in the OS and copy to target location and the re-run sp_attach_db with right location and name of mdf/ldf.

  • Microsoft Visual Studio is unable to load this document: Object reference is not set to an instance of an object

    Hi Everyone,
    Please help me on this issue. I'm a new SSIS User.
    I've installed Sql Server 2005 Developer Edition
    When I create a new SSIS Project in Business Intelligence Development Studio,
    I get the following message:
    "Microsoft Visual Studio is unable to load this document: Object reference is not set to an instance of an object".
    Error loading 'package.dtsx'bject reference is not set to an instance of an object
    When I try to debug the package, I get the below message:
    parameter Component(System.Design) is null.
    I've uninstalled and installed SS 2005 several times, yet the problem persists.
    Please help.
    This is the package.dtsx
    <?xml version="1.0"?><DTS:Executable xmlnsTS="www.microsoft.com/SqlServer/Dts" DTS:ExecutableType="MSDTS.Package.1"><DTSroperty DTS:Name="PackageFormatVersion">2</DTSroperty><DTSroperty DTS:Name="VersionComments"></DTSroperty><DTSroperty DTS:Name="CreatorName">US\kothand1</DTSroperty><DTSroperty DTS:Name="CreatorComputerName">US6051KOTHAND1</DTSroperty><DTSroperty DTS:Name="CreationDate" DTSataType="7">4/8/2008 10:53:39 AM</DTSroperty><DTSroperty DTS:Name="PackageType">5</DTSroperty><DTSroperty DTS:Name="ProtectionLevel">1</DTSroperty><DTSroperty DTS:Name="MaxConcurrentExecutables">-1</DTSroperty><DTSroperty DTS:Name="PackagePriorityClass">0</DTSroperty><DTSroperty DTS:Name="VersionMajor">1</DTSroperty><DTSroperty DTS:Name="VersionMinor">0</DTSroperty><DTSroperty DTS:Name="VersionBuild">0</DTSroperty><DTSroperty DTS:Name="VersionGUID">{FBD98635-EDDE-4F58-9D53-356E8CB653FB}</DTSroperty><DTSroperty DTS:Name="EnableConfig">0</DTSroperty><DTSroperty DTS:Name="CheckpointFileName"></DTSroperty><DTSroperty DTS:Name="SaveCheckpoints">0</DTSroperty><DTSroperty DTS:Name="CheckpointUsage">0</DTSroperty><DTSroperty DTS:Name="SuppressConfigurationWarnings">0</DTSroperty><DTSroperty DTS:Name="ForceExecValue">0</DTSroperty><DTSroperty DTS:Name="ExecValue" DTSataType="3">0</DTSroperty><DTSroperty DTS:Name="ForceExecutionResult">-1</DTSroperty><DTSroperty DTS:Name="Disabled">0</DTSroperty><DTSroperty DTS:Name="FailPackageOnFailure">0</DTSroperty><DTSroperty DTS:Name="FailParentOnFailure">0</DTSroperty><DTSroperty DTS:Name="MaxErrorCount">1</DTSroperty><DTSroperty DTS:Name="ISOLevel">1048576</DTSroperty><DTSroperty DTS:Name="LocaleID">1033</DTSroperty><DTSroperty DTS:Name="TransactionOption">1</DTSroperty><DTSroperty DTS:Name="DelayValidation">0</DTSroperty>
    <DTS:LoggingOptions><DTSroperty DTS:Name="LoggingMode">0</DTSroperty><DTSroperty DTS:Name="FilterKind">1</DTSroperty><DTSroperty DTS:Name="EventFilter" DTSataType="8"></DTSroperty></DTS:LoggingOptions><DTSroperty DTS:Name="ObjectName">Package</DTSroperty><DTSroperty DTS:Name="DTSID">{191D188C-EA6E-46D6-A46A-8C9F3C21C321}</DTSroperty><DTSroperty DTS:Name="Description"></DTSroperty><DTSroperty DTS:Name="CreationName">MSDTS.Package.1</DTSroperty><DTSroperty DTS:Name="DisableEventHandlers">0</DTSroperty></DTS:Executable>
    Thanks
    Best Regards

    No I have not yet. I've applied just the windows updates. I rebooted after the updates, but the problem persists.
    I evern tried importing the .vssettings file from my co-worker's. Also, I tried resetting the user settings
    using "%programfiles%\Microsoft Visual Studio 8\Common7\IDE\devenv.exe" /resetuserdata.
    I'm on Windows xp 2002 service pack 2. Sql server 2005 Developer edition.
    Visual Studio info:
    Microsoft Visual Studio 2005
    Version 8.0.50727.762  (SP.050727-7600)
    Microsoft .NET Framework
    Version 2.0.50727 SP1
    Installed Edition: IDE Standard
    Microsoft Visual Studio 2005 Premier Partner Edition - ENU Service Pack 1 (KB926601)  
    This service pack is for Microsoft Visual Studio 2005 Premier Partner Edition - ENU.
    If you later install a more recent service pack, this service pack will be uninstalled automatically.
    For more information, visit http://support.microsoft.com/kb/926601
    SQL Server Analysis Services  
    Microsoft SQL Server Analysis Services Designer
    Version 9.00.1399.00
    SQL Server Integration Services  
    Microsoft SQL Server Integration Services Designer
    Version 9.00.1399.00
    SQL Server Reporting Services  
    Microsoft SQL Server Reporting Services Designers
    Version 9.00.1399.00
    Thanks
    Best regards

  • Microsoft Visual Studio - Unable to load DLL 'librfc32.dll'

    Hi,
    I'm experiencing the following problem:
    When trying to establish a connection between SAP BPC MS and our SAP NW BW system.
    I've created a new Integration Services project in Business Intelligence Development Studio. The issue comes up when I try to test the connection:
    TITLE: Microsoft Visual Studio
    Unable to load DLL 'librfc32.dll':
    This application has failed to start because the application configuration is incorrect.
    Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)
    I've placed the librfc32.dll library file on C:\WINDOWS\system32\.
    I ran R3DLLINS.EXE according to Note 684106 - Microsoft runtime DLLs.
    This placed all the needed dll library files (msvcr71.dll, msvcp71.dll, mfc71.dll, mfc71u.dll) on the correct path (C:\WINDOWS\system32\).
    I keep getting the same error.
    Platform:
    Windows 2003 R2 SP2 32-Bit
    MS SQL Server 2008 SP1
    SAP BPC 7.0 Microsoft Platform
    I've checked out some other posts on SDN but it didn't solve my problem:
    Re: librfc32.dll not found on Windows Server 2003
    LIBRFC32.DLL not Found Error
    Re: librfc32.dll
    Any ideas?
    Thank you.
    Bruno Pereira
    Edited by: Bruno Pereira on Mar 23, 2010 5:34 PM
    Edited by: Bruno Pereira on Mar 23, 2010 5:36 PM

    I was able to work it out.
    For your reference:
    Issue arrises from the fact that Business Intelligence Development Studio isn't able to load the librfc32.dll without the [Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package ATL Security Update |http://www.microsoft.com/downloads/details.aspx?familyid=766a6af7-ec73-40ff-b072-9112bab119c2&displaylang=en#filelist]implemented on the system.
    Reference SAP note:
    [Note 684106 - Microsoft runtime DLLs|https://service.sap.com/sap/support/notes/684106]
    Bye!
    Bruno Pereira

  • Which Visual C++ redistributable package needed for Visual Studio 2013 Update 3 and 4?

    Which redistributable package should be installed at the client side for binaries built with either Visual C++ 2013 Update 3 or 4? 
    From the Download Center, "Visual C++ Redistributable Packages for Visual Studio 2013",
    http://www.microsoft.com/en-us/download/details.aspx?id=40784 I downloaded "vcredist_x86.exe" and "vcredist_x64.exe", which have version number 12.0.21005.1
    My system, which has installed VS2013 Update 3, also has "vcredist_x86.exe" and "vcredist_x64.exe", at "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\redist\1033", but these having a higher version number: 12.0.30501.0
    A colleague of mine has installed  VS2013 Update 4, but has the same redistributable files as my VS2013 Update 3 installation: version 12.0.30501.0.
    Is it correct to conclude that
    the VS2013 redistributables at Microsoft's Download Center (12.0.21005.1) are outdated?
    VS2013 Update 3 and Update 4 based applications may share the very same redistributable package (12.0.30501.0)?

    @Niels,
    Maybe we cannot say it is not uploaded. We can see the package is named as
    Visual C++ Redistributable Packages for Visual Studio 2013 Update 4
    So the package may only specific for one version and does not mean it should have Visual C++ Redistributable Packages
    for Visual Studio 2013 Update 2
    If you want to report anything you can consider use Connect:
    https://connect.microsoft.com/
    However I don't think we need to report this case on Connect.
    For your last question, since the version 30501 seems to be the update version of 21005, I think you will not have them together. Anyway, for this particular VC++ runtime, I would recommend you keep it update to date.
    https://support.microsoft.com/kb/2019667?wa=wsignin1.0
    Then you may get the latest features. And if you have any specific reason that you need a specific version, I think we can handle it case by case. For example, if you want to deploy you C++ application and you need a runtime version.
    Best regards,
    Barry
    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.

  • How to debug a dll added in script component in SSIS package

    Hi All,
    I have created a Integration Services project in SQL Server Data tools for VS 2012 and added a SSIS package in it. Added a script task to this SSIS package and a DLL referenced in VSTA project. I am trying to debug the dll code by using the following steps
    but unable to do so. 
    1. Added break points in script task
    2. Started debugging 
    3. Stopped at one of the break points in VSTA projects
    4. Opened new instance of VS 2012 project for DLL library
    5. Added break points in the C# DLL library
    6. Attached this process to the VSTA project
    7. Code is not going through into C# DLL library.
    Any ideas would be appreciated.
    Thanks,
    Prav

    Yes, you can debug from a library (DLL) project, or even console. Just attach the debugger, but the DLL will be part of a different project. Make sure you have the pdb of the DLL, or source code, otherwise it is not possible.
    Arthur My Blog

  • Error while sending mail using script task in ssis 2008

    Hi,
        i am trying to send mail using ssis 2008 script task.for my requirement i am not able to use send mail task.
    code i have used is
    declared read only variables system::packagename
     Dim PACKAGE As String
            PACKAGE = Dts.Variables("System::PackageName").Value.ToString()
            Dim myHtmlMessage As MailMessage
            Dim mySmtpClient As SmtpClient
            myHtmlMessage = New MailMessage("[email protected]", "[email protected]", "PACKAGE STATUS", PACKAGE + "WAS FAILED")
         mySmtpClient = New SmtpClient("smtp.gmail.com")
            mySmtpClient.Credentials = New NetworkCredential("[email protected]", "mypassword")
            mySmtpClient.EnableSsl = True
            mySmtpClient.Port = 587
            mySmtpClient.Send(myHtmlMessage)
    error i am getting is
    Error: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1
    Authentication Required. Learn more at
       at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response)
       at System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, String from)
       at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception)
       at System.Net.Mail.SmtpClient.Send(MailMessage message)
       at ST_c121e07caaa94c21bb1355d4f753112f.vbproj.ScriptMain.Main()
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       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 System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, CultureInfo culture)
       at Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTATaskScriptingEngine.ExecuteScript()
    can any one tell me where i am going wrong

    also getting error as follows
    Error: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1
    Authentication Required. Learn more at
       at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response)
       at System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, String from)
       at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception)
       at System.Net.Mail.SmtpClient.Send(MailMessage message)
       at ST_c121e07caaa94c21bb1355d4f753112f.vbproj.ScriptMain.Main()
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       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 System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, CultureInfo culture)
       at Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTATaskScriptingEngine.ExecuteScript()

  • SSIS package "The Microsoft Jet database engine cannot open the file"

    Dear all,
    I am trying to import data from an excel spreadsheet which is save on application sharing server. When I try to save same file locally (On my desktop) my package has no problem to read it.  Problem comes when I change the file path to the share location
    I am getting below error message,
    "Version 11.0.2100.60 for 32-bit  Copyright (C) Microsoft Corporation. All rights reserved.    Started:  13:26:46  Error: 2014-12-05 13:26:50.30     Code: 0xC0202009     Source: Incremental MasterStyle DL
    Connection manager "Excel Connection Manager"     Description: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.  An OLE DB record is available.  Source: "Microsoft JET Database
    Engine"  Hresult: 0x80004005  Description: "The Microsoft Jet database engine cannot open the file ''.  It is already opened exclusively by another user, or you need permission to view its data.".  End Error  Error:
    2014-12-05 13:26:50.30     Code: 0xC020801C     Source: Data Flow Task 1 Excel Source [36]     Description: 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.  End Error  Error: 2014-12-05 13:26:50.30
        Code: 0xC0047017     Source: Data Flow Task 1 SSIS.Pipeline     Description: Excel Source failed validation and returned error code 0xC020801C.  End Error  Error: 2014-12-05 13:26:50.30     Code: 0xC004700C
        Source: Data Flow Task 1 SSIS.Pipeline     Description: One or more component failed validation.  End Error  Error: 2014-12-05 13:26:50.30     Code: 0xC0024107     Source: Data Flow Task 1    
     Description: There were errors during task validation.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  13:26:46  Finished: 13:26:50  Elapsed:  3.401 seconds.  The package execution
    failed.  The step failed."
    I am trying to run this package as an sql server agent job and  server is installed on my Machine. I have created proxy account with my own credential to execute it. I have full excess to the spread sheet and can open it in an excel program. Please
    suggest what could be the reason why sql job is not able to access this spreadsheet. I can think of below reasons
    File is password protected and I am not using its password to unlock it?
    My domain account is a part of It Admin group with high previllages
    when I installed my SQL server I installed it as a standalone instance of SQL server?
    please advise.
    regards
    JKH

    Hi Jahangir,
    Based on the error message that "The Microsoft Jet database engine cannot open the file ''.  It is already opened exclusively by another user, or you need permission to view its data.", there are two causes:
    The account that SQL Agent is using does not have the correct permissions for the file or for the folder that contains the file.
    Another process or user has the file open.
    The following resolutions correspond to the previous list of causes:
    Since you use a network path to the file (UNC), check the account permissions on the share, the file, and the folder.
    The "another user" may be Microsoft Visual InterDev. Close any Visual InterDev projects that contain a data connection to the file. Please close all instances of excel file and re-run the package.
    Besides, we can use a tool like
    SQL Server Profiler to see what is happening when you run the package.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Mail sending is failed in script task in ssis

    Hi guys,
    I have an issue in ssis script task. I have a script which sends the mail after completion of ETL.
    It is giving the following error when it tries to send the mail in script task.
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebException: The remote name could not be resolved: 'smtp.gmail.com'
    when we searched in the web some people are saying that it may be an issue of smtp server. so we have tried to ping the smtp.gmail.com. but when we try to ping smtp server from command prompt for the first time it is not pinging and giving the following error:
    "Ping request could not find host smtp.gmail.com. Please check the name and try again."
    If we again ping for the second time then it pinging without any loss (0% loss).
    we uanble to find out why it is behaving like this.
    Please help if anybody has any idea on this.
    Thanks in advance.
    Nagaraj

    sp_configure ‘show advanced options’, 1;
    GO
    RECONFIGURE;
    GO
    sp_configure ‘Database Mail XPs’, 1;
    GO
    RECONFIGURE
    GO
    Port should be open 587 .
    You can check email had send following:-SELECT * FROM msdb..sysmail_mailitemsSELECT items.subject,items.last_mod_date,l.description FROM dbo.sysmail_faileditems select * from msdb.dbo.sysmail_event_log 

  • Convert ActiveX DTS script task to SSIS Script task - Please help

    Hello,
    I Have a ActiveX script that was used in a DTS package but I'm currently trying to convert all my DTS packages to SSIS.The script is tasked to run the package on a daily basis. Everything works fine except the ActiveX script. It gives an error on my DTSGlobalVariables.parent,
    I looked up this error and changed it to "DTS.Variables("User::VariableName").Value", in
    the SSIS script task (in VB) but now I'm getting error: 
    Microsoft.SqlServer.Dts.Runtime.DtsRuntimeException: The element cannot be found in a collection.
    ---> System.Runtime.InteropServices.COMException (0xC0010009): The element cannot be found in a collection.
    bij Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSVariables100.get_Item(Object Index)
    bij Microsoft.SqlServer.Dts.Runtime.Variables.get_Item(Object index)
    --- Einde van intern uitzonderingsstackpad ---
    bij Microsoft.SqlServer.Dts.Runtime.Variables.get_Item(Object index)
    bij ST_f32fc12b60f34bebbbdfc0c5e5b40a96.vbproj.ScriptMain.Main()
    --- Einde van intern uitzonderingsstackpad ---
    bij System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
    bij System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
    bij System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
    bij System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    bij System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
    bij System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, CultureInfo culture)
    I have tried to convert this ActiveX script into a SSIS script task in VB but I know hardly any VB... So I'm wondering what the best course of action for me is, should I try to convert it into the script task like I am trying now, if so, how do I make it
    work?
    Any help would be really really welcome.
    This is the original ActiveX script that needs to be converted:
    ' Visual Basic ActiveX Script
    Function Main()
    Dim sEnvironm
    Dim sServer
    Dim sSourceFile
    Dim sSourcePath
    Dim sBackupPath
    Dim sErrorPath
    Dim sFileName
    Dim sUDLPath
    ' Set vars
    ' First 2 are depending on the server and db
    ' FILL IN THE RIGHT VALUES
    sEnvironm = "MON_Datamart"
    sServer = "BrechtProesmans"
    ' --- DO NOT CHANGE ANYTHING BELOW THIS LINE ---
    sSourceFile = "C:\Program Files\Microsoft SQL Server\MON_Datamart\SourceFiles\tbl_L00T1.txt"
    sSourcePath = "C:\Program Files\Microsoft SQL Server\MON_Datamart\SourceFiles\"
    sBackupPath = "C:\Program Files\Microsoft SQL Server\MON_Datamart\BackupFiles\"
    sErrorPath = "C:\Program Files\Microsoft SQL Server\MON_Datamart\ErrorFiles\"
    sFileName = "tbl_L00T1.txt"
    sUDLPath = "C:\Program Files\Microsoft SQL Server\MON_Datamart\MON_Datamart.udl"
    ' Initial
    FoundError = False
    ' Get a handle to the Package object.
    Set oPackage = DTSGlobalVariables.Parent
    ' Update DTSConnections
    Set oConnection = oPackage.Connections("tbl_L00T1.txt")
    oConnection.DataSource = sSourceFile
    Set oConnection = oPackage.Connections("Datamart")
    oConnection.UDLPath = sUDLPath
    Set oConnection = oPackage.Connections("Truncate")
    oConnection.UDLPath = sUDLPath
    ' Update DTSTasks
    Set oTask = oPackage.Tasks("DTSTask_DTSDataPumpTask_1").CustomTask
    oTask.SourceObjectName = sSourceFile
    oTask.DestinationObjectName = sEnvironm & ".dbo.stg_tbl_L00T1"
    ' Set Global vars
    DTSGlobalVariables("SourcePath").Value = sSourceFile
    DTSGlobalVariables("BackupPath").Value = sBackupPath
    DTSGlobalVariables("ErrorPath").Value = sErrorPath
    DTSGlobalVariables("FileName").Value = sFileName
    ' Clean up.
    Set oTask = Nothing
    Set oConnection = Nothing
    Set oPackage = Nothing
    Main = DTSTaskExecResult_Success
    End Function

    Set a breakpoint and tell us on what line it dies, at the same time, you can inspect the variable values in the Auto window (if there are) as it merely perhaps is an issue with values not being passed in.
    Arthur
    MyBlog
    Twitter

Maybe you are looking for

  • Hi. Downloads has changed; I cannot open or download attachments. I don't get the window that asked "Open" or "Save" either.

    When I receive an attached document (Word or OpenOffice), I click on it. I get a Norton Antivirus window that says it's clear and I click on the yellow Download button. Then nothing happens. 1. I don't get the windows that asked Open? or Save?. 2. Th

  • Please do help....urgent.......Vendor reports...........

    Dear sap helpers, could you pls check & let me know if the Cost center and WBS elements can be displayed in SAP transaction FBL1N- "Vendor Line Item display". regards Venkat

  • Working with MS word

    where can I find classes that enables me to sent information from a jsp into a MS word document (open an existing document, putting my Strings in a pre prepared table in the document and saving it in a desired name).

  • Cannot open folder files in browser window

    Since the last 5 or so firefox update, i notice i am unable to open folder files in the browser window on most of the websites i have been on. Therefore if i need to upload a file on a website when i click the open folder button on the website, i am

  • Mouse psycho after MBP wakes up

    Hello all, wondering if anyone has had a similar problem or knows how to fix my psycho mouse pointer? The problem occurs after my Macbook Pro has been to sleep by closing the lid. The mouse pointer becomes erratic and extremely jerky. It's not just t