+ Reply to Thread
Results 1 to 5 of 5

How to check if power query is valid

  1. #1
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    How to check if power query is valid

    Hi Guys,

    Screenshot_124.png

    i want to check if data soure in Power Query has error via VBA.
    How ?

    Let imagine that i am loading data from server like web query.
    If something is wrong on server Excel will create queary with error.

    And I would like to check if query has error or not in order to avoid inputting it to listobject.

    Code to add query:

    Please Login or Register  to view this content.
    I added source table in seperate table to reproduce error.
    You can just run code to create query and you will see datasourceError in PQ. How to detect it?

    Please help,
    Jacek
    Attached Files Attached Files
    Last edited by jaryszek; 02-16-2021 at 04:40 AM.

  2. #2
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: How to check if power query is valid

    Hi,

    anyone?

    Jacek

  3. #3
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: How to check if power query is valid

    anyone has idea?

    Best,
    Jacek

  4. #4
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: How to check if power query is valid

    Hello,

    cross posted here:

    https://www.mrexcel.com/board/thread...m-vba.1162285/

    Best,
    Jacek

  5. #5
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: How to check if power query is valid

    Hello,

    up,

    Jacek

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] 2 fields checker- Request for alternative option in Power Query or Power Pivot
    By Shareez Saleem in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-15-2020, 08:36 AM
  2. Replies: 10
    Last Post: 06-25-2020, 12:19 AM
  3. [SOLVED] Power Query - excel formula translation into Power Query
    By afgi in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 02-19-2020, 03:38 AM
  4. Replies: 4
    Last Post: 02-17-2020, 06:03 AM
  5. [SOLVED] How to check if one query from Power Query was refreshed
    By jaryszek in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-10-2019, 11:10 AM
  6. Power Query: Check if Field contains text from list
    By learning new things in forum Excel General
    Replies: 0
    Last Post: 11-07-2018, 03:33 PM
  7. Sub-Forum for Excel Power Tools (Power Query, Power Pivot & Power BI)
    By chullan88 in forum Suggestions for Improvement
    Replies: 10
    Last Post: 06-28-2018, 02:25 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1