(a) A certificate of occupancy authorized and issued by the building official shall be required in advance of: (1) The initial use or occupancy of a lot. (2) Any change in the use or occupancy of a lot. (3) The change in use, extension, alteration, or reconstruction of any nonconforming use enjoying any exemption of regulation provided by the land development code. The certificate of occupancy shall state specifically wherein the nonconforming use fails to meet the provisions of this chapter. (b) Except in the case of nonconforming uses existing at the time of the enactment of the ordinance from which this article is derived or an amendment thereto, no certificate of occupancy shall be issued unless the lot, building, or structure complies with the provisions of this chapter. A record of all certificates of occupancy shall be kept on file in the office of the building official and a copy shall be furnished on request, to any person having a proprietary or tenancy interest in the lot, building, or structure involved, unless the record is otherwise protected from disclosure by law.