Object reference not set in Power BI when refreshing the data - object

I am getting the above error while refreshing the data, the data resides in MS cloud, all the XLSx files in that work fine except one XLSx file.
I tried few solution and still not resolved
Replacing Null with Blanks
Uninstall Power BI and Reinstall
Could someone give some solutions
Thank You so much

Related

VBA Editor not opening: insufficient memory

My Visual Basic Editor stopped working. Everytime I pressed Alt F11 it would come up with an error message saying "insufficient memory" and I wasn't able to get access to my code.
I searched online and many of the recommendations suggested uninstalling and reinstalling Pack MS Office or deleting registry entries.
Try clearing all the data on all worksheets on the workbook. If you have to, delete all worksheets. I had the raw data stored on other files and I needed access to the code on which I had been working on all week.
When I did this I created a new version of the workbook in case anything went wrong.
Once I cleared all the worksheets and saved the file, closed it then opened it again, I was able to open VBA Editor
This solution worked for me as I was able to get back my code and paste into an earlier file that was less heavy.
For context: the VBA Code I was writing had a huge UsedRange so it was unecessarily adding data. I was going from a 1000 KB file to 100,000 KB file everytime I ran my code (I am a beginner and I'm still figuring out how to avoid using select and how to use Dim and Set instead).

MacOS: Unable to 'Get Data' from folder in Excel Power Query

I am trying to introduce Power Query into some processes. Currently, I am working on a MacBook, which apparently poses some difficulties with Power Query.
I am able to import Excel- and CSV-files with no issues. However, for the task at hand, I need to get data from multiple files in a folder.
Hence my question: Can it really be true that this is not possible to do on Excel for Mac?
Can the data be imported e.g., in Google Sheets and then exported to an .xlsx file?

Importing data from .xls files when gettimg data from a folder in power query

I have tried to get data from a particular folder containing only .xls using power query without any luck. Right now I'm running a macro to save as .xlsx before refreshing the data, however, I'd like to reduce that step and get data without having to change the format.
Can anyone help me with the same?

Excel showing as #REF

I am using mac laptop. There is an excel sent to my team by another person and windows users are able to see the data without any issues but when i open most of the fields show as #REF!. Any idea how i can resolve this?
UPDATE:
Weirdly , when i opened another excel which is connecting to DB and getting the data and then opened the above mentioned excel then i do not see #REF! error anymore. Values are getting displayed.
Now, if i close both excels and open the original excel then i see the #REF! again.
Only when the excel connecting to DB is opened and then the original excel is opened, the values are displayed.
I don't understand what is happening.
It is not a bug. It is just how excel work. As you had said :
the excel connecting to DB is opened and then the original excel is opened, the values are displayed.
For some reason excel do need the source file to be opened to 'load' its value. Somehow (in my case) using the " Data > Get External Data " can work without the source file being opened. (maybe this answers Any idea how i can resolve this?).
Anyway, please share if the Get External Data works for u or not. (also mention your excel version).

Excel table connection will only refresh if I close and reopen the workbook

I am running Excel 2010 and I have a table which is connected to a MS Access 2010 query. I have some VBA which updates the SQL of the Access query. Then when I refresh the Excel table the data for the specified date range is returned.
This typically works just fine. However, a part of the monthly process is to Save As the workbook into a new folder under a new name each month. At that point, I can no longer refresh the Excel table. I receive the following error:
Run-time error '1004':
The query did not run, or the database table could not be opened.
Check the database server or contact your database administrator. Make sure the external database is available and hasn't been moved or reorganized, then try the operation again.
If I close out of all my Excel workbooks and get back into the workbook in question the refresh works fine.
In order to avoid the closing and reopening I would like to identify and resolve the true cause of the error.
Some fixes that I have read about on this site and ruled out are as follows
Background Refresh
It is and always has been set to false
Database permissions
I feel pretty confident this is not the issue because the credentials are not changed by my closing and reopening the workbook yet my ability to refresh the Excel table does change.
If anybody has any thoughts on what may be going wrong here I would greatly appreciate the assistance. A solution involving VBA would be perfectly fine as well.
Troublesome code:
Sub RunQueries()
ActiveWorkbook.RefreshAll
End Sub
I will point out that I do not believe this to be a VBA issue. Even when I try to manually refresh the table within Excel I receive the error. Running the query from within MS Access works fine.

Resources