Deductions & credits

The  Solar credit is taken in the year the solar system is "placed in service" which cannot be done until it passes the inspection.