@reginechua1 can you include an image of your FeatureWriter parameters to illustrate the issue? You should always have the User Attributes tab on the FeatureWriter
@Mark Stoakes Yes, here is my FeatureWriter. As you can see, there is no 'user attribute' tab.
@Mark Stoakes Yes, here is my FeatureWriter. As you can see, there is no 'user attribute' tab.
A couple of the pre-set user attributes now appear under the format tab.
This is the setup that works for me. Set filecopy_dest_dataset under dataset and expose filecopy_source_dataset and filecopy_dest_filename.
Other user attributes still appear if you choose to pass features through the writer
@Mark Stoakes Yes, here is my FeatureWriter. As you can see, there is no 'user attribute' tab.
@reginechua1 For the FileCopy writer that is correct. There are no User Attributes on the FileCopy writer because it doesn't actually write anything - it just moves files around
@Mark Stoakes I understand that but in FME 2020, there was a User Attributes Tab for the FeatureWriter when you indicated 'FileCopy'. The problem is that I have an existing workspace that has parameters in the User Attributes Tab (see the screenshot below) and that disappears in FME 2021 so it messes up with the whole workspace.
@ebygomm thank you, that is very helpful. Thing is, I have tried to expose filecopy_source_dataset and filecopy_dest_filename but it keeps unticking itself for me. What transformer do you have before the featurewriter?
@Mark Stoakes I understand that but in FME 2020, there was a User Attributes Tab for the FeatureWriter when you indicated 'FileCopy'. The problem is that I have an existing workspace that has parameters in the User Attributes Tab (see the screenshot below) and that disappears in FME 2021 so it messes up with the whole workspace.
@ebygomm thank you, that is very helpful. Thing is, I have tried to expose filecopy_source_dataset and filecopy_dest_filename but it keeps unticking itself for me. What transformer do you have before the featurewriter?
Just an attribute creator which creates filecopy_source_dataset etc.
@reginechua1 I have the same problem with FME 2021. The point is not that FileCopy doesn't write any attributes. The point is that you could set the attribute values in the User Attributes tab as you demonstrate in your screenshot.
Sure I can add an AttributeCreator. But that creates a risk of mis-typing the attribute names. OK you can go back and correct that, but it's still an irritation.
The change has also created an inconsistency in that you specify source dataset and destination filename as attributes prior to the FeatureWriter, but the destination folder is specified within the FeatureWriter. Also, it works really badly. I tried putting the full path in the Dataset parameter, but it then creates a subfolder called "filecopy" under that and writes the files there. I then realised you can specify a folder in the Subfolder Name parameter of the Parameters tab. So I tried putting the path there, but that doesn't work either. It seemed that having already created a full path in an attribute, I then had to go back and split it. I've found and tried setting the parameter for Feature Type Names as Subfolders to No, but it's still not working. Very annoyed at an unnecessary change which has caused me so much problems.
Update: I think I've now got it working, but it shows what sort of disruption such changes can cause. Was there really some huge problem with users trying to write extra attributes there, or some major processing efficiency gain that meant Safe had to take it out?
@reginechua1 I have the same problem with FME 2021. The point is not that FileCopy doesn't write any attributes. The point is that you could set the attribute values in the User Attributes tab as you demonstrate in your screenshot.
Sure I can add an AttributeCreator. But that creates a risk of mis-typing the attribute names. OK you can go back and correct that, but it's still an irritation.
The change has also created an inconsistency in that you specify source dataset and destination filename as attributes prior to the FeatureWriter, but the destination folder is specified within the FeatureWriter. Also, it works really badly. I tried putting the full path in the Dataset parameter, but it then creates a subfolder called "filecopy" under that and writes the files there. I then realised you can specify a folder in the Subfolder Name parameter of the Parameters tab. So I tried putting the path there, but that doesn't work either. It seemed that having already created a full path in an attribute, I then had to go back and split it. I've found and tried setting the parameter for Feature Type Names as Subfolders to No, but it's still not working. Very annoyed at an unnecessary change which has caused me so much problems.
Update: I think I've now got it working, but it shows what sort of disruption such changes can cause. Was there really some huge problem with users trying to write extra attributes there, or some major processing efficiency gain that meant Safe had to take it out?
Another consequence of this change may be that additional attributes exposed via the Summary port have no values. This also causes problems for things that happen after the FeatureWriter.