Using Create Constituent address and getting an unwanted blank address line 2 (UK Address format)

Hi

Please can you give advice as to why this may be happening? Our app developer is using the API to add addresses for new constituent records. When addresses just have a single address line followed by the City and Postcode we are getting an additional 2nd blank address line inserted. This additional line appears as a blank line between address line 1 and the City when we create labels or mail merge the address that has been added via the API.

If the address has 2 address lines followed by the City and Postcode there are no blank lines in the address block.

Can we avoid this additional blank line from being created?

Thanks

Debbie

Comments

  • Hard to say without seeing the code, but to me it sounds like your developer might have created their address_lines value something like this: {Line 1}\\n{Line 2}

    This would mean that the new line would be passed even if Line 2 was blank.

    Just a guess.