Skip to main content

I have a requirment to delete a file if the workspace has failed and I need to revert the output file which I have written. I used python caller to remove by passing a file path as parameter, but the file is not removed from the directory, however the translation is showing as successful with 0 features written.

Hi @rajkumarf3

A quick look at the python caller and your filepath variable does not refer to any attribute

file_path = feature.getAttribute('')

This needs to be 

file_path = feature.getAttribute('file_path')

Just checking that you are running this with a workbench runner as remember if a workspace fails then nothing else get run.

 

Cheers Dave


Reply