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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

JSON / Power Query experts - Need help troubleshooting dataflow error

Hello Community  -  I am hoping there is a Json /  Power Query expert out there that can help us with this.   It is baffling.  

 

This is an abbreviated version of a dataflow we have  (some data changed to protect privacy).   

 

The crazy issue we are having is that this dataflow works perfectly fine...except...if include any dates that are inclusive of June  (the 6th month).  

 

Json.Document(Web.Contents("https://bi-xxxxxxxxxyyyyyyy.com/CDataService.asmx/CQuery?Entity=SLRmaitems&Filter=RecordDate >= 07/01/2022&Properties=AmtExtCredit&Properties=AmtNetCredit", [Headers=[Authorization="Basic aW50ZWdyYXR5fZmx1ZW5jZUSVdyYXBwZXI6bFk2bVpZWlBjNw=="]]))

 

If we use the code above it works perfectly fine.   Returns a list etc.   

 

HOWEVER...if we change the month to a 06 the dataflow breaks and returns the error below.   This happens if we include any date range that includes the 06.   However, if we put any month before 06 it also works fine.    We cannot at all understand why this is happening anytime the month of June is included in the date range.    The error occurs at the first step (source).    

Any suggestions are very very welcome.   

 

texmexdragon2_0-1663898482496.png

 

 

 

3 REPLIES 3
lbendlin
Super User
Super User

- check the documentation  of your API. Your query string looks rather unusual.

- put the query in the [Query]  section of Web.Contents

- examine the returned JSON for the June query.  It says there is a period (.)  at the start of the JSON?

 

 

Anonymous
Not applicable

@lbendlin  Can you clarify "put the query in the [Query]  section of Web.Contents" ?    Not exactly sure what to do.  

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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

Top Kudoed Authors