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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
arturo12456
Regular Visitor

One or more entities references a dynamic data source.

Hello! I am making a map which I need to export, I have the zipcodes but I need to find the longitude and latitude, I am using the ArcGis API but when I create the function and I am going to upload the data to the datamart I get the error ErrorMessageOne or more entities references a dynamic data source.

I would appreciate it if you could help me 😞 I'm new to this kind of thing



(location as text) => let Source = Json.Document(Web.Contents("https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/findAddressCandidates?SingleLine..."&location&" USA&forStorage=false&outFields=addr_type&f=pjson&token=XX")), #"Converted to table" = Table.FromRecords({Source}), #"Expanded spatialReference" = Table.ExpandRecordColumn(#"Converted to table", "spatialReference", {"wkid", "latestWkid"}, {"spatialReference.wkid", "spatialReference.latestWkid"}), #"Expanded candidates" = Table.ExpandListColumn(#"Expanded spatialReference", "candidates"), #"Expanded candidates1" = Table.ExpandRecordColumn(#"Expanded candidates", "candidates", {"address", "location", "score", "attributes", "extent"}, {"candidates.address", "candidates.location", "candidates.score", "candidates.attributes", "candidates.extent"}), #"Expanded candidates.location" = Table.ExpandRecordColumn(#"Expanded candidates1", "candidates.location", {"x", "y"}, {"candidates.location.x", "candidates.location.y"}), #"Expanded candidates.attributes" = Table.ExpandRecordColumn(#"Expanded candidates.location", "candidates.attributes", {"addr_type"}, {"candidates.attributes.addr_type"}), #"Expanded candidates.extent" = Table.ExpandRecordColumn(#"Expanded candidates.attributes", "candidates.extent", {"xmin", "ymin", "xmax", "ymax"}, {"candidates.extent.xmin", "candidates.extent.ymin", "candidates.extent.xmax", "candidates.extent.ymax"}), #"Changed column type" = Table.TransformColumnTypes(#"Expanded candidates.extent", {{"spatialReference.wkid", Int64.Type}, {"spatialReference.latestWkid", Int64.Type}, {"candidates.address", type text}, {"candidates.location.x", type number}, {"candidates.location.y", type number}, {"candidates.score", Int64.Type}, {"candidates.attributes.addr_type", type text}, {"candidates.extent.xmin", type number}, {"candidates.extent.ymin", type number}, {"candidates.extent.xmax", type number}, {"candidates.extent.ymax", type number}}), #"Removed columns" = Table.RemoveColumns(#"Changed column type", {"candidates.score", "candidates.attributes.addr_type", "candidates.extent.xmin", "candidates.extent.ymin", "candidates.extent.xmax", "candidates.extent.ymax", "candidates.address", "spatialReference.latestWkid", "spatialReference.wkid"}) in #"Removed columns"

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Please refer to the documentation. Use RelativePath and Query.

 

Web.Contents - PowerQuery M | Microsoft Learn

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

Please refer to the documentation. Use RelativePath and Query.

 

Web.Contents - PowerQuery M | Microsoft Learn

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.