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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
stiggrr87
Frequent Visitor

Dataflow with web error

Can I get this code working in dataflow???

 

let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("PY1NDoIwEIWv0syaUNi4YGeiOzXs28Y0MMYaoNAOJIZwG2/ixaTyM4uZ5HvvzRMCnkStzzjXTVljGXvSFCNy3Ro+pByJB8LzY5IcQEUCRsYkdD26t4SMCTbPyP4jobAlBirh9v0Y0i8tIdpEjxUWZGwTHGsk8IepCN0SM4T1HgnioKse/d604VOa3s/X/CJhY2o507pUFGwOfWsbj3vj3GZdrWlpK/wQHkwTKPUD", BinaryEncoding.Base64), Compression.Deflate))),
Link = Source{0}[Column1],
Query_text_raw = Table.Skip(Source,1),
#"Replaced Value" = Table.ReplaceValue(Query_text_raw," ","",Replacer.ReplaceText,{"Column1"}),
Query = Csv.Document(Web.Contents(Link,[Headers = [#"Content-Type"="application/json"], Content = Text.ToBinary(#"Replaced Value"{0}[Column1])]))
in
Query

 

I get error that "One or more entities references a dynamic data source... "

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi , @stiggrr87 

You can check  these related thread:

Bug-Can-t-save-dataflow-Same-queries-work-in-Power-BI-Desktop 

Dataflow-Error-on-save-dynamic-data-source 

Issues-with-using-a-parameter-in-web-content-url-in-dataflow 

 

In addition, you can open a support ticket to let engineers look into the issue on your side.

 

Best Regards,
Community Support Team _ Eason

View solution in original post

2 REPLIES 2
stiggrr87
Frequent Visitor

Hi!
I managed to figure out that I need to use parameters in Web.Contents() instead hard coded input. Dataflow is working now and refresh can be scheduled 😉
Thanks for the good hints!

v-easonf-msft
Community Support
Community Support

Hi , @stiggrr87 

You can check  these related thread:

Bug-Can-t-save-dataflow-Same-queries-work-in-Power-BI-Desktop 

Dataflow-Error-on-save-dynamic-data-source 

Issues-with-using-a-parameter-in-web-content-url-in-dataflow 

 

In addition, you can open a support ticket to let engineers look into the issue on your side.

 

Best Regards,
Community Support Team _ Eason

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors