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
ashleylinkewich
Advocate II
Advocate II

PBI Running Batch File When I Edit Query

Hi all,

 

I have a CSV that is an output from a microsoft batch file. There is no query between them, the batch file simply outputs the CSV.

 

When I connect to this in PBI desktop, it will initially give me no problems and refreshes fine, like any other CSV would. However sometimes, once I've made edits to the query and try to apply them, PBI attempts to run the batch file and I get an authorisation error. 

 

Has anybody ever come across this or understand why PBI is running a batch file it, theoretically, should have no connection to? Or how to change a setting so it only reads the CSV file?

 

Thanks, 

5 REPLIES 5
parry2k
Super User
Super User

@ashleylinkewich sorry but your question is not at all clear. Read this post to get your answer quickly.

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Hi @parry2k, thanks for your response.

 

My question is: "How do I query the data so it doesn't run the windows batch file?" 

 

The structure of my flow is this: Windows Batch File ---> Output CSV <---- PBI Reading the CSV 

 

Currently, despite having no connection between the CSV and windows batch file, it still runs and gives me an authentication error, whereas I would expect it to query the CSV like any other. 

 

Does this clear it up? 

 

 

@ashleylinkewich not at all, where you get the authentication error, Power BI has nothing to do with Batch file until I'm missing something here.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

@parry2k  This is the error I get: 

Error.PNG

 I agree, PBI should have nothing to do with the file, and it acts normally when I first establish the connection to the output CSV, but as soon as I modify the query and apply the changes, I get this error. 

 

 

Hi , @ashleylinkewich 

Is it related to the modifications you made to the query?

If you still have this issue  you can create a support ticket in Power BI Support to get further help.

 

Best Regards,Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

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.