Load string resources error?

My code
function getDayOfWeek(mDayOfWeek) {
return Ui.loadResource(
mDayOfWeek == 1
? Rez.Strings.Sun
: mDayOfWeek == 2
? Rez.Strings.Mon
: mDayOfWeek == 3
? Rez.Strings.Tue
: mDayOfWeek == 4
? Rez.Strings.Wed
: mDayOfWeek == 5
? Rez.Strings.Thu
: mDayOfWeek == 6
? Rez.Strings.Fri
: Rez.Strings.Sat
);
}
I am sure the strings exist. But a lot of errors occur.


Error Name: Invalid Value
Occurrences: 65
First Occurrence: 2023-12-29
Last Occurrence: 2023-12-30
Devices:
fēnix® 6 Pro / 6 Sapphire / 6 Pro Solar / 6 Pro Dual Power / quatix® 6: 26.00
fēnix® 6 Pro / 6 Sapphire / 6 Pro Solar / 6 Pro Dual Power / quatix® 6: 26.00
Venu® 3: 8.25
vívoactive® 5: 8.27
 DescentTm Mk2 S: 22.30
Forerunner® 965: 17.26
 epixTm (Gen 2) / quatix® 7 Sapphire: 15.77
Forerunner® 245: 12.10, 13.00
Forerunner® 245: 9.00
Forerunner® 245: 11.60, 13.00
 DescentTm Mk2 / DescentTm Mk2i: 20.40
Forerunner® 255 Music: 17.26, 15.19
Forerunner® 265: 17.26
Forerunner® 745: 13.00
Venu® 3S: 8.25
Forerunner® 255: 17.26
fēnix® 6X Pro / 6X Sapphire / 6X Pro Solar / tactix® Delta Sapphire / Delta Solar / Delta Solar - Ballistics Edition / quatix® 6X / 6X Solar / 6X Dual Power: 26.00
fēnix® 6X Pro / 6X Sapphire / 6X Pro Solar / tactix® Delta Sapphire / Delta Solar / Delta Solar - Ballistics Edition / quatix® 6X / 6X Solar / 6X Dual Power: 26.00
fēnix® 7X Pro: 15.77
Forerunner® 955 / Solar: 17.26
Forerunner® 745: 12.10
Forerunner® 245 Music: 13.00
 fēnix® 7X / tactix® 7 / quatix® 7X Solar / EnduroTm 2: 15.77
fēnix® 7 / quatix® 7: 15.77
Forerunner® 255s Music: 17.26
App Versions: 1.3
Languages: chs, cht, dut, eng, fre, jpn, kor, pol, spa, swe, tha
Backtrace:
getDayOfWeek:1535
onUpdate:489
  • One time I got similar ERA report for resources when app was updated to newer version and new resources was added.

    It was absolutely ok in the simulator. Case was look like real watch for some reasons do not activate new resources data.

    Other probably somehow similar case when three different resources loaded as a first one (it was a bitmap).

    But ... turn watch off / on fixed this strange issue.