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
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
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