Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Bug Exception building addressables in Unity 2020.3.40f1 with 19.9.9

Discussion in 'Addressables' started by rchapman, Oct 31, 2022.

  1. rchapman

    rchapman

    Joined:
    Feb 13, 2014
    Posts:
    91
    We're using the Localization package and have started to see these errors after building the localization tables:

    UnauthorizedAccessException: Access to the path is denied.
    System.IO.Directory.Move (System.String sourceDirName, System.String destDirName) (at <695d1cc93cca45069c528c15c9fdd749>:0)
    DirectoryUtility.DirectoryMove (System.String sourceDirName, System.String destDirName) (at Library/PackageCache/com.unity.addressables@1.19.9/Editor/Build/DirectoryUtility.cs:39)
    AddressablesPlayerBuildProcessor.CleanTemporaryPlayerBuildData () (at Library/PackageCache/com.unity.addressables@1.19.9/Editor/Build/AddressablesPlayerBuildProcessor.cs:184)
    AddressablesPlayerBuildProcessor.OnPostprocessBuild (UnityEditor.Build.Reporting.BuildReport report) (at Library/PackageCache/com.unity.addressables@1.19.9/Editor/Build/AddressablesPlayerBuildProcessor.cs:176)
    UnityEditor.Build.BuildPipelineInterfaces+<>c__DisplayClass17_0.<OnBuildPostProcess>b__1 (UnityEditor.Build.IPostprocessBuildWithReport bpp) (at <92e8e151ac2247a491cb6ca42a1bead9>:0)
    UnityEditor.Build.BuildPipelineInterfaces.InvokeCallbackInterfacesPair[T1,T2] (System.Collections.Generic.List`1[T] oneInterfaces, System.Action`1[T] invocationOne, System.Collections.Generic.List`1[T] twoInterfaces, System.Action`1[T] invocationTwo, System.Boolean exitOnFailure) (at <92e8e151ac2247a491cb6ca42a1bead9>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)

    Is this a known issue/is there a workaround?
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,056
    An UnauthorizedAccessException usually means the caller does not have the required permission.
    Although it could also be that's it's trying to move a directory instead of a file. Try updating to the latest addressable and localization (1.4.2) package versions, it may have been fixed.