Bug 137510 - Mail merge printer or single: fields remains without value at second header style
Summary: Mail merge printer or single: fields remains without value at second header ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 137464 140072 (view as bug list)
Depends on:
Blocks: Mail-Merge
  Show dependency treegraph
 
Reported: 2020-10-15 17:11 UTC by pabordel
Modified: 2023-03-21 17:34 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
result of merge with bug (149.44 KB, application/pdf)
2020-10-15 17:13 UTC, pabordel
Details
source file (25.97 KB, application/vnd.oasis.opendocument.text)
2020-10-15 17:14 UTC, pabordel
Details
database used (24.36 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-10-15 17:17 UTC, pabordel
Details
Minimal sample ODT (9.29 KB, application/vnd.oasis.opendocument.text)
2021-03-08 14:42 UTC, Timur
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pabordel 2020-10-15 17:11:15 UTC
Description:
when I create a unique odt file from mail merge (via printing) not all the fields are replace by their values some just remain fields. I generate a two pages document, I use the same field twice in two different page headers (page styles are different) and only the second is not replaced.
Fields in page body don't have any problem. 
This problem is not present when I create individual pdf files neither when I create individual odt files.

Steps to Reproduce:
1.create a two page mailling document with field use in page headers
2.print to one file
3.open odt created

Actual Results:
field present in result still like in mailling

Expected Results:
field replaced by their values


Reproducible: Always


User Profile Reset: No



Additional Info:
Version : 6.4.6.2
Build ID : 1:6.4.6-0ubuntu0.20.04.1
Threads CPU : 12; OS : Linux 5.4; UI Render : par défaut; VCL: gtk3; 
Locale : fr-FR (fr_FR.UTF-8); Langue IHM : fr-FR
Calc: threaded
Comment 1 pabordel 2020-10-15 17:13:43 UTC
Created attachment 166391 [details]
result of merge with bug
Comment 2 pabordel 2020-10-15 17:14:22 UTC
Created attachment 166392 [details]
source file
Comment 3 pabordel 2020-10-15 17:17:58 UTC
Created attachment 166393 [details]
database used
Comment 4 Timur 2020-10-15 17:42:11 UTC Comment hidden (obsolete)
Comment 5 Timur 2020-10-16 07:06:39 UTC Comment hidden (obsolete)
Comment 6 Timur 2021-03-08 13:55:36 UTC
I reproduced with 7.2+ and this seems to be problem ever since OO. 
Repro for print to printer and single file, not to individual files. 

Related is bug 128148, sane in bug 124550.

Problem with mail merge bugs is that reports are with long personal documents and databases, which is wrong. They should be using fields from in-built Bibliography. 
In this case proper minimal sample needs just 2 pages with different styles and headers filled with a single field from Bibliography. When printing, 1 record can be used.
Comment 7 Timur 2021-03-08 13:58:34 UTC
*** Bug 137464 has been marked as a duplicate of this bug. ***
Comment 8 Timur 2021-03-08 14:42:05 UTC
Created attachment 170335 [details]
Minimal sample ODT
Comment 9 Michael Weghorn 2021-03-08 15:42:22 UTC
(In reply to Timur from comment #6)
> Problem with mail merge bugs is that reports are with long personal
> documents and databases, which is wrong. They should be using fields from
> in-built Bibliography. 
> In this case proper minimal sample needs just 2 pages with different styles
> and headers filled with a single field from Bibliography. When printing, 1
> record can be used.

Thanks for that hint. Just to mention it, since I was confused for a moment: The "Author" field is empty for 2nd and 3rd entry in bibliography, so it's expected that the corresponding pages for these entries in the sample doc are as well after mail merge. So maybe it's even more ideal to use fields that are non-empty for all entries in sample docs. :-)

But, as mentioned in this bug, it looks incorrect that the "Author" field is not replaced on page 3 of the source document at all for any of the entries.
Comment 10 Timur 2021-03-15 12:30:24 UTC
*** Bug 140072 has been marked as a duplicate of this bug. ***
Comment 11 QA Administrators 2023-03-16 03:28:31 UTC Comment hidden (obsolete)
Comment 12 hardy 2023-03-21 17:34:12 UTC
I have first tested the duplicate bug #140072 with the current LibreOffice 7.5.1.2 (under Ubuntu Linux). And this one seems to be SOLVED, now. At least my description how to reproduce that bug, now generates fully correct mail merge PDF file.

BUT: When I test this very bug, by mail merge printing the "minimal sample ODT" from comment #8 in this bug report, then I still DO SEE this bug. In the resulting PDF file there are still serveral occurances of "<Author>" instead of the individual content of this autor field.

Conclusion: This bug IS still present.

version information:
Version: 7.5.1.2 (X86_64) / LibreOffice Community
Build ID: fcbaee479e84c6cd81291587d2ee68cba099e129
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: de-DE (de_DE.UTF-8); UI: en-US
Calc: threaded