Error: Primary addresses cannot have end dates - when validating a batch

When using a Constituent Update Batch to add an address that already exists with an end date, as a new duplicate address without an end date and set as Primary, an error occurs.

This happens when we use the following settings, which should add the incoming address as a new entry, regardless of what already exists:

If incoming address is similar to an existing address: Add as new address
If incoming address is NOT similar to any existing address: Add as new address
If new address has the same type as any existing address: Keep existing address active
Make new address primary: Never

Steps to duplicate:
  1. Go to Administration > Import, and generate a header file for the Constituent Update Batch
  2. Create a new constituent that has two addresses
    • An active one set as Primary
    • An old one that has an end date
  3. Fill out the header file so that it would update the constituent from step 2
    • Make the address in the header file the exact same as the existing old address with an end date from step 2, without any end date
  4. Create an Administration > Import process that uses the Constituent Update Batch template
    1. Set the file to the Header File after you saved the above information to it
    2. Map the fields using the Auto-map function
    3. Click on the Addresses field, click "Map collection field" and select Auto-map
    4. Under Set Options, use the following settings on the Constituent Updates tab:
      1. If incoming address is similar to an existing address: Add as new address
      2. If incoming address is NOT similar to any existing address: Add as new address
      3. If new address has the same type as any existing address: Keep existing address active
      4. Make new address primary: Never
  5. Click Save
  6. Run Import Process, get exception
  7. Open exception and note above error. Expand Addresses field and see that the Import Process still tried to update existing address and not add as new
 We are currently evaluating this issue and will update this article when we have more information.

Environment

 4.0.131

Was this article helpful?