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
Cmcmahan
Resident Rockstar
Resident Rockstar

Scheduled Refresh Python - ADO.NET Access Is Denied

I'm trying to connect to an API that asynchronously generates a data file. Since the first API call only kicks off the file generation,  I've managed to do it with python, and it works locally. I've set up (and reinstalled, etc) a gateway in personal mode.  According to the gateway program, everything is fine. However, when I try to set up scheduled refresh, I get the following error message:

Failed to update data source credentials: ADO.NET: A problem occurred while processing your Python script. Here are the technical details: Access is denied

 

I can't tell what access is getting denied or how to approve it, even with full admin access to the machine.  I can use any of the advice on either of the two topics:

 

  • How to fix or diagnose the Access is denied error.  Googling constantly leads back to an old issue with a specific gateway version that was resolved a few years ago.  
  • An M Query technique that allows me to 1. Call an API endpoint 2. Call another endpoint to check file status (in progress/failed/complete) and capture a file ID when complete 3. Call the download endpoint using new file ID. I can't figure out how to get Power BI to wait until the file is complete.
1 REPLY 1
lbendlin
Super User
Super User

For the second part you can use Chris Webb's BI Blog: Using Function.InvokeAfter() In Power Query Chris Webb's BI Blog (crossjoin.co...  for some reasonable polling interval in List.Generate.

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