Issue with relinking excel files

Hello,
There is a bug in a new version,

relinking xlsx reference is not working correctly - instead of keeping the same cell range as the original file. it’s bring the all sheet.

in my case i have multiple cells in my layout files..

each cell turns in to a sheet.. which makes Layout to crash..

what to do?

I’m not able to duplicate what you describe. Can you share example files that exhibit this behavior?

I will try to explain with a simple example..

a Layout file with tables linked to a excel file:

one table is linked to rage A1:B5
the second table linked to a rage D1:E5

now i want to relink the Excel reference from one excel file to another.

Excel A

Excel B:

Relinking the the To “Excel B” is not keeping the same rage - it brings all in.
so instead of keeping the same rage, the result is:

it’s a simple example..

my original project files linked to complex excel files.. so “bringing all in” crashes the program.

i hope it’s clearer now.

TEST_File.layout (16.0 KB)

Are you getting the window that allows you to select the sheet and range of cells you want to use?

Yes.
but each table has it’s own range.

And you can pick the range you need when you select the new spreadsheet.

I tested this in LayOut 2026 and the behavior is the same.

Editing the range has not sense.
Because I can have 10 different tables with 10 different ranges linked to the same sheet at the same file (Excel_A)..

at the previous versions i could just relink to (Excel_B) all the ranges would kept, and the data would be updated.

Again, I’m not seeing anything different in LayOut 2026.

2026:

2027:

Still the same issue after updating to 27.0.267

I am seeing I assume the same thing with MacOS, LO build 27.0.267. This renders LO 2027 unusable as I work from Excel files that populate my title blocks etc

All my imported tables from my Excel Master are defaulting to the complete contents of the first sheet in my workbook, ignoring any other pages and ranges. :face_with_symbols_on_mouth:

A similar thing happened last year. Excel Import really needs a lot more stress testing in these major updates.

Possibly one way to get around this is to do the relinking in 2026 before opening in 2027. Updates after relinking seem to work ok in 2027. I found this bug after setting things up for my latest project in 2027. Opening the files in 2026 didn’t appear to be an issue, but I can’t vouch for what happens if you’ve used any of the other 2027 new features.

This is an interesting topic.

You all are suggesting that when relinking to a new external table document, you want to keep the previous table page (for an xlsx sheet) and range - regardless of what is chosen in the table import options dialog?

What would you expect to happen if one of your existing tables referenced a range of cells that didn’t exist in the external table file? Or if you initially linked to an xlsx and relinked to a csv, and originally referenced Sheet2, Sheet3, etc? Would that then default to whatever was chosen during the relink, or would you not even expect the import options dialog to show up during a relink operation for tables?

Appreciate the feedback,

Adam

@DaveR,

This appears to be a pretty specific process where a user will have multiple tables referencing the same external file, but importing different ranges of said file. This has indeed changed between 26.2 and 27.0 such that when a user relinks a table file reference, every table is updated to match the new options selected during the relink process. This was done intentionally when we updated our table importer extension. However, this user workflow was not taken into consideration at that time. I think there may be a way to re-introduce that in a future release.

Adam

This also gets extra complicated when merged cells overlap in different ranges for different files, or when a new xlsx file might happen to have a sheet with the same name as the old file, but actually completely different data set up, or in a different order. Do we choose based on the sheet name, or the index of the sheet in the new file?

Adam,

I use an excel spreadsheet in my construction sets, to keep all the info in multiple layout documents in sync. In my title blocks, I reference different ranges of the same sheet, to get info like project name, address, etc. Also, to keep general project notes, specifications, etc.

I tried this in 27, and, it does not work… This breaks my workflow…

Also, if I undo the change, the reference xls file is gone from document/references…

It is a problem I’ve had myself in which relinking files does not always work as it should. Perhaps validating the Excel file path and verifying that the sheet and cell ranges are still valid might be beneficial. Hopefully, you won’t need to start from scratch with it.

yes.. it was like this till now, it have been changed in the last version (2027)

What would you expect to happen if one of your existing tables referenced a range of cells that didn’t exist in the external table file? Or if you initially linked to an xlsx and relinked to a csv, and originally referenced Sheet2, Sheet3, etc? Would that then default to whatever was chosen during the relink, or would you not even expect the import options dialog to show up during a relink operation for tables?

.
what happened till now (in the previous versions)
if the sheets name did not exist it went to the first sheet and brought up all the data..
maybe a better solution for this is to warn the user that something is wrong with his range, and give his the option to correct the range.

@adam 26.2 was working quite happily and I don’t recall seeing any significant concerns aired here regarding broken tables etc. So why change the workflow? I think those of us using this linking arrangement are well aware of the risks, if things are out of place we should be diligent enough to resolve the problem. We did manage to format our Excel files and links in the first place. I would assume when a link is made to a corrupt or mismatched file that LO would simply retain the existing Sheet and Range and populate the table with blanks for simplicity where a sheet is present or some warning e.g. “Error” in the problem cells if the sheet is missing. This would then allow the user to change or fix the linked file and the tables in LO would then populate as expected.

This issue is affecting me as well.

My process is that each time I edit the excel file I duplicate it and put the old version in a backup folder. Then the newly duplicated file is renamed with todays date. I do this so I can go back to any version of a document on a past date and keeps me safe if a file is corrupted.

So it seems to think I am loading a ‘new’ file and resets the imported cell range as described above.

The quick fix is probably to not have a ‘dated’ file as the linked sheet and just date the backed up copy.

I’d love to know if this is on your radar to change back to the old behaviour before I start adjusting my memorised workflow!