Any way to fix "Sequence contains no elements"?

#1

I was trying to reinstall on my 1TB Hard Disk connected using the internals of an Iomega USB HDD drive, and it comes up in Windows as “RAID” or something. It works fine and nothing is strange about it, however when running WoA Deployer 2.1.1:

Sequence contains no elements

It comes up alone just like this, and is super annoying.

2019-03-19 21:09:48.944 -04:00 [Verbose] We are about to run Etcher: "Core\Tools\Etcher-Cli\x86\Etcher" "-d \\.\PHYSICALDRIVE4 \"Core\gpt.zip\" --yes --no-unmount"
2019-03-19 21:09:48.947 -04:00 [Verbose] Starting process { FileName: "Core\Tools\Etcher-Cli\x86\Etcher", Arguments: "-d \\.\PHYSICALDRIVE4 \"Core\gpt.zip\" --yes --no-unmount" }
2019-03-19 21:09:49.255 -04:00 [Verbose] Process started sucessfully
2019-03-19 21:10:11.546 -04:00 [Information] Validating flashed image...
2019-03-19 21:10:28.149 -04:00 [Information] GPT image flashed
2019-03-19 21:10:28.152 -04:00 [Verbose] Creating Windows partition...
2019-03-19 21:10:28.279 -04:00 [Error] An error has occurred
System.InvalidOperationException: Sequence contains no elements
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
   at Deployer.NetFx.LowLevelApi.<CreatePartition>d__14.MoveNext() in D:\a\1\s\Source\DeployerPlatform\Deployer.NetFx\LowLevelApi.cs:line 240
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Deployer.Raspberry.RaspberryDisklayoutPreparer.<CreateWindowsPartition>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Deployer.Raspberry.RaspberryDisklayoutPreparer.<Prepare>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Deployer.Tasks.DeployWindows.<Execute>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Deployer.Execution.ScriptRunner.<Run>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Deployer.Execution.ScriptRunner.<Run>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Deployer.Raspberry.WoaDeployer.<Deploy>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Deployer.Raspberry.Gui.ViewModels.DeploymentViewModel.<Deploy>d__20.MoveNext() in D:\a\1\s\Source\Deployer.Raspberry.Gui\ViewModels\DeploymentViewModel.cs:line 82
2019-03-19 21:10:28.367 -04:00 [Information] Error: Sequence contains no elements

EDIT 1: it only happens using my Iomega adapter, strange.

#2

I wonder if WOR would work, it uses different utilities to flash the image

#3

I ended up using a different adapter, IMAGEX is the one WoR uses i think

#4

WoR supports both Windows Imaging API (also used by DISM) and wimlib.
dd for windows is used when flashing the GPT image.