使用KingswaySoft上传文件至Azure Blob存储时遇AzureBlobStorageServiceException错误
问题场景
尝试通过KingswaySoft Integration Toolkit,将文件从Flat File Source上传至Azure Blob Storage的Azure Blob Storage Destination组件。Azure Storage连接测试正常,但执行任务时触发以下错误:
[Azure Blob Storage Destination [2]] Error: An error occurred with the following error message: "KingswaySoft.IntegrationToolkit.AzureBlobStorage.AzureBlobStorageServiceException: Value cannot be null. Parameter name: s (SSIS Productivity Pack, v23.1.0.7601 - DtsDebugHost, v15.0.2000.281)System.ArgumentNullException: Value cannot be null. Parameter name: s"
目标存储位置为Storage Container。
排查与解决步骤
检查Blob路径配置
确认Azure Blob Storage Destination组件中指定的Blob路径(含容器下虚拟目录)无空值。若通过变量传递路径,验证变量是否正确赋值,未出现空值情况。验证Flat File输出字段
确保Flat File Source的所有输出字段均有有效值,无空字段被映射到Blob必填属性(如文件名、Blob路径参数)。若配置动态生成Blob文件名,需确认生成逻辑不会产出空字符串。检查组件高级设置
查看Azure Blob Storage Destination的高级选项,若启用Blob Name Expression或Directory Path Expression,需确保表达式结果非空。可测试表达式输出是否符合预期。确认容器状态与权限
再次确认目标Storage Container存在,且连接账号对该容器拥有写入权限。容器名称大小写错误也可能引发此类隐性空值错误。版本兼容性校验
当前使用的SSIS Productivity Pack版本为v23.1.0.7601,可检查该版本是否存在已知的参数空值Bug。尝试升级至最新版本,或查看官方版本更新日志确认是否有相关修复。
内容的提问来源于stack exchange,提问作者Kanika

