context.logEntry("Data Analyisis created for Data Ingestion %s (ID: %s)"%(str(data_ingestion.getReference()),data_ingestion.getId()))
context.logEntry("Data Analyisis created for Data Ingestion %s (ID: %s)"%(str(data_ingestion.getReference()),data_ingestion.getId()))
except:
exceptExceptionase:
context.logEntry("[ERROR] Error creating Data Analysis for Data Ingestion '%s' (ID: %s). Script returned"%(str(data_ingestion.getReference()),data_ingestion.getId()))
context.logEntry("[WARNING] Exception creating Data Analysis (already created?): "+str(e))
return# Data Analysis was already created
data_analysis=None
# create input and output lines
ifdata_analysisisnotNone:
context.logEntry("creating input and output lines of data analysis %s (ID: %s)"%(str(data_ingestion.getReference()),data_ingestion.getId()))
context.logEntry("[ERROR] Error creating Data Analysis for Data Ingestion '%s' (ID: %s): %s"%(data_ingestion.getReference(),data_ingestion.getId(),str(e)))
context.logEntry("[ERROR] Error creating Data Analysis for Data Ingestion '%s' (ID: %s): %s"%(data_ingestion.getReference(),data_ingestion.getId(),str(e)))