Api 키워드/주소 검색이 되었다가 안되었다가 합니다

[FAQ] 지도/로컬 API 문의 전 꼭 읽어 주세요.

검색시 잘 나오던게 검색이 안될때도 있고, 반대의 경우도 그렇습니다.

function markerMove(placeName) {
  if (positions2.filter(a => a.title.indexOf(placeName) > -1) != undefined && positions2.filter(a => a.title.indexOf(placeName) > -1) != null) {
    var x = positions2.filter(a => a.title.indexOf(placeName) > -1)[0].x
    var y = positions2.filter(a => a.title.indexOf(placeName) > -1)[0].y
    var title = positions2.filter(a => a.title.indexOf(placeName) > -1)[0].title
    var locPosition = new kakao.maps.LatLng(y, x)
    var marker = positions2.filter(a => a.title.indexOf(placeName) > -1)[0].marker
    map.setCenter(locPosition);
    infowindow.close();


    infowindow.setContent('<div class="markerdesc" style="padding:5px;font-size:12px;">' + title + "</div>");
    infowindow.open(map, marker);
  }
}

function markerMovebyaddress(placeName) {
  if (positions2.filter(a => a.address.indexOf(placeName) > -1) != undefined && positions2.filter(a => a.address.indexOf(placeName) > -1) != null) {
    var x = positions2.filter(a => a.address.indexOf(placeName) > -1)[0].x
    var y = positions2.filter(a => a.address.indexOf(placeName) > -1)[0].y
    var title = positions2.filter(a => a.address.indexOf(placeName) > -1)[0].title
    var locPosition = new kakao.maps.LatLng(y, x)
    var marker = positions2.filter(a => a.address.indexOf(placeName) > -1)[0].marker
    map.setCenter(locPosition);
    infowindow.close();


    infowindow.setContent('<div class="markerdesc" style="padding:5px;font-size:12px;">' + title + "</div>");
    infowindow.open(map, marker);
  }
}

위 함수에서 오류가 발생합니다.

첨부 코드에서 키워드/주소 검색 API를 사용한 부분은 보이지 않네요.
직접 구현한 markerMove, markerMovebyaddress 함수가 정상 동작을 하지 않는다는 문의일까요?

Open API의 사용에 대한 문의가 아닌 직접 구현한 함수의 기능적인 문의라면
관리하는 데이터 구조, 각 함수들이 갖는 의도, 의도와 달리 다르게 나오는 결과값들의 원인 등…
로직에 대한 자세한 정보를 알 수 없기 때문에 확인이 어렵습니다.

직접 디버깅으로 상황마다 다르게 동작하는 원인을 찾아주세요.

만약 Open API 사용에 대한 문제라면 자세한 설명과 현상을 확인할 수 있는 코드, 데이터 정보도 함께 첨부해주세요.