Not all attachments are uploadedo F360M

Issue

When using the Sample.TransferItemBOMs job not all attachments are uploaded to F360M but the job does not show an error

Cause

Currently under investigation

Solution

Replace the following code

$uploadJobs += {
            param ($flcConnection, [Hashtable]$parameters)
            $fileName = Split-Path $parameters.LocalPath -leaf
            Add-FLCAttachment -InputObject $parameters.FlcItem -Path $parameters.LocalPath -Title $fileName -Description $parameters.Description
        } | InvokeAsync -Parameters $paramUpload

        $uploadedFiles += $file._FullPath
    }
}
WaitAll -Jobs $uploadJobs

With:

        $fileName = Split-Path $paramUpload.LocalPath -leaf
Add-FLCAttachment -InputObject $paramUpload.FlcItem -Path $paramUpload.LocalPath -Title $fileName -Description $paramUpload.Description
$uploadedFiles += $file._FullPath
}
}