# 4.22 Recompile fails using Perforce

**URL:** <https://forums.unrealengine.com/t/4-22-recompile-fails-using-perforce/448288>\
**Category:** Platform & Builds\
**Tags:** recompile, version-control, build, unreal-engine, compile, Perforce, question\
**Created:** [May 3, 2019, 8:28am UTC](https://forums.unrealengine.com/t/4-22-recompile-fails-using-perforce/448288 "2019-05-03T08:28:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PedroCD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PedroCD](https://forums.unrealengine.com/u/PedroCD)\
**Post date:** [May 3, 2019, 8:28am UTC](https://forums.unrealengine.com/t/4-22-recompile-fails-using-perforce/448288/1 "2019-05-03T08:28:03Z")

</div>

I am setting up Perforce Version Control for my UE 4.22 project. Recompiling is not working, I get the following error:

error CS0042: Unexpected error creating debug information file ‘X\Workspace\Intermediate\Build\BuildRules\ProjectNameModuleRules.PDB’ – 'X\Workspace\Intermediate\Build\BuildRules\ProjectNameModuleRules.pdb: Access is denied.

I have setup the [typemap][1]. When I run command prompt and do the p4 -P YourPassword typemap, my notepad opens with the typemaps filled already.

 ![275850-ue4-typemap.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/b/c/ebc278cd0b92e4d646aa18e59cd5ddc6031aa88b.png)

Am I missing something?

Thank you

---

<div class="post-metadata">

**Author:** ![PedroCD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PedroCD](https://forums.unrealengine.com/u/PedroCD)\
**Post date:** [May 3, 2019, 8:38am UTC](https://forums.unrealengine.com/t/4-22-recompile-fails-using-perforce/448288/2 "2019-05-03T08:38:04Z")

</div>

Also tried changing the “//depot/” to “//mydepotname//”. Didn’t work.
