InDesign Data Merge overset text: how to make long text fit
The merge finishes and then you find a product name that spills out of its frame. InDesign tells you about overset text only after the merge is done. Here are four ways to deal with it.
Updated 24 November 2026
Short answer
Data Merge puts the same text frame on every record, so a long name that fits in row 1 can overflow in row 80. You cannot know until the merge is finished. The fix is to make the frames cope with long text, or to find the overflows quickly and fix only those.
Method 1: Auto-Size the placeholder frames
For fields that must stay on one line, select the frame and choose Object > Text Frame Options > Auto-Size. Set it to grow the width or the height, and pick the reference point so it grows in the direction you want. This suits names and short fields. It does not suit a fixed-size box where the text must stay inside.
Method 2: export to PDF and read the report
In the Data Merge panel menu, Export to PDF merges and exports in one go, and InDesign produces a report that notes each overset example. Some people also find that exporting straight to PDF avoids a false overset warning, where the placeholder looks too big but the real text fits.
After a normal merge, the Preflight panel (Window > Output > Preflight) lists text frames with overset text, so you can jump to each one.
Method 3: plan for the longest value
- Sort your sheet by length and look at the longest name. Size the frame for that one.
- Use a slightly condensed font, or set a horizontal scale of 90% in the paragraph style.
- Add a GREP style that shrinks long lines. In the paragraph style, add a GREP Style that applies a smaller character style to the pattern
^.{26,}$. That matches any paragraph of 26 or more characters, so only long names get smaller.
Method 4: a script that shrinks text until it fits
Scripts that reduce the point size in steps until the frame stops overflowing are widely shared. They run after the merge and fix every frame in one pass. Test any script on a copy first, and set a minimum size so text does not become too small to read on a price ticket.
Where PageFill fits
Both PageFill editions list text that does not fit in the report at the end of every run, so you see the problem rows straight away. PageFill Pro also has shrink to fit, which reduces the text so it fits its frame as the tickets are filled. You do not need a GREP style, a second script or a PDF report to find the problem.
Try PageFill free Compare Standard and Pro
PageFill is built for price tickets, shelf signs and sale cards. It is not a catalogue or directory tool. It runs inside Adobe InDesign 2020 or later on Mac and Windows.
Further reading: Adobe Help: Merge data in InDesign.
More InDesign tips
- InDesign Data Merge: Multiple Records per Page is greyed out (how to fix it)
- InDesign Data Merge shows broken accents and strange characters: the fix
- InDesign Data Merge says images are missing: how to fix it
- How to hide empty fields and frames after an InDesign Data Merge
- How to make price tickets in InDesign from Excel
- How to make your own price ticket template in InDesign
- All InDesign tips
