'""""' + '""" """'.join(raster_files) + '""""'
Hi@bparker, probably you will have to create the paths string like this.
"""""path1"" ""path2"" ""path3"""""
That is, the value of SourceDataset should be:
'"""""' + '"" ""'.join(raster_files) + '"""""'