Support Tip: How to edit Location Addresses in CM ServiceAPI

0 Likes

Error "Physical Address: Can only have one street and one mailing addresses" generated when attempting to update a Location Address. This article explains why this may be expected and how to update a Location Address.

Environment

Content Manager 9.x and 10.x


Situation

The error below is generated when attempting to update a Location Address.
Physical Address: Can only have one street and one mailing addresses


Cause

A Location can only have one Street and Mailing Address.

If the JSON body used is trying to add the Street and Postal addresses, the error "Physical Address: Can only have one street and one mailing addresses" is expected when the location already has a Street or Postal address.


Resolution

Location Addresses in Content Manager are handled as Child Collections.

As per the ServiceAPI Help file on Child Collections (/CMServiceAPI/help/ChildCollections), "edit an existing item by including an object containing a valid Uri and all properties that require modification".

Caroline Oest

Micro Focus Customer Experience Marketing

If you find this post useful, give it a ‘Like’ or use ‘Verify Answer’

Labels:

Knowledge Docs
Comment List
Anonymous
Related Discussions
Recommended