Repro steps:
- Create new sequence workflow.
- Create a nested sequence inside of it (named
inner
for clarity). - In
inner
create a DataTable variable namedtestDT
. - In
inner
add a WriteLine activity:testDT.AsEnumerable().Count().ToString()
(at this point everything works) - RMB click
inner
→ selectExtract as workflow
, name new workflowinner
- In new workflow there will be a validation error ~
.AsEnumerable() is not a member of System.Data.DataTable
extractionTest.xaml (4.8 KB)
inner.xaml (4.1 KB)
On examining .xaml content, following line is “missing” from inner.xaml:
<AssemblyReference>System.Data.DataSetExtensions</AssemblyReference>
This line gets added if the compiler finds usage of anything from that .dll (namespace is still System.Data
), but only during actual writing of the code.
Since System.Data
namespace is already present, it cannot be added.
/endrepro
Similar issue I think can happen with System.IO.Compression.FileSystem.dll, as it also has a shared namespace with System.IO.Compression.dll - see this topic.