Skip to main content
Question

Attribute Remover does not work with User Parameter


Hey, i use an Attribute Remover to get rid of Attributes i dont need. Although, when i use a User Parameter to declare what Attributes to remove it doesnt work. If i preselect them in the Parameter Editor of the Transformer it does. Any ideas?

9 replies

pratap
Contributor
Forum|alt.badge.img+11
  • Contributor
  • January 23, 2018

Hi,

Have you maintained the same case as attribute is present?

I mean parameter should be defined as per the case sensitive i.e. "attributename" or "Attributename"


takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • January 23, 2018

Hi @andi_kraus, probably you encountered this situation.

  1. Create a user parameter linked to the Attributes to Remove parameter in the AttributeRemover without default setting.
  2. Select some attributes through the user parameter, but the attributes are still exposed on the Canvas.

However, the user parameter setting works fine. In the example above, the attributes "a", "b", and "c" will be removed definitely at runtime, even though the attribute names are still shown on the Canvas.

I think it's a limitation of the current Workbench that the setting of a user parameter linked to a transformer parameter won't be reflected to the user interface of the transformer.


pratap
Contributor
Forum|alt.badge.img+11
  • Contributor
  • January 24, 2018

Hi @takashi,

Could you let me know which version of FME you have tested. When I checked in FME 2017.0.1.0 Build 17288, it is deleting the attribute when I pass one attribute but if I pass more than 1 then it is not deleting...

I have attached workbench which I tested. I received both Step-1 and Step-2 results are same

none2none.fmw

 

Pratap


takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • January 24, 2018
pratap wrote:

Hi @takashi,

Could you let me know which version of FME you have tested. When I checked in FME 2017.0.1.0 Build 17288, it is deleting the attribute when I pass one attribute but if I pass more than 1 then it is not deleting...

I have attached workbench which I tested. I received both Step-1 and Step-2 results are same

none2none.fmw

 

Pratap

I checked it with FME 2017.1.2.0. However, the version of FME is not a relevant issue here. You will have to create the user parameter linked to the "Attributes to Remove" parameter from the menu button on the transformer parameter.

 

 

 


pratap
Contributor
Forum|alt.badge.img+11
  • Contributor
  • January 24, 2018
takashi wrote:
I checked it with FME 2017.1.2.0. However, the version of FME is not a relevant issue here. You will have to create the user parameter linked to the "Attributes to Remove" parameter from the menu button on the transformer parameter.

 

 

 

Fine @takashi, but this option is same is as select attributes.

 

I don't understand why I have to create parameter only by this approach instead of selecting Add Parameter in navigator panel.

 

Anyhow I came to know new constraint of attribute remover here.

 

 

Thank you

 

 


takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • January 24, 2018
takashi wrote:
I checked it with FME 2017.1.2.0. However, the version of FME is not a relevant issue here. You will have to create the user parameter linked to the "Attributes to Remove" parameter from the menu button on the transformer parameter.

 

 

 

I think the parameter types that we can choose in a user parameter definition on the Navigator window do not cover all possible types for transformer parameters. If you created a user parameter in the Navigator window and linked it to a transformer parameter, some might work fine but some might not work like the "Attributes to Remove" parameter. Therefore, it is recommended to create a user parameter from an existing transformer parameter, if the user parameter should be linked to the transformer parameter.

 

It's a basic manner described in the Workbench Help (menu button on the transformer parameters dialog or right click on the parameter node under the transformer node shown in the Navigator).

 

Creating and Modifying User Parameters

 

 


pratap
Contributor
Forum|alt.badge.img+11
  • Contributor
  • January 24, 2018
takashi wrote:
I think the parameter types that we can choose in a user parameter definition on the Navigator window do not cover all possible types for transformer parameters. If you created a user parameter in the Navigator window and linked it to a transformer parameter, some might work fine but some might not work like the "Attributes to Remove" parameter. Therefore, it is recommended to create a user parameter from an existing transformer parameter, if the user parameter should be linked to the transformer parameter.

 

It's a basic manner described in the Workbench Help (menu button on the transformer parameters dialog or right click on the parameter node under the transformer node shown in the Navigator).

 

Creating and Modifying User Parameters

 

 

The purpose is to provide input to transformer by passing value A,B or E,C,A. Method can be either by selection of attributes or manual entry should be same.

 

 


  • Author
  • January 24, 2018
takashi wrote:

Hi @andi_kraus, probably you encountered this situation.

  1. Create a user parameter linked to the Attributes to Remove parameter in the AttributeRemover without default setting.
  2. Select some attributes through the user parameter, but the attributes are still exposed on the Canvas.

However, the user parameter setting works fine. In the example above, the attributes "a", "b", and "c" will be removed definitely at runtime, even though the attribute names are still shown on the Canvas.

I think it's a limitation of the current Workbench that the setting of a user parameter linked to a transformer parameter won't be reflected to the user interface of the transformer.

hey @takashi, this is exactly what is happening. Does this affect the performance in any way, since the attributes are not actually deleted from the schema?

takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • January 24, 2018
takashi wrote:

Hi @andi_kraus, probably you encountered this situation.

  1. Create a user parameter linked to the Attributes to Remove parameter in the AttributeRemover without default setting.
  2. Select some attributes through the user parameter, but the attributes are still exposed on the Canvas.

However, the user parameter setting works fine. In the example above, the attributes "a", "b", and "c" will be removed definitely at runtime, even though the attribute names are still shown on the Canvas.

I think it's a limitation of the current Workbench that the setting of a user parameter linked to a transformer parameter won't be reflected to the user interface of the transformer.

It's just an issue on the user interface of Workbench while creating the workspace. I don't think it affects the performance of FME engine at runtime, whether the missing attributes are exposed or not on the Canvas.

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings