Running Merge Jobs
Merge jobs are the process of generating documents from your templates and Salesforce data. This guide covers how to run merge jobs, monitor progress, and troubleshoot common issues.
Starting a Merge Job
Quick Merge (Single Record)
- Navigate to a Salesforce record
- Click the Magic Merge button or action
- Select a template from the dropdown
- Click Generate
Batch Merge (Multiple Records)
- Open the Magic Merge app
- Click New Merge Job
- Select your template
- Choose records using a filter or list view
- Configure output options
- Click Run Merge
Tip: For large merge jobs (500+ records), consider running them during off-peak hours to optimize performance.
Merge Job Options
Output Location
Choose where generated documents are saved:
- Salesforce Files - Store in the Files section
- Record Attachments - Attach to individual records
- Both - Save in Files and attach to records
- Download Only - Generate and download without saving
File Naming
Specify how files should be named using merge fields:
Invoice_{{!Account.Name}}_{{!TODAY}}
Output Format
Override the template's default format if needed:
- PDF - For final, non-editable documents
- DOCX - For editable Word documents
- XLSX - For editable Excel spreadsheets
Monitoring Merge Jobs
Job Queue
View all active and queued merge jobs from the Merge Jobs tab:
- Queued - Waiting to process
- Processing - Currently generating documents
- Completed - Successfully finished
- Failed - Encountered errors
Progress Tracking
For batch jobs, you can see:
- Total records being processed
- Number of records completed
- Estimated time remaining
- Any errors or warnings
Notifications
Configure email or in-app notifications for:
- Job completion
- Job failures
- Warning messages
Merge Job Results
Accessing Generated Documents
After a merge job completes:
- Navigate to the job in the Merge Jobs tab
- Click View Results
- Download individual files or bulk download all
- Access files from record pages or Salesforce Files
Merge History
All merge jobs are logged with details including:
- Who ran the job
- When it was executed
- Template used
- Number of records processed
- Success/failure status
Troubleshooting
Common Issues
Merge Job Stuck in Queue
Check if you've reached your concurrent job limit. Wait for other jobs to complete or contact support to increase limits.
Missing Data in Output
Verify that:
- Merge fields are spelled correctly
- Fields exist on the object
- Running user has permission to access fields
Job Failed with Errors
Review the error log in the job details. Common causes include:
- Template formatting issues
- Invalid merge field syntax
- Salesforce governor limits exceeded
- Insufficient storage space
Best Practice: Test templates with a small subset of records before running large batch merges to catch potential issues early.
Bulk Operations
Processing Large Record Sets
For merges with thousands of records:
- Jobs are automatically batched into manageable chunks
- Processing continues even if individual records fail
- Partial results are available before job completion
Scheduled Merges
Automate recurring merge jobs by scheduling them to run:
- Daily, weekly, or monthly
- At specific times
- With predefined filters and templates
Common Questions
How long do merge jobs take?
Single record merges typically complete in seconds. Batch jobs depend on record count and template complexity, usually processing 50-100 records per minute.
Can I cancel a running merge job?
Yes. Click the cancel button next to the job in the queue. Already generated documents will remain, but no new documents will be created.
What happens if my merge allocation runs out?
Jobs will fail until your allocation resets (monthly) or you upgrade your plan. You'll receive warnings as you approach your limit.
Need Help? If merge jobs are failing consistently or you need guidance optimizing performance, contact our support team.