Localization become broken without any action from me

Today, when I pressed the play button again (nothing changed in localization itself) there are following error messages appeared:

Exception encountered in operation CompletedOperation, status=Failed, result= : Exception of type 'UnityEngine.AddressableAssets.InvalidKeyException' was thrown., Key=UI_ru, Type=UnityEngine.Localization.Tables.StringTable
UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:<.ctor>b__37_0(AsyncOperationHandle)
DelegateList`1:Invoke(AsyncOperationHandle) (at Library/PackageCache/com.unity.addressables@1.16.6/Runtime/ResourceManager/Util/DelegateList.cs:69)
UnityEngine.ResourceManagement.Util.DelayedActionManager:LateUpdate() (at Library/PackageCache/com.unity.addressables@1.16.6/Runtime/ResourceManager/Util/DelayedActionManager.cs:159)

Exception encountered in operation ChainOperation<StringTable,SharedTableData> - Resource<SharedTableData>(UI Shared Data.asset), status=Failed, result= : ChainOperation of Type: UnityEngine.Localization.Tables.StringTable failed because dependent operation failed
Exception of type 'UnityEngine.AddressableAssets.InvalidKeyException' was thrown., Key=UI_ru, Type=UnityEngine.Localization.Tables.StringTable
UnityEngine.ResourceManagement.ChainOperation`2:OnWrappedCompleted(AsyncOperationHandle`1)
DelegateList`1:Invoke(AsyncOperationHandle`1) (at Library/PackageCache/com.unity.addressables@1.16.6/Runtime/ResourceManager/Util/DelegateList.cs:69)
UnityEngine.ResourceManagement.ResourceManager:Update(Single)
MonoBehaviourCallbackHooks:Update() (at Library/PackageCache/com.unity.addressables@1.16.6/Runtime/ResourceManager/Util/MonoBehaviourCallbackHooks.cs:26)

All localized messages can be edited, but all localization, that loading in runtime, can not be displayed. After that, I was trying to upgrade library version from 0.8.0 to 0.9.0, but that was no effect. How can I fix it?

InvalidKeyException. That usually means the table is not in Addressables. Open the Addressables window and see if it is in the StringTable group. If its not you can go to the collection and remove and re-add the table.

There was no “StringTable” group. I created new one, added table assets, but nothing changes:

They don’t have the correct addresses. Select the string table collection and remove the table under the Tables foldout, then click add to readd it with the correct Addressables info

Thanks, after re-adding localization all works correct.

1 Like