Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Empty records in Table

Greetings,

 

I have been going round and round, using solutions from the forum.

The code runs, but returns a column with empty tables. 

 

// REST to Table
let
    JSONtoTable = let
    cfaURL = myurl,
    cfatoken = mytoken,
      
    SourceContent = Json.Document(Web.Contents(cfaURL & Text.From(cfatoken))),
    //SourceContent = Json.Document(Web.Contents(cfaURL & cfatoken)),
    data = SourceContent[fields],
    #"Converted to Table" = Table.FromList(data, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
    #"Expanded Column1" = Table.ExpandRecordColumn(#"Converted to Table", "Column1", {"objectid", "cfa_id", "farm_holding_name", "land_owner", "tenant_leasehold_occupier", "globalid", "Shape__Area", "Shape__Length", "geometryField"})
in
    #"Expanded Column1"
in
    JSONtoTable

 

The output:

Table.png

 

I would really appreciate any assistance to resolve this.

2 REPLIES 2
PhilipTreacy
Super User
Super User

Hi @Anonymous 

Have you tried entering the url/token into your browser to see what is returned?

Phil


If I answered your question please mark my post as the solution.
If my answer helped solve your problem, give it a kudos by clicking on the Thumbs Up.



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


AlB
Community Champion
Community Champion

Hi @Anonymous 

Have you got example values for  myurl, mytoken ? So that we can run  a test on something real.

 

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

 

SU18_powerbi_badge

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.