Consider this BASIC code: Sub TestDayFunction Dim d As Date d = "2025-01-23" oService = CreateUnoService("com.sun.star.sheet.FunctionAccess") MsgBox oService.callFunction("DAY", array(d)) End Sub Running it produces an "Object variable not set" runtime error. Commenting out the Dim statement, it runs correctly. It is expected that the code runs OK. Obviously an error in 9cdb73ff28c4cd6380412468f34ff10e46292a07, which for some reason made getUnoTypeForSbxBaseType handle IsCompatibility differently compared to the other places in the same file.
https://gerrit.libreoffice.org/c/core/+/180637
Mike Kaganski committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/63e7a70ad1a6a8ec4190ab510f683d2fc9dea417 tdf#164811: swap the "if IsCompatibility()" branches to match other places It will be available in 25.8.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Mike Kaganski committed a patch related to this issue. It has been pushed to "libreoffice-25-2": https://git.libreoffice.org/core/commit/014bd12ed01fbac87ca4698f48e3f6722e73e480 tdf#164811: swap the "if IsCompatibility()" branches to match other places It will be available in 25.2.1. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.