Results 1 to 7 of 7

Thread: Error in Excel when executing a non-existing query

  1. #1
    Seeker christiane.latte's Avatar
    Join Date
    Feb 2018
    Posts
    8
    Articles
    0
    Excel Version
    2016

    Error in Excel when executing a non-existing query



    Register for a FREE account, and/
    or Log in to avoid these ads!

    Hei,

    I constantly get an error message because excel is trying to execute a query that i obviously not there. Or is it?

    This the error message I get.
    Name:  Unbenannt.jpg
Views: 94
Size:  21.6 KB


    I'd love to delete this stupid query but can't find it the query overview. For an awkward reason it is still loaded to the data model. See here
    Click image for larger version. 

Name:	2018-06-13-15.10.35.jpg 
Views:	90 
Size:	96.4 KB 
ID:	8066

    But here I can't delete it...
    Name:  Capture1.JPG
Views: 87
Size:  18.6 KB



    So what do I do now?

    Kr,
    Christiane

  2. #2
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Location
    Nanaimo, BC, Canada
    Posts
    2,261
    Articles
    57
    Blog Entries
    14
    Excel Version
    Excel Office 365 Insider
    Hi Christiane,

    You need to delete this one from Power Query, not Power Pivot. Since you're on Excel 2016, you'll need to go to the Data tab. Depending on the version of Excel 2016 you have, you'll find one of the following two buttons:
    -Show Queries
    -Queries & Connections

    Whichever it is, when you click it, the Queries pane should fly out from the right side. Find the query in that list.

    You have two options here:
    1) Right click --> Load To --> uncheck Load to Data Model

    This option will revert the query to a Connection Only query which will not get called. Essentially, it allows you to remove it from the Power Pivot Data Model, but keeps the query around in case you do need it in future. This is probably the safest route, unless you know for sure you do not need it.

    2) Right click --> Delete

    This option will delete the Power Pivot table, and permanently delete the query as well.

    HTH,
    Ken Puls, FCPA, FCMA, MS MVP (Excel)

    Learn to Master Your Data at the Power Query Academy (the world's most comprehensive online Power Query training) or with my book M is for Data Monkey!

    Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/forums
    Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter

    If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.

  3. #3
    Seeker christiane.latte's Avatar
    Join Date
    Feb 2018
    Posts
    8
    Articles
    0
    Excel Version
    2016
    Quote Originally Posted by Ken Puls View Post
    the Queries pane should fly out from the right side. Find the query in that list.
    That is my problem, I can not find it in this list of queries. I looked many times, very carefully. It is not there.

  4. #4
    Seeker christiane.latte's Avatar
    Join Date
    Feb 2018
    Posts
    8
    Articles
    0
    Excel Version
    2016
    No one?

  5. #5
    Super Moderator AliGW's Avatar
    Join Date
    Nov 2015
    Location
    Ipswich, Suffolk, England
    Posts
    988
    Articles
    0
    Excel Version
    Office 365 Subscription
    How can we find it for you without the workbook?
    Ali
    Enthusiastic self-taught user of MS Excel!

  6. #6
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Location
    Nanaimo, BC, Canada
    Posts
    2,261
    Articles
    57
    Blog Entries
    14
    Excel Version
    Excel Office 365 Insider
    Hi Christine, like Ali said, it's going to be very difficult to find without access to the workbook.

    I'm curious about your version of Excel 2016. Is the first button on your Data tab called Get Data or is it something else? The reason I'm asking is because the method to get in to the workbook connections has changed in Office 365 updates. My next thing to hunt here would be to look into the Connections area to see if I can locate a connection and delete it. (This pane was harmonized into Queries & Connections in Office 365.)

    Failing that, I'd be hunting this using VBA to see if I can find it and remove it. Unfortunately, due to the time involved in this, I'd have to get one of my team on it, and that - unfortunately - is a chargeable service. (If you're interested, ping me via PM and we can organize it.)

    Let me know more details about your version and we'll see if we can avoid that last bit.
    Ken Puls, FCPA, FCMA, MS MVP (Excel)

    Learn to Master Your Data at the Power Query Academy (the world's most comprehensive online Power Query training) or with my book M is for Data Monkey!

    Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/forums
    Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter

    If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.

  7. #7
    Seeker christiane.latte's Avatar
    Join Date
    Feb 2018
    Posts
    8
    Articles
    0
    Excel Version
    2016
    Ah..I see. Thanks for the advises. The file I am refererring to is a 22 MB xlsx and our complete reporting. All transactions, all business internals. Something confidential I cannot unfortunately share somewhere online.

Posting Permissions

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