首页 文章

由于超出路径长度限制,USQL作业失败

提问于
浏览
2

我使用Local SDK在本地运行我的作业 . 但是,我收到以下错误消息:

Error : 'System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

我的一位同事通过在C:\中的新目录中运行项目,能够将错误追踪到DataRoot内目录文件夹中的.ss文件 . .ss文件的路径是

C:\HelloWorld\Main\Source\Data\Insights\NewProject\NewProject\USQLJobsForTesting.Tests\bin\Debug\DataRoot\_catalog_\database\d92bfaa5-dc7f-4131-abdc-22c50eb0d8c0\schema\f6cf4417-e2d8-4769-b633-4fb5dddcb066\table\aa136daf-9e86-4650-9cc3-119d607fb3b0\31a18033-099e-4c2a-aae3-75cf099b0fb1.ss

超过了260个字符的允许限制 . 我无法减少项目路径的长度,因为我的组织遵循某种工作目录格式 .

这个问题有什么可能的解决方案吗?

1 回答

  • 2

    尝试在CMD中使用subst通过将驱动器号映射到要使用的数据根来解决此问题 .

    subst X: C:\PathToYourDataRoot

    然后在ADL Tools for Visual Studio中将DataRoot设置为X:

    enter image description here

相关问题