Skip to main content
Question

Prevent MongoReader from skipping attribute

  • August 17, 2018
  • 2 replies
  • 14 views

Forum|alt.badge.img

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!

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

jakemolnar
Forum|alt.badge.img
  • August 17, 2018

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. 


Forum|alt.badge.img
  • Author
  • August 21, 2018

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?