Skip to main content
Solved

SQLite Database - Data Extraction from HTML

  • April 5, 2023
  • 8 replies
  • 104 views

abnan0001
Supporter
Forum|alt.badge.img+9

I have a Data collected using Survey123 but sending data has issue and it was stored in android device only , so the format will be in sqlite database.. I want to extract the data from SQLite database and im able to read and see the data but not able take it into XML Fragmentor ..May be im doing some wrong..

 

I have attached screenshot and workspace ..

Need Guidance and advice to fix this

 

Thank You

Need expert advice

BDCError 

Data

Best answer by redgeographics

I have used json formatter and also JSON fragmenter..

It doesn't expose the attribute of the body message...It gives missing ..Kindly guide

Thank You

JSONFragmentor

That's probably because you need to dig deeper in the JSON structure. Using [*][*] as the JSON query and then followed by a JSONFragmenter gives me more results.

 

You'll also need to expose any attributes that are created by the JSONFragmenter (it has an Attributes to Expose parameter) as FME won't do that automatically

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.

8 replies

redgeographics
Celebrity
Forum|alt.badge.img+62

That's not XML, but JSON, so try the JSONFragmenter (so this probably also means the HTMLToXHTMLConverter is not necessary either)


abnan0001
Supporter
Forum|alt.badge.img+9
  • Author
  • Supporter
  • April 5, 2023

That's not XML, but JSON, so try the JSONFragmenter (so this probably also means the HTMLToXHTMLConverter is not necessary either)

It gives me error as " No results" when used Json fragmentor

 

Kindly Guide me , How to accomplish

Thank You


abnan0001
Supporter
Forum|alt.badge.img+9
  • Author
  • Supporter
  • April 6, 2023

I have used json formatter and also JSON fragmenter..

It doesn't expose the attribute of the body message...It gives missing ..Kindly guide

Thank You

JSONFragmentor


redgeographics
Celebrity
Forum|alt.badge.img+62
  • Celebrity
  • Best Answer
  • April 6, 2023

I have used json formatter and also JSON fragmenter..

It doesn't expose the attribute of the body message...It gives missing ..Kindly guide

Thank You

JSONFragmentor

That's probably because you need to dig deeper in the JSON structure. Using [*][*] as the JSON query and then followed by a JSONFragmenter gives me more results.

 

You'll also need to expose any attributes that are created by the JSONFragmenter (it has an Attributes to Expose parameter) as FME won't do that automatically


ebygomm
Influencer
Forum|alt.badge.img+46
  • Influencer
  • April 6, 2023

I have used json formatter and also JSON fragmenter..

It doesn't expose the attribute of the body message...It gives missing ..Kindly guide 

Thank You

JSONFragmentor

As @redgeographics says, you'll need to change the JSON query, e.g. for the bird data

json["BDC_General_Baseline_Survey_V8"]["AddBird"][*]

Then expose the attributes

image


abnan0001
Supporter
Forum|alt.badge.img+9
  • Author
  • Supporter
  • April 6, 2023

Thank You for the Guidance..

I was able to expose the attributes for 2 reading which i require for Birds and Mammals , Florainfo and otherinfo from JSON Body whereas for Reptile and other associated with it are not showing and its being rejected..

I have added separtely JSON fragmentor to expose..

 

Need your Guidance , I have attached excel and red colour details for reptiles , I want to expose from JSON Body

 

Kindly Guide

Attached Workspace and Excel Sheet for more details

 

Thank You


abnan0001
Supporter
Forum|alt.badge.img+9
  • Author
  • Supporter
  • April 6, 2023

Thank You for the Guidance..

I was able to expose the attributes for 2 reading which i require for Birds and Mammals , Florainfo and otherinfo from JSON Body whereas for Reptile and other associated with it are not showing and its being rejected..

I have added separtely JSON fragmentor to expose..

 

Need your Guidance , I have attached excel and red colour details for reptiles , I want to expose from JSON Body

 

Kindly Guide

Attached Workspace and Excel Sheet for more details

 

Thank You

Excel Attachment for the required information(Copies from JSON Body) Highlighted in Red to be exposed

any suggestion


abnan0001
Supporter
Forum|alt.badge.img+9
  • Author
  • Supporter
  • April 7, 2023

Thank You so much ..

 

I was able to Extract the information