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

ssis object reference not set to an instance of an object

$
0
0

I am using a script component with the script given below:

' Microsoft SQL Server Integration Services user script component
' This is your new script component in Microsoft Visual Basic .NET
' ScriptMain is the entrypoint class for script components

Imports System
Imports System.Data
Imports System.Math
Imports Microsoft.SqlServer.Dts.Pipeline.Wrapper
Imports Microsoft.SqlServer.Dts.Runtime.Wrapper

Public Class ScriptMain
    Inherits UserComponent
    Dim mx As String
    Dim mn As String


    Public Overrides Sub Input0_ProcessInputRow(ByVal Row As Input0Buffer)
        '
        ' Add your code here
        '
        mx = Row.MAXVPD.ToString()
        mn = Row.MINVPD.ToString()

    End Sub

    Public Overrides Sub PostExecute()
        mx = mx.ToString()
        mn = mn.ToString()
        ReadWriteVariables("Max_VPD").Value = mx
        ReadWriteVariables("Min_VPD").Value = mn
        MyBase.PostExecute()
    End Sub

End Class

But when I run my package, I am getting an error 'object reference not set to an instance of an object'

Can someone tell me whats the problem here..thanks in advance


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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