This function returns am_status_t with one of the following values:
If no error was detected.
If the map argument is NULL.