Are you trying to use QuickBooks but get error that says “Got Unexpected Error 5 in Call to NetShareGetInfo for Path”. This error usually appears when the QuickBooks Database Service restricts a QuickBooks User to access the file location. The warnings that one may get could appear as:
An unexpected error has occured in “Intuit QuickBooks Enterprise Solutions 22.0”:
TM: brdtxn failed, status=-1. GlobalLockStatus: OpenWriteTxns=0, OpenReadTxns=0, OpenDeferredRead=1, AbortedWriteTxns=0, GlobalWriteLocks=0
An unexpected error has occured in “Intuit QuickBooks Enterprise Solutions 22.0”:
DB error -101 ErrorMessage:’Not connected to a database’ from file:’src\dmtxnsqlsalesorderlineitem.cpp’ at line 2481 from function:’IDBSalesOrderLineItem::DBLoad’
An unexpected error has occured in “QuickBooks”:
Got unexpected error 5 in call to NetShareGetInfo for path \%filepath%
An unexpected error has occured in “Intuit QuickBooks Enterprise Solutions 22.0”:
Got unexpected error 5 in call to NetShareGetInfo for path \%filepath%
The above error is an example for the QuickBooks Enterprise, the user will see the errors with the version they are using. The error is usually associated with server application issue, and you can see the error while trying to save the company file. In our detailed guide to solve this error, we will be explaining with in-depth solutions to fix this error. So please read the article with utmost care and apply the step-by-step solutions provided below in order to fix this error.
Triggers to Unexpected error 5 in call to NetShareGetInfo for path
There could be numerous reasons for this error to appear. Some of the few reasons for this error to appear are:
- The most basic factor for this and many other errors to appear is incorrect installation of QuickBooks Desktop Version.
- A forced shutdown or if you improperly shutdown your computer, this may result in many types of file and program corruptions.
- Additionally, if the Windows user trying to access the company file does not have enough admin rights.
- Invalid entries in the Windows registry are also one of the reasons for the windows to throw various errors.
- Missing System files or windows registry entries can also be a reason for this error to appear.
Also Read: QuickBooks Runtime Redistributable Error in QuickBooks
How to Fix Unexpected error 5 in call to NetShareGetInfo for path?
There are a lot of solutions you can try, to fix this error. Here’s a detailed guide to help you fix the error:
Step 1: Download and Use QuickBooks file doctor
- You can download QuickBooks file doctor from the official Intuit website, which comes as a bundled tool with QuickBooks Tool Hub.
- You should then follow the on-screen prompts to install the tool.
- After the installation is complete, run the tool.
- Let the tool do its magic and check the files and folders in the system and reset the hosting setting to work accordingly.
- You can then Access and Control the System using the permission-level settings.
- The user can also go ahead to locate and repair the damaged files in QuickBooks

Step 2: Re-create the user
Recreating a new user might help fix the error as this is a user related error. The steps to do so are listed below:
- Next, we will try to re-create a user by heading to User and Roles.
- In the following step, create a new username for the new user.
- Create a strong password for the new user.
- Assign the roles for the new user and finally close the setup by Clicking OK.

Step 3: Turning off the user account control in Windows
Windows UAC plays a major role in managing how your computer works and what all it allows the users to do in the system. Turning off the UAC can help fix many system problems. Let’s see how it works:
- Open RUN box by pressing the Windows + R keys together.
- Type in “Control Panel” to open it and hit on OK.
- Look for User Accounts section in the control panel.
- After that, click on Change User Account Settings.
- If you see any prompts by UAC, choose YES and go ahead.
- You will be able to see a slider for the notification settings, move the slider to never notify Level.
- Click on OK to Turn UAC Off.
- Finally, restart the system for the changes to take effect.

Also See: How to Fix QuickBooks Error 1328?
Step 4: Removing the user to fix Unexpected error 5 in call to NetShareGetInfo
- Open the Company tab on the QuickBooks Desktop
- Choose the Users.
- Click on Setup Users and Roles
- Select a User from the Users List.
- Finally, Click on OK to Confirm.

Step 5: Providing file share access
Sometimes access to the company file may get revoked by the user accidentally. Or the file sharing for the company has been disabled. You can follow these steps to fix it:
- You need to open the file explorer which can be done by opening the “This PC”.
- Next, you need to right the folder that contains the QB File.
- Head to the Properties.
- Open the Sharing Tab.
- Click on the Share button and give appropriate sharing permissions according to your needs.
- Lastly, Click on Apply to apply the changes and Hit OK button.

Step 6: Using the Reimage Repair Tool
If you have tried all of the above listed solutions and still stuck with the error. You can go ahead and install a third-party image repair tool such as Reimage Repair Tool to fix the Windows problems. We highly recommend to use this tool with caution and utmost care.
The process to download and use the tool is as follows:
- First and foremost, you need to download the tool.
- Install the tool on your computer.
- Head to the File Location.
- Start the Automatic Scan
- Start the repair process.
- Finally, close the QuickBooks and Reopen.
Also Read: Fix QuickBooks Unable To Locate PDF Viewer Problem
Step 7: Reinstalling QuickBooks Desktop
Reinstalling QuickBooks all over again is the best way to fix most of the issues in QuickBooks. But you need to make sure if that you have the necessary details such as product number and license details to begin with the fresh installation. You need to follow below steps to reinstall QuickBooks:
- You need to Press the Win + R Keys to Open the Run Box.
- Type appwiz.cpl to open the list of installed applications on your computer.
- Find the QuickBooks app and remove it and all of its features.
- After that, you need to download the correct version of your QuickBooks from Intuit website
- Install QuickBooks again using your recommended settings.

Conclusion!
Coming to the end of this article, we believe you were able to solve ‘Got Unexpected Error 5 in Call to NetShareGetInfo for Path’. But if you are still stuck with the error and need assistance fixing it, we will be more than happy to help you out. All you have to do is either email us or reach out to our QuickBooks 24*7 Support chat at Transync Pro!
Some More Important Reads:
How to Fix QuickBooks Error 1712?: Step-by-Step Guide
Resolving QuickBooks Error 15225: Cause and Step-by-Step Fixes