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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
texmexdragon2
Helper V
Helper V

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?

 

 

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

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

Top Solution Authors
Top Kudoed Authors