Question

FeatureWriter number of features written incorrect?

  • 30 November 2017
  • 6 replies
  • 15 views

Badge +1

I'm using a FeatureWriter with its output attribute "_total_features_written". The attribute holds "_total_features_written"=1 while the log says:

Features Written

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

==============================================================================

Total Features Written 0

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Features With No Schema defined

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

NoFeaturesTester_5_Creator 1

==============================================================================

Total Features NOT Written 1

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Has anyone experienced this before? Seems like a bug. This is using FME 2017 build 17259.


6 replies

Userlevel 2
Badge +17

Hi @ekkischeffler, yes, it's a known issue, and has been discussed here.

How to count FeatureWriter transformer's output into "Feature Written Summary" of the log?

We have to wait for a relevant enhancement.

Badge +1

Hi @ekkischeffler, yes, it's a known issue, and has been discussed here.

How to count FeatureWriter transformer's output into "Feature Written Summary" of the log?

We have to wait for a relevant enhancement.

Thanks for referencing this Takashi. In my case, however, the writer did indeed write nothing while the attribute contained '1'. So, I think the attribute value is incorrect rather than the log.

 

 

Userlevel 2
Badge +17

I was able to reproduce that. I think it's also an issue that should be improved.

featurewriter-total-features-written.fmw (FME 2017.1.1.1)

Could you please check this? @daleatsafe

  • Total Features Written = 0
  • Total Features NOT Written = 1
  • _total_features_written (Summary feature) = 1 (incorrect)
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
                               Features Written
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
==============================================================================
Total Features Written                                                       0
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
                       Features With No Schema defined
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Creator                                                                      1
==============================================================================
Total Features NOT Written                                                   1
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Storing feature(s) to FME feature store file `.\mapping_log.ffs'
FeatureWriter_Summary: Feature is:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Feature Type: `FeatureWriter_Summary_LOGGED'
Attribute(string)                 : `_dataset' has value `C:\FME\tmp'
Attribute(32 bit unsigned integer): `_feature_type{0}.count' has value `1'
Attribute(string)                 : `_feature_type{0}.name' has value `Creator'
Attribute(32 bit unsigned integer): `_total_features_written' has value `1'
Attribute(string)                 : `fme_geometry' has value `fme_undefined'
Attribute(string)                 : `fme_type' has value `fme_no_geom'
Geometry Type: Unknown (0)
===========================================================================

 

Badge +1

I was able to reproduce that. I think it's also an issue that should be improved.

featurewriter-total-features-written.fmw (FME 2017.1.1.1)

Could you please check this? @daleatsafe

  • Total Features Written = 0
  • Total Features NOT Written = 1
  • _total_features_written (Summary feature) = 1 (incorrect)
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
                               Features Written
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
==============================================================================
Total Features Written                                                       0
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
                       Features With No Schema defined
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Creator                                                                      1
==============================================================================
Total Features NOT Written                                                   1
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Storing feature(s) to FME feature store file `.\mapping_log.ffs'
FeatureWriter_Summary: Feature is:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Feature Type: `FeatureWriter_Summary_LOGGED'
Attribute(string)                 : `_dataset' has value `C:\FME\tmp'
Attribute(32 bit unsigned integer): `_feature_type{0}.count' has value `1'
Attribute(string)                 : `_feature_type{0}.name' has value `Creator'
Attribute(32 bit unsigned integer): `_total_features_written' has value `1'
Attribute(string)                 : `fme_geometry' has value `fme_undefined'
Attribute(string)                 : `fme_type' has value `fme_no_geom'
Geometry Type: Unknown (0)
===========================================================================

 

Thanks for clarifying, Takashi!

 

 

Badge +1

I was able to reproduce that. I think it's also an issue that should be improved.

featurewriter-total-features-written.fmw (FME 2017.1.1.1)

Could you please check this? @daleatsafe

  • Total Features Written = 0
  • Total Features NOT Written = 1
  • _total_features_written (Summary feature) = 1 (incorrect)
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
                               Features Written
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
==============================================================================
Total Features Written                                                       0
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
                       Features With No Schema defined
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Creator                                                                      1
==============================================================================
Total Features NOT Written                                                   1
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Storing feature(s) to FME feature store file `.\mapping_log.ffs'
FeatureWriter_Summary: Feature is:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Feature Type: `FeatureWriter_Summary_LOGGED'
Attribute(string)                 : `_dataset' has value `C:\FME\tmp'
Attribute(32 bit unsigned integer): `_feature_type{0}.count' has value `1'
Attribute(string)                 : `_feature_type{0}.name' has value `Creator'
Attribute(32 bit unsigned integer): `_total_features_written' has value `1'
Attribute(string)                 : `fme_geometry' has value `fme_undefined'
Attribute(string)                 : `fme_type' has value `fme_no_geom'
Geometry Type: Unknown (0)
===========================================================================

 

Hi @takashi and @ekkischeffler,

 

 

I'm sorry that you have run into this issue. This is an issue that is currently being investigated by development; I will be sure to update this thread once the fix has been released. 

 

 

Kind Regards, 

 

 

Annabelle

I was able to reproduce that. I think it's also an issue that should be improved.

featurewriter-total-features-written.fmw (FME 2017.1.1.1)

Could you please check this? @daleatsafe

  • Total Features Written = 0
  • Total Features NOT Written = 1
  • _total_features_written (Summary feature) = 1 (incorrect)
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
                               Features Written
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
==============================================================================
Total Features Written                                                       0
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
                       Features With No Schema defined
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Creator                                                                      1
==============================================================================
Total Features NOT Written                                                   1
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Storing feature(s) to FME feature store file `.\mapping_log.ffs'
FeatureWriter_Summary: Feature is:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Feature Type: `FeatureWriter_Summary_LOGGED'
Attribute(string)                 : `_dataset' has value `C:\FME\tmp'
Attribute(32 bit unsigned integer): `_feature_type{0}.count' has value `1'
Attribute(string)                 : `_feature_type{0}.name' has value `Creator'
Attribute(32 bit unsigned integer): `_total_features_written' has value `1'
Attribute(string)                 : `fme_geometry' has value `fme_undefined'
Attribute(string)                 : `fme_type' has value `fme_no_geom'
Geometry Type: Unknown (0)
===========================================================================

 

@annabelleatsafe any update on this? I'm currently working on v2019.0.2 and I'm facing the same issue in both FME Desktop and FME Server. 

Reply