Commit a6e7695e authored by Roque Porchetto's avatar Roque Porchetto

erp5_wendelin_telecom_ingestion: fixing minor bug in Data Set creation

parent aae9fb7a
......@@ -110,11 +110,15 @@ try:
version = "001"
)
data_set.validate()
else:
log("Data Set found for dataset reference: " + dataset_reference)
except:
data_set = portal.data_set_module.get(dataset_reference)
log("Data Set found for dataset reference: " + data_set.getReference())
else:
log("Data Set found for dataset reference: " + data_set.getReference())
log("Data Set found for dataset reference: " + dataset_reference)
if data_set.getReference().endswith("_invalid"):
data_set.setReference(data_set.getReference().replace("_invalid", ""))
if data_set.getValidationState() == "invalidated":
data_set.validate()
input_line.setDefaultAggregateValue(data_set)
data_ingestion.plan()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment