Bug 137464

Summary: Numerous problems with document mailmerge
Product: LibreOffice Reporter: Mike Barrow <mjbarrow52>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: medium    
Version: 6.4.6.2 release   
Hardware: x86-64 (AMD64)   
OS: Windows (All)   
Whiteboard:
Crash report or crash signature: Regression By:

Description Mike Barrow 2020-10-14 00:45:01 UTC
Description:
I have been using Libre Office for several years to create a newsletter for a small non-profit organisation of less than 200 members.
Recently I have found that the mailmerge print to file function to create a single file document with Member Names in the page header alters the document format in the output document and only merges the Member Name on the first page of the document.  Sometimes Libre Office crashes during the merge process.

Steps to Reproduce:
1.Create a base .odt document (2-4 pages) with a page header.
2.Link the document to an Exchange Database - a two column .ods spreadsheet containing first name and last name of each member.
3.View Datasources and insert the first name and last name fields into the page header.
4. Save the document.
5. Print the document, which is recognised as a merged document, and choose to print a form letter.
6. Select Records = All, Output = File, Save as single document.
7. Save the output file with a new name.  Sometimes crashes at this point.
8. Open the output file.

Actual Results:
The output file includes multiple copies of the base file as expected.  The page header of each copy includes the member first name and last name only on the first page and field markers <FIRST> <LAST> on the remaining pages.
Page format is also different from the base document with text overflowing to the following page.

Expected Results:
The member first name and last name should appear on each page of each copy in the output file.
The page format should be identical to the base document.


Reproducible: Always


User Profile Reset: No



Additional Info:
crashreport.libreoffice.org/stats/crash_details/7c27a937-924b-4e10-8f0a-f53cbbb075f1
submitted.
Version: 6.4.6.2 (x64)
Build ID: 0ce51a4fd21bff07a5c061082cc82c5ed232f115
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: GL; VCL: win; 
Locale: en-AU (en_AU); UI-Language: en-GB
Calc: threaded
Comment 1 Timur 2020-10-14 06:28:46 UTC
Please attach minimal sample ODT using in-built Bibliography as a source. 
Only if it doesn't repro, use ODS.
Please understand it's tedious to create from scratch and it may miss some detail.
Comment 2 Timur 2020-10-16 06:56:07 UTC
Frther requests: 
try with User Profile Reset (delete or rename)
test daily master from https://dev-builds.libreoffice.org/daily/master/current.html
Comment 3 Timur 2021-03-08 13:58:34 UTC
Let's assume header issue and duplicate.

*** This bug has been marked as a duplicate of bug 137510 ***