You may be holding a notice that arrived in the mail. You may have inherited a house whose history nobody can explain, or you may be getting ready to sell and want to know what a buyer will find. In each case the question is the same: what does the local agency have on file, and what does that record mean for the next decision? This guide covers what a code violation record is, who it touches, how to request the records, how the seller disclosure rules apply, and the paths an owner can compare once the record is in hand.

To find out whether a California property has code violations, check with the agency that enforces codes where the property sits. That is the city's code enforcement or building office for a parcel inside city limits, or the county's office for an unincorporated parcel. Some agencies offer an address search online. Others answer a direct inquiry or a public records request.
On this page
What a Code Violation Record Means for Owners
A code violation is a finding by a city or county code enforcement officer that a condition on the property does not meet the local municipal code, the building code or a health and safety standard. The code enforcement officer is the local employee who inspects properties and issues those findings.
Every case on file carries a status, and that status is the first thing worth reading. An open violation is unresolved and still on the agency's books. A closed or cleared violation has been corrected and signed off by the agency. A closed case from years ago tells a buyer about the property's history. An open case still asks something of whoever owns the property now.
A violation can be on record even when the current owner did not create the condition. A garage converted decades ago, or a deck built by a prior owner, can surface in a present-day case. Some agencies also record a notice of violation or a lien against the property with the county recorder. A lien is a recorded claim against the property itself. Whether such a recording stays with the property after a sale depends on what was recorded and on the local ordinance. A title officer or an attorney can read the recorded document and say what it does.
Because enforcement happens at the city or county level, the office to contact depends on whether the parcel sits inside a city or in an unincorporated county area. The guide to building code violations for owners explains how those local offices enforce building and housing codes.
Who It Affects
The owner of record is the person or entity whose name appears on the recorded deed. That is the party an enforcement agency looks to, whoever lives in the house. Different owners come to this question for different reasons.
- Current owners with a notice. Their record shows what the agency has already found and what it is asking them to correct.
- Heirs and successors. They may take a property along with whatever cases were open when it passed to them.
- Sellers. They want to know what is on file before a listing or transfer, because a buyer may look too.
- Buyers and investors. They check before a purchase. A title search can turn up a recorded notice or lien, but an open case that was never recorded may not appear on a title report. A direct check with the enforcement agency covers that gap.
- Landlords. A tenant's complaint can prompt an inspection, and the resulting case is directed to the owner of record, not to the tenant.
For an heir, the record is often the first real look at what came with the property. That makes it a useful document to pull early, before any decision about keeping, fixing or selling.
How to Request the Records
Agencies handle these requests in different ways. Where an online address search exists, it is often the quickest starting point, though it may show only part of the file. A call or email to the code enforcement or building office can fill in what the search leaves out.
When an informal inquiry does not produce the full file, a formal public records request is the other route. California's public records law gives members of the public a way to ask a city or county for records it keeps. In plain terms, the request asks the agency in writing for its records about a specific address, such as the code enforcement case history, any notices, and the building permit history. Many agencies post a records request form or a portal on their website. A formal request can reach files that an online search does not show.
Disclosure Rules When the Property Is Sold
Once the record is in hand, a sale raises a natural follow-up: what does a buyer have to be told? California's seller disclosure rules are in an article of the Civil Code that begins with Civil Code section 1102. Under that section, the article generally applies to "any transfer by sale, exchange, real property sales contract as defined in Section 2985, lease with an option to purchase, any other option to purchase, or ground lease coupled with improvements of any single-family residential property," except as Civil Code section 1102.2 provides.
Two practical points follow from that text. First, Civil Code section 1102(c) states: "Any waiver of the requirements of this article is void as against public policy." A buyer and seller cannot agree their way out of the article. Second, nothing in that framework turns on whether the buyer pays cash or accepts the property as it is. "As-is" describes the condition a buyer accepts. It is not a release from disclosure.
What the duties look like does depend on the kind of transfer and, in some cases, on who the buyer is. Civil Code section 1102.2 lists transfers the article does not apply to, including:
- "Sales or transfers from one coowner to one or more other coowners."
- Sales or transfers made to a spouse, or to a person or persons in the line of consanguinity of one or more of the transferors.
- Sales or transfers to or from any governmental entity.
The list continues. It also covers transfers under court order, including probate sales and foreclosure sales, transfers by a fiduciary administering a trust or an estate (with a stated exception for certain revocable-trust trustees), and others. An attorney can say whether a particular transfer falls inside one of these exemptions.
One more detail is easy to miss. A buyer's title report and the agency's own file are two different records: a recorded notice of violation or lien will often surface in a title search, while an unrecorded open case may not. The page on selling a property with code violations goes further into how disclosure fits a sale.
Options and Trade-offs
An open record usually leaves an owner with a handful of paths. Each one costs something, and which fits depends on the property, the violations and the owner's own circumstances.
Correcting the violation. The owner brings the condition into compliance, obtains any required permits and gets sign-off from the enforcement agency or building department. That sign-off is what moves a case from open to closed. The work, the fees and the inspections take money and time, and the guide on what it costs to fix code violations lays out where those costs come from.
Legalizing unpermitted work. Where the violation is work done without a permit, an owner may be able to apply for an after-the-fact permit through the building department. That process can call for plans, opening walls for inspection or changes to the work. It is not assured to end in a permit; the building department decides.
Selling in present condition. An owner may sell a property that has open violations, and the buyer takes it as it is, violations included. A buyer who pays cash and takes on the violations often offers less than an open-market sale would bring, because that buyer carries the repairs, the risk of what correction will uncover and the cost of reselling. In exchange, the seller gets less preparation, fewer showings and less dependence on a buyer's loan or repair contingencies. This path does not change the disclosure picture described above, and it does not remove a recorded lien or an enforcement order.
Listing with a real estate agent. An open-market listing can reach more buyers. Some of those buyers will need financing or repairs that the open violations complicate.
Owners often tell these paths apart by comparing written offers and estimated net proceeds. Net proceeds are the price less commissions, repair costs, carrying costs, loan payoffs and closing costs. Where a co-owner, a lender, a contractor or the agency is in conflict with the owner, that dispute is a separate matter for an attorney.
Mistakes to Avoid
A clean title report is easy to read as a clean property. It shows only what was recorded, so an enforcement case the agency never recorded can still be open.
Treating a violation as the prior owner's problem is a second trap. As noted above, the agency looks to the current owner of record.
Setting a notice aside is a third. An agency can take further steps on a case that stays open, including recording a lien or starting administrative action under its local ordinance. The notice itself states what the agency is asking for and by when. For a notice already in hand, the overview of code violation help for owners explains what a notice, citation or red tag asks.
Mixing up the two record systems causes trouble too. A code enforcement case and a building permit record are kept separately, often by different divisions. A clear enforcement history does not show that past work was permitted, and a full permit file does not show whether a complaint is open.
The last is assuming a cash or as-is sale wipes the slate clean. As covered in the disclosure section, the selling method does not decide whether the disclosure article applies, and a recorded lien still has to be dealt with.
What to Do Next
The first fact to settle is where the parcel sits: inside a city's limits or in an unincorporated part of the county. That answer decides which agency holds the enforcement records. The county assessor's parcel information or a recent property tax bill often shows the jurisdiction.
From there, the fullest picture comes from two records side by side. The code enforcement case history shows open and closed cases. The building permit history shows what work was permitted and signed off. Gaps between the house as it stands and the permits on file are often where unpermitted work shows up.
A practical next step is finding the enforcement office's records search or contact page for that city or county and asking for the case history and permit history by address, informally or through a public records request. Asking whether any notice has been recorded against the parcel covers the part a title report may miss.
Ready to talk through your options?
Share the details of your notice. You choose whether contractors or a sale consultant may contact you.
Get help with my propertyFrequently asked questions
How do I look up code violations on a California property by address?
The method depends on the city or county that enforces codes where the property sits. Some agencies offer an online address search. Others answer a direct inquiry to their code enforcement or building office, or a public records request. A request for government records can reach files that an online search does not show.
What does a code enforcement records search actually return?
A record can show case numbers, the nature of each violation, when the case was opened, any compliance dates noted and whether each case is open or closed. It reflects what the agency has on file. It does not replace a physical inspection or a check of the building permit history.
Does a code violation have to be disclosed when selling a property in California?
The seller disclosure article beginning at Civil Code section 1102 applies to transfers of single-family residential property, and section 1102(c) voids any waiver. Civil Code section 1102.2 exempts certain transfers.
Does a code violation stay with the property or the owner?
The agency looks to the current owner of record, whoever created the condition. Whether a recorded notice or lien stays with the property after a transfer depends on what was recorded and the local ordinance. A title officer or attorney can read the recorded document and explain its effect.
Can a property be sold with open code violations in California?
Yes, a property can be sold in its present condition with open violations. The disclosure article's duties apply unless a Civil Code section 1102.2 exemption fits, and a recorded lien still has to be addressed. A buyer taking on the violations often offers less, because that buyer absorbs the correction cost and risk.