我有一个带有脚本任务的SSIS包来设置文件的名称和位置。最近,我尝试更新它,以便在文件名的末尾添加一个递增号。当我运行它时,会收到一条错误消息:
Error: 0xC0014054 at Script Task: Failed to lock variable "System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Microsoft.SqlServer.Dts.Runtime.DtsRuntimeException: