LOGGER.info('Analysis SID: ' + str(analysis_sid))
        except:
            LOGGER.error('Error: Failed to extract the analysis SID from analysis name')
            file_skeleton(OUTFILE)
            sys.exit()

        try:
            result_sid = db.result_sid(analysis_sid)
            LOGGER.info('Mod Result SID: ' + str(result_sid))
        except:
            LOGGER.error('Error: Failed to extract result SID from analysis SID')
            file_skeleton(OUTFILE)
            sys.exit()

        try:
            location_information = db.get_loc_info_policy(exposure_db, exposure_name, result_db, result_sid)
            LOGGER.info('Location Information:\n ' + str(location_information))
        except:
            LOGGER.error('Error: Failed to extract location information')
            file_skeleton(OUTFILE)
            sys.exit()

        try:
            resultDF = ft.apply_terms(location_information)
            resultDF['Difference'] = resultDF['expectedGross'] - resultDF['exposedGross']
        except:
            LOGGER.error('Error: Failed to apply financial terms')
            file_skeleton(OUTFILE)
            sys.exit()

        sequence = ['ContractID', 'LocationID', 'AIROccupancyCode', 'ReplacementValueA',
            LOGGER.error(
                'Error: Failed to extract the analysis SID from analysis name')
            file_skeleton(OUTFILE)
            sys.exit()

        try:
            result_sid = db.result_sid(analysis_sid)
            LOGGER.info('Mod Result SID: ' + str(result_sid))
        except:
            LOGGER.error(
                'Error: Failed to extract result SID from analysis SID')
            file_skeleton(OUTFILE)
            sys.exit()

        try:
            location_information = db.get_loc_info_policy(
                exposure_db, exposure_name, result_db, result_sid)
            LOGGER.info('Location Information:\n ' + str(location_information))
        except:
            LOGGER.error('Error: Failed to extract location information')
            file_skeleton(OUTFILE)
            sys.exit()

        try:
            resultDF = ft.apply_terms(location_information)
            resultDF['Difference'] = resultDF['expectedGross'] - resultDF[
                'exposedGross']
        except:
            LOGGER.error('Error: Failed to apply financial terms')
            file_skeleton(OUTFILE)
            sys.exit()