# Bank copy errors when using 2.0 integration

**URL:** <https://qa.fmod.com/t/bank-copy-errors-when-using-2-0-integration/14463>\
**Category:** Unity\
**Created:** [March 20, 2019, 2:14am UTC](https://qa.fmod.com/t/bank-copy-errors-when-using-2-0-integration/14463 "2019-03-20T02:14:42Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shadoninja](https://avatars.discourse-cdn.com/v4/letter/s/71e660/32.png) [@Shadoninja](https://qa.fmod.com/u/Shadoninja)\
**Post date:** [March 20, 2019, 2:14am UTC](https://qa.fmod.com/t/bank-copy-errors-when-using-2-0-integration/14463/1 "2019-03-20T02:14:42Z")

</div>

I just cleared out the old integration from my Unity project and put in the new one. I am getting this error:

```
IOException: Win32 IO returned ERROR_INVALID_NAME. Path: C:\Unity Projects\MyGame\Assets\StreamingAssetsC:
System.IO.Directory.CreateDirectoriesInternal (System.String path) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:131)
System.IO.Directory.CreateDirectory (System.String path) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:96)
System.IO.DirectoryInfo.Create () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/DirectoryInfo.cs:141)
(wrapper remoting-invoke-with-check) System.IO.DirectoryInfo:Create ()
System.IO.Directory.CreateDirectoriesInternal (System.String path) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:116)
System.IO.Directory.CreateDirectory (System.String path) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:96)
System.IO.DirectoryInfo.Create () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/DirectoryInfo.cs:141)
(wrapper remoting-invoke-with-check) System.IO.DirectoryInfo:Create ()
System.IO.Directory.CreateDirectoriesInternal (System.String path) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:116)
System.IO.Directory.CreateDirectory (System.String path) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:96)
System.IO.DirectoryInfo.Create () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/DirectoryInfo.cs:141)
(wrapper remoting-invoke-with-check) System.IO.DirectoryInfo:Create ()
FMODUnity.EventManager.CopyToStreamingAssets () (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:538)
UnityEngine.Debug:LogException(Exception)
FMODUnity.EventManager:CopyToStreamingAssets() (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:556)
FMODUnity.EventManager:OnCacheChange() (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:597)
FMODUnity.EventManager:Update() (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:609)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
```

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [March 25, 2019, 11:33pm UTC](https://qa.fmod.com/t/bank-copy-errors-when-using-2-0-integration/14463/2 "2019-03-25T23:33:35Z")

</div>

Thanks for reporting this. We have found and fixed the problem for the next release.

In the meantime you can find the fix on our Github:

> <https://github.com/fmod/UnityIntegration/commit/c0106f3ae68add393a4080ea42c4eca1d6266150>

---

<div class="post-metadata">

**Author:** ![Shadoninja](https://avatars.discourse-cdn.com/v4/letter/s/71e660/32.png) [@Shadoninja](https://qa.fmod.com/u/Shadoninja)\
**Post date:** [March 26, 2019, 12:24am UTC](https://qa.fmod.com/t/bank-copy-errors-when-using-2-0-integration/14463/3 "2019-03-26T00:24:38Z")

</div>

@cameron-fmod Great thanks! I noticed the Issues tab on that Github repo is missing. Is what I did the best way to report bugs?

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [March 26, 2019, 12:29am UTC](https://qa.fmod.com/t/bank-copy-errors-when-using-2-0-integration/14463/4 "2019-03-26T00:29:52Z")

</div>

I did not realize that Issues had been disabled on the repo, I have just re-enabled it now.

Either here or on Github, whatever works best at the time.

---

<div class="post-metadata">

**Author:** ![orenosekai](https://avatars.discourse-cdn.com/v4/letter/o/76d3ee/32.png) [@orenosekai](https://qa.fmod.com/u/orenosekai)\
**Post date:** [April 5, 2019, 9:56pm UTC](https://qa.fmod.com/t/bank-copy-errors-when-using-2-0-integration/14463/5 "2019-04-05T21:56:54Z")

</div>

@cameron-fmod

Hello, we are experiencing the same errors with version 2.0 Unity integration.

We are choosing the Mulitple Platform Build option and if the pathing is set to relative these error occur but if set to absolute path, the errors seems to go away. Although this would not be desired since we are using version control (Plastic SCM)

We have tried to modified the EventManager.cs like suggested but it didn’t seem to help.

These are the errors we got from the console.

> FMOD Studio: copy banks for platform Windows : copying banks from FMODAssets\Desktop to C:/Users/Metanaut/wkspaces/ruberg/Assets/StreamingAssets  
> UnityEngine.Debug:LogError(Object)  
> FMODUnity.EventManager:CopyToStreamingAssets() (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:555)  
> FMODUnity.EventManager:OnCacheChange() (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:597)  
> FMODUnity.EventManager:Update() (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:609)  
> UnityEditor.EditorApplication:Internal\_CallUpdateFunctions()

and

> IOException: Win32 IO returned ERROR\_INVALID\_NAME. Path: C:\Users\Metanaut\wkspaces\ruberg\Assets\StreamingAssetsC:  
> System.IO.Directory.CreateDirectoriesInternal (System.String path) (at :0)  
> System.IO.Directory.CreateDirectory (System.String path) (at :0)  
> System.IO.DirectoryInfo.Create () (at :0)  
> (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo.Create()  
> System.IO.Directory.CreateDirectoriesInternal (System.String path) (at :0)  
> System.IO.Directory.CreateDirectory (System.String path) (at :0)  
> System.IO.DirectoryInfo.Create () (at :0)  
> (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo.Create()  
> System.IO.Directory.CreateDirectoriesInternal (System.String path) (at :0)  
> System.IO.Directory.CreateDirectory (System.String path) (at :0)  
> System.IO.DirectoryInfo.Create () (at :0)  
> (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo.Create()  
> System.IO.Directory.CreateDirectoriesInternal (System.String path) (at :0)  
> System.IO.Directory.CreateDirectory (System.String path) (at :0)  
> System.IO.DirectoryInfo.Create () (at :0)  
> (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo.Create()  
> System.IO.Directory.CreateDirectoriesInternal (System.String path) (at :0)  
> System.IO.Directory.CreateDirectory (System.String path) (at :0)  
> System.IO.DirectoryInfo.Create () (at :0)  
> (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo.Create()  
> FMODUnity.EventManager.CopyToStreamingAssets () (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:538)  
> UnityEngine.Debug:LogException(Exception)  
> FMODUnity.EventManager:CopyToStreamingAssets() (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:556)  
> FMODUnity.EventManager:OnCacheChange() (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:597)  
> FMODUnity.EventManager:Update() (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:609)  
> UnityEditor.EditorApplication:Internal\_CallUpdateFunctions()

---

<div class="post-metadata">

**Author:** ![angelrobinson13](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@angelrobinson13](https://qa.fmod.com/u/angelrobinson13)\
**Post date:** [April 21, 2019, 8:37pm UTC](https://qa.fmod.com/t/bank-copy-errors-when-using-2-0-integration/14463/6 "2019-04-21T20:37:58Z")

</div>

My group has also come across this issue and even after implementing the proposed change, we were still getting the following error:

 ![FMOD%20io%20error%20after%20applying%20fix%20suggested](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/1X/05346a0158b7c0a50f2a73449e16f4065151722b.png)

I stepped through the code and found that the pathway being generated for both the source and target was putting in a second full path instead of just the sub directory or file name. below are pictures on where I found the issue to stem from and how I fixed it.

---

<div class="post-metadata">

**Author:** ![angelrobinson13](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@angelrobinson13](https://qa.fmod.com/u/angelrobinson13)\
**Post date:** [April 21, 2019, 8:38pm UTC](https://qa.fmod.com/t/bank-copy-errors-when-using-2-0-integration/14463/7 "2019-04-21T20:38:44Z")

</div>

This change was done in the same EventManager editor file that had the initial proposed change. Hope this helps

 ![FMOD%20fix](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/1X/fb2b0b1e36264ee41fcca01559967e184e9e83db.png)

---

<div class="post-metadata">

**Author:** ![mike.monroe](https://avatars.discourse-cdn.com/v4/letter/m/ed8c4c/32.png) [@mike.monroe](https://qa.fmod.com/u/mike.monroe)\
**Post date:** [June 28, 2019, 1:17am UTC](https://qa.fmod.com/t/bank-copy-errors-when-using-2-0-integration/14463/8 "2019-06-28T01:17:19Z")

</div>

Running latest download of FMOD Studio 2.0 and Unity integration, and getting this exact issue when trying to use local paths to the studio project.  
The posted GitHub fix appears to be in this release and not resolving the issue.

@angelrobinson13 can you explain what’s going on in your fix? (I currently don’t see any subDir reference in EventManager)

---

<div class="post-metadata">

**Author:** ![mike.monroe](https://avatars.discourse-cdn.com/v4/letter/m/ed8c4c/32.png) [@mike.monroe](https://qa.fmod.com/u/mike.monroe)\
**Post date:** [June 28, 2019, 1:30am UTC](https://qa.fmod.com/t/bank-copy-errors-when-using-2-0-integration/14463/9 "2019-06-28T01:30:48Z")

</div>

![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/1X/fd563e4b65f10a9e99d1297afb23b4f5e11f6fc5.png)

I’m also guessing FMOD should not be making a bank with the name of the full path to Master

Adding a Debug.Log to the refresh function does show the sourcePath & targetPath returning very ugly paths

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/1X/e9e680df558676fdd06437260a58c8bc3eac8c5a.png)

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [June 28, 2019, 3:46am UTC](https://qa.fmod.com/t/bank-copy-errors-when-using-2-0-integration/14463/10 "2019-06-28T03:46:50Z")

</div>

You could try deleting the FMODStudioCache file, this will clear out any old information that may be stored and regenerate a new file.

---

<div class="post-metadata">

**Author:** ![mike.monroe](https://avatars.discourse-cdn.com/v4/letter/m/ed8c4c/32.png) [@mike.monroe](https://qa.fmod.com/u/mike.monroe)\
**Post date:** [June 28, 2019, 5:36pm UTC](https://qa.fmod.com/t/bank-copy-errors-when-using-2-0-integration/14463/11 "2019-06-28T17:36:56Z")

</div>

Unfortunately doing that didn’t change anything. It seems like whatever is refreshing the banks and generating this data is doinking up at some point.

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [July 1, 2019, 10:46pm UTC](https://qa.fmod.com/t/bank-copy-errors-when-using-2-0-integration/14463/12 "2019-07-01T22:46:39Z")

</div>

What versions of the FMOD integration and Unity are you using?

---

<div class="post-metadata">

**Author:** ![mike.monroe](https://avatars.discourse-cdn.com/v4/letter/m/ed8c4c/32.png) [@mike.monroe](https://qa.fmod.com/u/mike.monroe)\
**Post date:** [July 2, 2019, 6:56pm UTC](https://qa.fmod.com/t/bank-copy-errors-when-using-2-0-integration/14463/13 "2019-07-02T18:56:10Z")

</div>

Occurs in both Unity versions I’ve used so far 2018.3.10f1 & 2018.3.6f1  
FMOD integration is very latest posted, 2.00.02  
FMOD Studio 2.00.01

---

<div class="post-metadata">

**Author:** ![mike.monroe](https://avatars.discourse-cdn.com/v4/letter/m/ed8c4c/32.png) [@mike.monroe](https://qa.fmod.com/u/mike.monroe)\
**Post date:** [July 2, 2019, 6:58pm UTC](https://qa.fmod.com/t/bank-copy-errors-when-using-2-0-integration/14463/14 "2019-07-02T18:58:21Z")

</div>

It’s also 100% confirmed this is tied to trying to do relative paths to the studio project. If we use absolute, there’s no problem (unfortunately this make our version control not too happy)

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [July 8, 2019, 11:31pm UTC](https://qa.fmod.com/t/bank-copy-errors-when-using-2-0-integration/14463/15 "2019-07-08T23:31:37Z")

</div>

Thanks for the information, we are looking into it.

---

<div class="post-metadata">

**Author:** ![captainnjackson](https://avatars.discourse-cdn.com/v4/letter/c/7bcc69/32.png) [@captainnjackson](https://qa.fmod.com/u/captainnjackson)\
**Post date:** [August 27, 2019, 5:39pm UTC](https://qa.fmod.com/t/bank-copy-errors-when-using-2-0-integration/14463/16 "2019-08-27T17:39:12Z")

</div>

I’m also having the same problem. I don’t know if it’s relevant but I built the banks locally before changing the build path in the same project to a relative path and then rebuilding again.

---

<div class="post-metadata">

**Author:** ![captainnjackson](https://avatars.discourse-cdn.com/v4/letter/c/7bcc69/32.png) [@captainnjackson](https://qa.fmod.com/u/captainnjackson)\
**Post date:** [August 28, 2019, 2:39am UTC](https://qa.fmod.com/t/bank-copy-errors-when-using-2-0-integration/14463/17 "2019-08-28T02:39:55Z")

</div>

![FMOD%20error%20invalid%20name](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/1X/3497a0a93d203b1f71593572856974802d075f95.png)

Hopefully this helps out a bit. I push the build the banks on the D: drive on my home computer, publish the updates. These screenshots are from my work computer. As of now, no audio gets through for anyone else on the team. I can see there is an additional D: at the end of the target path… Don’t know how to fix that.

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [August 28, 2019, 3:23am UTC](https://qa.fmod.com/t/bank-copy-errors-when-using-2-0-integration/14463/18 "2019-08-28T03:23:17Z")

</div>

What version of the FMOD Unity Integration are you using?

---

<div class="post-metadata">

**Author:** ![captainnjackson](https://avatars.discourse-cdn.com/v4/letter/c/7bcc69/32.png) [@captainnjackson](https://qa.fmod.com/u/captainnjackson)\
**Post date:** [August 28, 2019, 4:16am UTC](https://qa.fmod.com/t/bank-copy-errors-when-using-2-0-integration/14463/19 "2019-08-28T04:16:19Z")

</div>

FMOD 2.00.03  
Integration 2.00.03  
Unity 2019.2.1f1

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [August 28, 2019, 4:29am UTC](https://qa.fmod.com/t/bank-copy-errors-when-using-2-0-integration/14463/20 "2019-08-28T04:29:10Z")

</div>

It is possible that the bad paths have been serialized to the FMODStudioCache.asset, you can manually delete this and the integration will generate a new one with correct paths. Also make sure that cache isn’t checked into source control.

[Next page](https://qa.fmod.com/t/bank-copy-errors-when-using-2-0-integration/14463.md?page=2)
