Categories
Sponsor Us
The Enfranchised Mind has been online since 2006 and boasts thousands of conversations, many author open source projects, and high traffic. Help continue EnfranchisedMind: sponsor us and we will set aside some space in the sidebar or footer to feature you.
Run-time error '1004'.
If you’re working in MS Excel 2007 and you’re programmatically updating
PivotCaches, but you get an error about “Cannot run ‘MSQUERY.EXE’.” despite the fact that MS Query seems to be running just fine all the other times, your problem may well be because of the asynchronous updates: if two pivot caches attempt to use MS Query at the same time, the second one explodes with this error. The solution is to setpvtCache.BackgroundQuerytofalse, which makes the cache refresh synchronous.