Path too long pop error

path too long: ‘C:/Users/AppData/Local/Microsoft/Office/16.0/Wef/webview2/3a7e92dc-4145-4b61-bc9c-1940665b5b90_ADAL/2/EBWebView/Default/Service Worker/CacheStorage/571988c4897ef87c20ec4d6b13878cf6c36e1caf/9a94f3eb-1245-4728-898a-f4556511d950/index-dir/the-real-index’

Error: LibGit2Sharp.LibGit2SharpException: path too long: ‘C:/Users/Accelirate/AppData/Local/Microsoft/Office/16.0/Wef/webview2/3a7e92dc-4145-4b61-bc9c-1940665b5b90_ADAL/2/EBWebView/Default/Service Worker/CacheStorage/571988c4897ef87c20ec4d6b13878cf6c36e1caf/9a94f3eb-1245-4728-898a-f4556511d950/index-dir/the-real-index’
at LibGit2Sharp.Core.Ensure.HandleError(Int32 result)
at LibGit2Sharp.Core.Proxy.git_status_list_new(RepositoryHandle repo, GitStatusOptions options)
at LibGit2Sharp.RepositoryStatus…ctor(Repository repo, StatusOptions options)
at LibGit2Sharp.Repository.RetrieveStatus(StatusOptions options)
at UiPath.Studio.Plugin.Git.Services.RepositoryStatusService.RetrieveStatus(String repositoryPath, StatusOptions options, Action2 sandboxedAction) at UiPath.Studio.Plugin.Git.Services.ItemStatusService.GetItemStatusCore(String workingDirectory, String path, IGetStatusOptions options) at UiPath.Studio.Plugin.Git.Services.GitSession.ExecuteInternal[TResult](Func2 action, Func1 repoFactory) at System.Threading.Tasks.Task1.InnerInvoke()
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)

Hi @kapil.mathpati

  • You should rename that file to a short name
  • Put put your file in not much deeper folder
  • There exist a tool called Long Path Tool, you can use it to rename the file or move the file, then use the proper actions within the UiPath

Regards

Hi @kapil.mathpati

Try relocating that file in not too much deeper subfolder. You can also try transferring that folder or file to the desktop and see if it works

Check out this thread

Regards
Gokul

Hi Fernando
Thanks for Responding.

I have saved project file on desktop,not on the location in the pop showing. but still the same pop up.

Thanks
Kapil Mathpati

Which file to move or save, I mean the project file I have saved on desktop and the path or address shown in the pop up is different from the project location.

You can make Window accept long paths by following the guide below. There’s a reg-file you can download and import to your computer (under section “Download Our One-Click Registry Hack”).