cancel
Showing results for 
Search instead for 
Did you mean: 
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 Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors
Top Kudoed Authors