Scheduled Data Import removes attachment from data source - is this normal?

thomaskennedy
Tera Guru

My Scheduled Data Import is set to run Once. Its data source is of type Attachment. When I execute the data source it runs fine but it deletes the attachment. Is this normal?

1 ACCEPTED SOLUTION

Shivalika
Mega Sage

Hello @thomaskennedy 

 

Yes, this should be normal to avoid any duplicate imports. 

 

So the file is actually moved from data source to import set. 

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway,

 

Regards,

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY

View solution in original post

4 REPLIES 4

Shivalika
Mega Sage

Hello @thomaskennedy 

 

Yes, this should be normal to avoid any duplicate imports. 

 

So the file is actually moved from data source to import set. 

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway,

 

Regards,

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY

Shivalika,

 

I've set up my scheduled import and it seems to be working fine. The post-import scripts all run to completion and there is no sign of trouble in the system log. But I find that it is no longer deleting the attachment from the data source. That seems odd. Have you ever seen this behavior, and can you suggest an explanation?

 

The only thing I added was a pre-import script to copy the attachment to a backup location OR bring the attachment back from the backup location if the data source has none. I'm going to take that out temporarily, and turn off my post-import scripts to see if it starts deleting my attachment as expected.

thomaskennedy
Tera Guru

Thank you. I have a request for a "Run again" option, for example if the user has updated the mappings used in the transform scripts, so they can get updated results without waiting for a new input file. I will consider how to do this.

Hello @thomaskennedy 

 

In the import set itself you should be getting Reprocess option in the related links. Please go to the import set and click on it. It should start reprocessing it. 

 

Kindly mark my answer as helpful here if it helped you. 

 

Regards,

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY