OK, first let's check if dynamic is really necessary.
Say you have multiple feature classes, Class1 (Attributes A,B,C) and Class2 (Attributes C,D,E) and you wish to get an output such as NewClass (Attributes A,B,C,D,E) - i.e. all of the attributes from the source classes are added.
Now, if you know what those source attributes are in advance (you know that they will always be A,B,C,D,E) then you don't need to have a dynamic workspace. You can just use Manual or Automatic. That would be fine.
It's only when you have Class1 (Attributes ?, ?, ?) and Class2 (Attributes ?,?,?) that you need to have dynamic, and it's only when these classes need merging that you would need this technique (if the output were Class1, Class2, etc the same as the input, then you could use dynamic but you don't need to use this list/merge technique)
Anyway, if you just want to get a certain attribute (say Attribute in the output, then even in a dynamic translation you can just add that to the Attribute Definition tab in the writer feature type. It will get added to all classes that you write. You don't necessarily need to add it to the schema through a list.
Also, if you want to remove certain attributes (say Attributes R,S,T) then just manually enter them into the Attributes to Remove parameter on the writer feature type. Then they will be removed from all classes that you write.
I hope that helps. If you can provide a copy of your workspace - a screenshot probably won't be enough in this case - then it would help to diagnose if something is not set up correctly. But you would need to be clear about what exactly is failing in the translation (if there is an error or warning in the log, or just incorrect output).
OK, first let's check if dynamic is really necessary.
Say you have multiple feature classes, Class1 (Attributes A,B,C) and Class2 (Attributes C,D,E) and you wish to get an output such as NewClass (Attributes A,B,C,D,E) - i.e. all of the attributes from the source classes are added.
Now, if you know what those source attributes are in advance (you know that they will always be A,B,C,D,E) then you don't need to have a dynamic workspace. You can just use Manual or Automatic. That would be fine.
It's only when you have Class1 (Attributes ?, ?, ?) and Class2 (Attributes ?,?,?) that you need to have dynamic, and it's only when these classes need merging that you would need this technique (if the output were Class1, Class2, etc the same as the input, then you could use dynamic but you don't need to use this list/merge technique)
Anyway, if you just want to get a certain attribute (say Attribute in the output, then even in a dynamic translation you can just add that to the Attribute Definition tab in the writer feature type. It will get added to all classes that you write. You don't necessarily need to add it to the schema through a list.
Also, if you want to remove certain attributes (say Attributes R,S,T) then just manually enter them into the Attributes to Remove parameter on the writer feature type. Then they will be removed from all classes that you write.
I hope that helps. If you can provide a copy of your workspace - a screenshot probably won't be enough in this case - then it would help to diagnose if something is not set up correctly. But you would need to be clear about what exactly is failing in the translation (if there is an error or warning in the log, or just incorrect output).
@Mark2AtSafe
Thanks, its not the first two parts, its third part that I am trying to achieve. Can i send you my workspace so you can guide me what i am missing. Can you please message me your contact on vdevi09@gmail.com please.
Hi @vdevi09,
- You can apply Dataset Fanout to separate destination folder according to an attribute value. See here to learn more: Setting Dataset Fanout.
- Create multiple schema features for each destination feature type, and merge appropriate schema to data feature using the destination feature type name as Join On.
@takashi, I am doind the folder based fanout, I am able to get the fanout going @value(attributeA) with outputs of featureclassA &B;
and its outputting allthe fields and I wish to have selected field in the output.