Export fails with can't find part of path [2019.3.5]

Creating an Export using Octopus Manager fails with the error ‘cannot find part of path’. Appears to be some issue with either spaces or maybe path length.

"C:\Program Files\Octopus Deploy\Octopus\Octopus.Migrator.exe" export --instance "OctopusServer" --directory "C:\OctopusBackups\20191024 Octopus 2019.3.5\Export" --password "XXXXXXX" --include-tasklogs

Hi @Aaron_R,

Just noticed that I hadn’t responded to this ticket, mainly as I saw in another that it had already been resolved.

Normally we find in this case that it’s the inline scripts causing us filepath length problems, as by default we write them out to disk. There is a --inline-scripts=leaveinline option when using Octopus.Migrator which then won’t extract the scripts separately, while still containing them as part of the export.

Hopefully that helps if this problem occurs again in future,

Regards,
Alex