bonjour
Je débute avec VB.net...
En fait je suis entrain d'utiliser SSIS et j'aimerais faire de la transformation de données depuis ma source (excel).
Voici mon script:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
 
    Public Overrides Sub Input0_ProcessInputRow(ByVal Row As Input0Buffer)
 
 
        If Row.FBI.Contains("FBI") And Not Row.FBI_IsNull Then
            Row.TFBI = Row.FBI
            Row.TActivite = CStr("Formation")
        End If
        If Row.FPT.Contains("FPT") And Not Row.FPT_IsNull Then
            Row.TFPT = Row.FPT
            Row.TActivite = CStr("Formation")
        End If
        If Row.PBI.Contains("PBI") And Not Row.PBI_IsNull Then
            Row.TPBI = Row.PBI
            Row.TActivite = CStr("Projet")
        End If
        If Row.PPT.Contains("PPT") And Not Row.PPT_IsNull Then
            Row.TPPT = Row.PPT
            Row.TActivite = CStr("Projet")
        End If
    End Sub
 
End Class
Lorsque je génére mon flux SSIS, j'obtiens cette erreur au niveau de mon script :Object reference not set to an instance of an object.

Vous avez une idée d'ou ca peut venir...si j'ai oublié qqchose dans le code...

Merci d'avance!