Le package contient la tâche de script montre l'erreur ci-dessous
Dts Script task has encountered an exception in user code: Exception has been thrown by the target of an invocation
Le code de tâche de script est
public void Main() { ssortingng Str_Filepath = Dts.Variables["User::FilePath"].Value.ToSsortingng(); bool bl_exist=false; if (System.IO.File.Exists(Str_Filepath)) { bl_exist = true; } else { bl_exist = false; } Dts.Variables["User::V_Exist"].Value = bl_exist; Dts.TaskResult = (int)ScriptResults.Success; }
Cela signifie simplement que le code a une erreur.
avez-vous défini le type de données V_Exist sur boolean?