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