From https://ask.libreoffice.org/en/question/80419/saving-xlsx-file-causes-corruption/ When loading the original 'Before' file during compilation of the named expressions/ranges the external links mapping is not available, so in '[1]BLT Use Only'!$B$1:$B$32 the ID 1 of [1] is not resolved to a known external, hence the resulting file name '1' (prepended with the document's location path) that makes no sense in this context.
Eike Rathke committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=e641c1740f36ce11c9f178193f74a53ac7af8465 Resolves: tdf#103530 OOXML: pass ExternalLinkInfo compiling named expressions It will be available in 5.3.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Pending review https://gerrit.libreoffice.org/30321 for 5-2
Eike Rathke committed a patch related to this issue. It has been pushed to "libreoffice-5-2": http://cgit.freedesktop.org/libreoffice/core/commit/?id=ce118a11f14250ffc5fc625ae9a84ad12b28c62b&h=libreoffice-5-2 Resolves: tdf#103530 OOXML: pass ExternalLinkInfo compiling named expressions It will be available in 5.2.4. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.