The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
Mail merge issue
Posted: 25 Feb 08 4:27 PM
|
Has anyone seen this message "Mail Merge Engine encountered an error and cannot continue. The address table query is empty. |
|
|
|
Re: Mail merge issue
Posted: 25 Feb 08 7:39 PM
|
Yes - it happens when you have Contacts/Accounts with no Primary address. |
|
|
|
Re: Mail merge issue
Posted: 25 Feb 08 8:56 PM
|
Here's some SQL that might help you out.
select a.accountid, a.account from account a where not exists (select addr.addressid from address addr where addr.entityid = a.accountid and addr.isprimary = 'T')
Works for accounts - modify it a little and it will work for contacts too.
PP
|
|
|
| |
|
Re: Mail merge issue
Posted: 26 Feb 08 12:45 PM
|
Thanks Phil, the SQL works great, the suspect record is not part of the result. Any other ideas?
Thanks! |
|
|
|
Re: Mail merge issue
Posted: 27 Feb 08 8:28 AM
|
Have you checked whether there are any single quotes/apostrophes in the addresses? That can end up being a gotcha on SQL queries involving addresses. Another thing to check could be the use of a calculated field for the address-city-st-zip if you are applying a group. |
|
|
| |
| |
|
Re: Mail merge issue
Posted: 21 Jan 09 1:25 PM
|
Ah, excellent. I had the same problem and discovered with the help of this post that the contact's address was not marked as primary (or shipping) |
|
|
|