Question

Prevent MongoReader from skipping attribute

  • 17 August 2018
  • 2 replies
  • 2 views

Badge

As beginner with FME, I try to read documents from MongoDB.

As far I understand, as a defaut behavior, if an attribute is not detected in the first read documents, its reading will be skipped. Is there any way to avoid this behavior?

Many thanks!


2 replies

Badge

Have you tried setting the parameter "Read Original JSON Document" to "Yes"?

This will populate the 

mongodb_json

attribute, which will have all of the information contained in the original document. You can split this into individual attributes with a JSONFlattener transformer. 

Badge

Dear @jakemolnar,

Many thanks for your answer. Yes, this approach is the workaround implemented. Is there any way to get attributes directly read by MongoReader?

Reply