# SourceBankPath Error After Update

**URL:** <https://qa.fmod.com/t/sourcebankpath-error-after-update/14989>\
**Category:** Unity\
**Created:** [August 28, 2019, 5:44am UTC](https://qa.fmod.com/t/sourcebankpath-error-after-update/14989 "2019-08-28T05:44:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AhmadF](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@AhmadF](https://qa.fmod.com/u/AhmadF)\
**Post date:** [August 28, 2019, 5:44am UTC](https://qa.fmod.com/t/sourcebankpath-error-after-update/14989/1 "2019-08-28T05:44:06Z")

</div>

(Unity ver 2018.2.6f1)  
I updated my fmod version 2  
and found this error in FMODMigrationUtil.cs

“Assets/Editor/FMODMigrationUtil.cs(117,26): error CS1061: Type `FMODUnity.Settings' does not contain a definition for`SourceBankPath’ and no extension method `SourceBankPath' of type`FMODUnity.Settings’ could be found. Are you missing an assembly reference?”

Should i change it to SourceBankPathFull or SourceBankPathRelative or something else?

---

<div class="post-metadata">

**Author:** ![AhmadF](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@AhmadF](https://qa.fmod.com/u/AhmadF)\
**Post date:** [August 28, 2019, 6:09am UTC](https://qa.fmod.com/t/sourcebankpath-error-after-update/14989/2 "2019-08-28T06:09:54Z")

</div>

Here is the code in unity just in case

Settings settings = Settings.Instance;

var prefKey = “FMODStudioProjectPath\_” + Application.dataPath;

var prefValue = EditorPrefs.GetString(prefKey);  
if (prefValue != null)  
{  
settings.SourceBankPath = prefValue as string; //error here  
settings.SourceBankPath += “/Build”; //and here  
settings.HasSourceProject = false;  
}

---

<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:** [September 3, 2019, 1:26am UTC](https://qa.fmod.com/t/sourcebankpath-error-after-update/14989/3 "2019-09-03T01:26:13Z")

</div>

The FMODMigrationUtil.cs was removed in 2.0.

When upgrading major versions (eg. 1.10 -\> 2.0) it is probably a good idea to remove as much of the old integration as possible before adding the new one, to avoid errors like this occurring.

I will get this step added to our [Updating/Upgrading guide](https://fmod.com/resources/documentation-unity?version=2.0&page=user-guide.html#updatingupgrading-the-integration) and look into a way of automating this in the future.

---

<div class="post-metadata">

**Author:** ![AhmadF](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@AhmadF](https://qa.fmod.com/u/AhmadF)\
**Post date:** [September 3, 2019, 4:35am UTC](https://qa.fmod.com/t/sourcebankpath-error-after-update/14989/4 "2019-09-03T04:35:05Z")

</div>

Thanks for the reply, i only deleted the one in the guide  
but after that, i changed SourceBankPath into SourceBankPathRelative which fixed it (i don’t know if that actually fixed it) and i don’t see any issue with my previously implemented sound/music

Is this okay or should i redo the update?

---

<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:** [September 3, 2019, 4:37am UTC](https://qa.fmod.com/t/sourcebankpath-error-after-update/14989/5 "2019-09-03T04:37:59Z")

</div>

That will be fine, it may only be an issue if you needed to use the Migration script which you won’t because it was for migrating from a much older Unity integration.

---

<div class="post-metadata">

**Author:** ![AhmadF](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@AhmadF](https://qa.fmod.com/u/AhmadF)\
**Post date:** [September 3, 2019, 4:59am UTC](https://qa.fmod.com/t/sourcebankpath-error-after-update/14989/6 "2019-09-03T04:59:23Z")

</div>

got it  
thanks for the help
