UiPath Pitfall #2: Keeping Your Studio Project in a OneDrive Sync Folder
说明与用途
将 UiPath Studio 项目从 OneDrive 同步文件夹移动到本地目录,并使用 Git 进行版本控制,可消除编译错误和跨机器问题。
问题
Studio projects in OneDrive or other sync folders cause vague compile errors (Error code 1) and cross‑machine failures.
结果
Moving the Studio project to a local, non‑synced folder and using Git for version control removes compile errors and ensures consistent project behavior across machines.
工作流
- 1. Move the project folder to a local path such as C:\UiPathProjects\ or a non‑synced Documents folder.
- 2. In Studio, use the Team tab → GIT Init to add the project to a local Git repository, commit, and push to a remote. (TFS/SVN also supported.)
- 3. Keep the .local folder out of source control to avoid caching issues.
- 4. For backup, zip or copy the project after closing Studio; do not develop inside the synced folder.
- 5. Verify no OneDrive sync icons appear on project.json or workflow files before publishing.
证据
If it's inside OneDrive or any always-sync cloud folder, that's very likely your problem.
Studio writes a lot of files while you work: project.json, generated files, and a local cache in the hidden .local folder.
Copy the project to a real local disk and it suddenly works.
In Studio, go to the Team tab and use GIT Init to add the project to a local Git repository, commit, then push to a remote.
- 记录日期: 2026-11-01T02:58:52.931Z