I have custom content type and custom column (Site Archival Date) associated with Site Type in Site Deployment Console. I was checking the below code in Site Profile Precondition Tester and got the below error. I have verified that the custom column is available in the site.
Code
if (web.Site.Site_x0020_Archival_x0020_Date < DateTime.Today.AddMonths(1))
return true;
return false;
Error
Checking the precondition code gfailed. PreconditionsCode.cs(1,135) : error CS0117: 'Microsoft.harePoint.SPSIte' does not contain a definition for Site_x0020_Archival_x0020_Date