error_list.append(state_change['object'].Base_translateString("Error: Project contains active measurement position(s). It can not be invalidated, suspended or deleted."))
raiseValidationFailed,error_list
fordata_analysisindata_analysis_set:
ifdata_analysis.getSimulationState()!="started":
ifdata_analysis.getSimulationState()!="deleted":
data_analysis.delete()
else:
error_list.append(state_change['object'].Base_translateString("Error: Project contains active measurement position(s). It can not be invalidated, suspended or deleted."))