context.logEntry("Data Analyisis created for Data Ingestion %s (ID: %s)"%(str(data_ingestion.getReference()),data_analysis.getId()))
context.logEntry("Data Analyisis created for Data Ingestion %s (ID: %s)"%(str(data_ingestion.getReference()),data_ingestion.getId()))
except:
except:
context.logEntry("[ERROR] Error creating Data Analysis for Data Ingestion '%s' (ID: %s). Script returned"%(str(data_ingestion.getReference()),data_analysis.getId()))
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
return# Data Analysis was already created
# create input and output lines
# create input and output lines
log("creating input and output lines")
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)))