localError not properly assigned on obtainPermanentIDsForObjects: