Is QuickBooks error 6138 1005 making QuickBooks company files inaccessible? If yes, keep reading this article to discover the tried and tested solutions for this error.
QuickBooks company file is used to keep financial and accounting information, making it one of the most crucial elements of the software. Although QB users access their company files easily, errors might sometimes make it impossible to open and work on the company file. QuickBooks error code 6138 1005 is one such error that arises while opening the company file. This error code prevents users from accessing their company files locally or over a network. All things considered, resolving this error is of utmost importance to ensure seamless financial operations. To help you resolve the company file access problems created due to this error, we have provided major reasons and effective solutions in this article below. Hence, let’s read this blog further and address the error once and for all.
You can follow this detailed article to learn effective ways to fix the company file access issues. However, if you want an expert to deal with the error on your behalf, you can reach out to our team of QB experts at 1-855-856-0042 to get professional assistance in resolving QB error code 6138 1005.
Table of Contents
What is QuickBooks Desktop Error 6138 1005?
Error code 6138 1005 is a common 6XXX series error in QuickBooks that can occur when users try to access their company files. This error occurs when the company file is hosted by a computer other than the server. Some less common triggers, such as a damaged company file or an outdated QB version, may also trigger this company file error in QuickBooks.
Primary Causes that Trigger QuickBooks Error -6138 1005
It is important to understand why a particular error arises so that we can resolve it with better clarity. Thus, before learning the troubleshooting solutions for QuickBooks error message 6138 1005, you need to know about the main triggers behind it. Here are the primary reasons why this company file error arises in QB –
- The company file you are trying to access in QuickBooks might be damaged.
- The QB company file might be stored in a corrupted folder or too many folders.
- Your QuickBooks Desktop might be old or outdated, which can cause problems while opening the company file.
- Essential files, like the Network Data and Transaction Log files, are not running correctly, which can be another reason for company file access issues.
- Your QuickBooks Desktop might not be correctly installed, and the installation process might be faulty.
- There are problems with the hosting setup while hosting the QB company files over a network.
- There are insufficient folder permissions to access the QuickBooks company file folder.
- The Windows firewall or an antivirus app might be incorrectly configured to block QuickBooks by creating obstructions.
Now that we know the root causes of this company file error let’s proceed to the next section to discover the best solutions to resolve it.
General Solutions to Tackle QuickBooks Error Code 6138 1005
Once you have understood the reasons behind the company file error, you need to address them with practical solutions. Until QuickBooks error message 6138 1005 is rectified, you won’t be able to access the company file. Thus, follow the troubleshooting solutions mentioned below to address this error once and for all –
Solution 1 – Install the Latest QB Desktop Updates
An outdated QB version can cause issues when accessing company files. It is considered one of the major reasons for QuickBooks error 6138 1005. Hence, the application needs to be updated to the latest release in the following manner –
- Open QuickBooks Desktop, move to the Help menu, then choose the Update QuickBooks Desktop option.
- Further, click Update Now, then select the Reset Updates checkbox and click Get Updates.
- Lastly, reopen QuickBooks and click Install Now to install the updates in the application.
Once QB is updated, restart the system, open QuickBooks, and try accessing the company file to check the status of the error. If the same error code persists, move to the next solution to run the QB File Doctor Tool.
Solution 2 – Run QuickBooks File Doctor from QuickBooks Tool Hub
A corrupted or damaged company file can cause file access problems in QB. The QuickBooks File Doctor Tool can help you fix these issues with ease. For this, first download the QuickBooks Tool Hub and then run the QB File Doctor tool in the following manner –
Step 1 – Download QB Tool Hub
The QuickBooks Tool Hub is an essential utility that can help address general errors and issues in the QB application. You can successfully download and install the QB Tool Hub with these steps –
- First, download the most recent QuickBooks Tool Hub version, save the file to an accessible location on your computer, and open the downloaded QuickBooksToolHub.exe file.
Note: If you already have the QB Tool Hub installed on your PC, you can find its current version listed at the bottom of the Home tab.
- Follow the on-screen prompts to run the installation process, then agree to the terms and conditions.
- When the installation finishes, double-click the QB Tool Hub icon on your Windows desktop to open the QuickBooks Tool Hub utility.
Note: If you aren’t able to locate the QB Tool Hub icon on your Windows desktop, you can manually search “QuickBooks Tool Hub” in the Windows search bar and access the program.
Once the tool hub is successfully installed, run the Quick Fix My File tool in the next step.
Step 2 – Utilize the Quick Fix My File Tool
Before running QuickBooks File Doctor, you can run the Quick Fix My File tool to fix general company file problems in the following manner –
- Go to the Company File Issues tab from the QuickBooks Tool Hub, then choose the Quick Fix My File tool.
- Let the tool run, and when the process ends, hit OK and reopen QuickBooks.
Now, try opening your company file to check whether the company file error has been resolved. If the error still persists, move to the next step and utilize the QuickBooks File Doctor Tool.
Step 3 – Use QuickBooks File Doctor
The last step is to run the QuickBooks File Doctor Tool. This utility helps fix the company file and network issues that might trigger QuickBooks company file error 6138 105. In order to run this tool, follow the detailed steps given below –
- From the QB Tool Hub, move to the Company File Issues tab and select Run QuickBooks File Doctor.
Note: The QB File Doctor might not open instantly. Precisely, it might take up to a minute for the tool to open. However, if the QuickBooks File Doctor doesn’t open, you can manually access the tool by searching for “QuickBooks Desktop File Doc” in your Windows search bar.
- Now, in QuickBooks File Doctor, select the company file you want to repair from the drop-down menu. If you can’t see the file, select Browse and Search to find the company file and initiate the repair process.
- Select the Check your file and Network option, hit Continue, enter your admin password, and then hit Next.
- Initiate the scan process, and once the tool stops running, reopen QuickBooks to access the company file.
Note: The company file scan depends on your file size and might take 10-15 minutes to complete. After the process ends, the scan may sometimes say it was unsuccessful, even if the tool fixes your issue.
Now, check if the error has been fixed and whether you can open the company file without issues. If the error message persists, move to the next troubleshooting solution.
Address QuickBooks Error 6138, 1005 When You Open the File Locally
Error 6138 1005 in QuickBooks can prevent users from accessing the company file on the local PC as well as over the network. If you open your company file on the same computer where QuickBooks is installed, you can perform the troubleshooting steps given below to tackle the error code 6138 1005-
Solution 1 – Edit the .ND and .TLG File Names
The Network Data file allows QuickBooks to access the company file in a network or multi-user setup, while the Transaction Log file records the changes made to a file since the last backup. Both of these files are crucial to access the company files in the app.
Corrupted or damaged Network Data and Transaction Log files can cause issues while opening QuickBooks company files. To address this scenario, you can rename these files and fix the .ND and .TLG file damage. Remember, QB will recreate these files again when you scan them with the QuickBooks Database Server Manager and when you access your company data file.
Follow the steps provided below to modify the Network Data and Transaction Log file names –
- Open QuickBooks, press the F2 key, open the Product Information window, and then access the File Information section.
- Find and note down the company file location, then open Windows File Explorer and go to the company file folder.
- Further, locate the files with .ND and .TLG extensions that have the same file name as your company file. (For instance, company_file.qbw.nd / company_file.qbw.tlg).
- If you can’t see the file extensions, then you will first need to edit the Windows Files and Folder settings in the following manner –
Note: This step enables hidden files and folders for the Windows 10 version. If you use another Windows variant, you need to follow their specific steps to edit the file and folder settings.
- Access File Explorer, then select View, and click Options.
- Select the Change Folder and Search option, open the View tab, then move to the Advanced Settings section.
- Select Show hidden files, folders, and drives, then hit OK to confirm the changes and locate the .ND and .TLG files.
- Further, right-click each file and select Rename, then add “.OLD” at the end of each file name (example: company_file.qbw.nd.OLD).
- Once done, rerun QuickBooks and sign in to your company file to check the status of the 6138 1005 error code.
If the error keeps appearing, move to the next solution and try opening a sample company file.
Solution 2 – Open a Sample File in QuickBooks
By accessing a sample company file, you can check if the problem is with your company file or with QuickBooks. If a sample company file doesn’t open and instead gives you an error, it indicates that there are issues with the QuickBooks installation. You can open a sample company file by following the steps below –
- Double-click the QB icon and press and hold the Ctrl key till you see the No Company Open window.
- In the No Company Open window, click the Open a Sample File option and select a file from the list of sample company files.
- If the sample file gives you the same error message, you need to repair your QuickBooks installation files by performing the steps given in Solution 3 below.
- On the other hand, if the sample file opens, it means there are issues with your company file, which can be resolved by performing solution 4. In simple words, if you are able to open the sample file without issues, jump to solution 4 directly without trying solution 3.
Once done, perform solution 3 or solution 4 below, depending on the results.
Solution 3 – Repair Your QuickBooks Desktop Application
If you are unable to access the sample file in the above solution, chances are that there are installation issues in QB. Problems with the QuickBooks program or the installation process can cause issues while opening the company file; thus, the application needs to be repaired. For this, ensure that QuickBooks Tool Hub is correctly installed (see step 1 of solution 2 of the “general solutions to tackle QuickBooks error code 6138 1005” section above). Then, you can perform the steps given below and run an application repair process –
Step 1 – Utilize Quick Fix My Program Tool
This utility is used to terminate background processes that are being used by QB. You can fix general program issues by using the Quick Fix My Program utility in the following manner –
- Open the QuickBooks Tool Hub, then select the Program Problems menu, and click the Quick Fix My Program tool to initiate the program repair process.
- Once the tool stops running and the process is complete, restart QuickBooks Desktop and open your data file.
If you encounter issues opening the company file, proceed to the next step and address the installation issues with the QB Install Diagnostic Tool.
Step 2 – Run the QuickBooks Install Diagnostic Utility
If the Quick Fix My Program tool is unable to fix the application problems that are causing company file access problems, you can utilize the QuickBooks Install Diagnostic Tool. This utility can help resolve QB installation issues in the following manner –
- Open the QuickBooks Tool Hub, select the Installation Issues tab, and locate & select the QuickBooks Install Diagnostic Tool option.
- Let the tool run the process, which can take up to 20 minutes. Once the tool stops running, restart your PC and open QuickBooks.
- Access your data file, then update QuickBooks again (see solution 1 of “general solutions to tackle QuickBooks error code 6138 1005” above).
Now, check the status of the “QuickBooks 6138, 1005” to ensure that you are able to open the company file without any issues.
Solution 4 – Copy QuickBooks Company File to the Desktop
If you are able to open a sample file in solution 2 above, your company file might be facing issues. To address this scenario, you need to first check whether there are issues with the company file or the file location. For this, copy the company file to your desktop and access it from the new location in the following manner –
- Open the Company File Folder, find the file with the .QBW extension, then right-click it and choose Copy.
- Now, right-click anywhere on your desktop, select Paste, and move the company file to a new location on the desktop.
- Further, press the Ctrl key while clicking the QB icon to access the QuickBooks No Company Open window.
- Once the window appears, select Open or restore an existing company, then find the above-copied company file on your desktop and open it.
If the file opens from the desktop, the original QB company file location might be damaged. It is also possible that your company file is stored in multiple folders, which exceeds the file system path limitation.
On the other hand, if you are unable to access the file from the new location, the file might be damaged or corrupted. In such a case, restore the backup version of the QuickBooks company file in the next solution to fix the issues.
Solution 5 – Restore the QB Desktop Company File Backup
If there are issues with the current company file, you can restore its backup version on your PC. While restoring the file backup, the application uses the backup company file with the .QBB extension to create a new company file with the .QBW extension. You can restore QuickBooks company file backup by performing the steps below –
- Access the QuickBooks File menu, select the Open or Restore Company option, then click Restore a backup copy.
- Hit Next, select the Local Backup option, and then click Next again.
- Further, browse your computer to locate the backup version of the company file, which should look like this – [Your company name].qbb.
- Next, select a folder where you want to save your restored company file, then click Open, and select Save.
Note: If you open the company file backup in the same folder as your existing company file, you may run the risk of overwriting the data. To avoid overwriting, either rename your existing company file or the backup version or save the backup in a completely separate folder.
- If you see any messages about possibly overwriting your data, select the preferred option and don’t overwrite any data unless you know you want to.
If there are issues in the company file backup process, review the QB hosting settings and the company file path character limit in the following manner –
Step 1. Make Sure that Your Computer isn’t Hosting the QuickBooks Company File.
You can review the hosting setup on your PC to ensure that the multi-user mode is off by following these steps –
- Open QuickBooks, access the File menu, then choose Utilities and open your company data file.
- If the Stop Hosting Multi-User Access option is available, select Stop Hosting Multi-User Access and hit Yes to confirm.
- Lastly, click Yes in the “Company file must be closed” window and end the process.
Once done, review the company file path character limit in the next section.
Step 2. Review the Character Limit for the Company File Path.
The path to your company file in QuickBooks shouldn’t be longer than 210 characters. If the character limit is exceeded, it can cause problems while opening the company file. Check the company file path character limit in the following manner –
- First, go to the company file location, then copy the file path from the address bar.
- Now, paste the file path to the Notepad, then count the characters and the spaces to ensure that it isn’t longer than 210 characters.
(For instance, the character count for C:Documents and SettingsAll UsersDocumentsIntuitQuickBooksSample Company FilesQuickBooks 2018Sample_company_file.qbw is 125.)
Once done, rerun QuickBooks and try to restore the company file again. Then, review the status of “error code -6138, -1005 in QuickBooks”. If the company file access issues persist and the error isn’t resolved, go to solution 6.
Solution 6 – Utilize QuickBooks ADR Tool to Recover Lost Data
If the original company file is damaged and restoring the backup doesn’t help with the issue, try to recover the lost data by using the Auto Data Recovery Tool. This tool can fix data loss or corruption issues by recovering all or nearly all of your data. The ADR tool utility can help you recover lost files by –
- Restoring the recently lost transactions by using the current Transaction Log file and a copy of the QB Company file.
- You can restore all but the last few hours of transactions by using a copy of both your QB Company file and Transaction Log file.
Points to Consider :
- The ADR tool can be run in QuickBooks Pro, Premier, and Enterprise Solutions for Windows; however, it is unavailable in Accountant Editions.
- The ADR tool has file size restrictions, and QuickBooks will only generate an ADR file if the backup is up to 1.5 GB in size.
- Ensure that QB Desktop is properly updated to the latest release to maximize the ADR feature.
You can use the ADR tool utility to recover lost data by performing these detailed steps –
Recover Recent Transactions with the Original .TLG File & the ADR Version of the Company File
You can utilize the original Transaction Log file and the ADR version of the company file to recover all recent transactions by following these steps –
- Create a new folder named QBTest on your desktop, then open the folder containing your QuickBooks company file.
Tip: If you don’t know the company file location, you can find the location from the Product Information window (press F2 or Ctrl+1 to access the window). Alternatively, you can also get the company file location from the No Company Open Window.
- Further, in the Company File Folder, locate the file with the .TLG extension having the same name as your company file. If you cannot locate the .TLG file, follow these steps to show file extensions on your Windows –
- Press the Windows + E keys and open File Explorer, then click Organize.
- Choose Folder and search options, select Hide extensions for known file types, then hit Apply and OK to save the changes.
- Copy the corresponding .TLG file of your company file, then paste it to the new QBTest folder created on the desktop
- Now, open the QuickBooksAutoDataRecovery folder from the same location where your company file is stored, followed by copying the .QBW.adr file.
- Paste it to the QBTest folder, and you should now have a .QBW.adr and .TLG file present in this folder.
- Further, right-click the .QBW.adr file, then click Rename and remove .adr from the end of the file name.
- Open QuickBooks Desktop and access the company file saved in your QBTest folder, then review the transactions by using the account register.
- Verify that all transactions are present, and once done, go to the QB File tab and select Utilities.
- Click the Verify Data option to review the data integrity of the recovered file.
- If this company file copy is in good condition and confirms data integrity, move the damaged company file to a different location and transfer the copy from the QBTest folder to the original location.
Once you have done this, you will have successfully recovered all the recent transactions. However, if you wish to recover all the transactions except the last 12 hours, move to the next section to run the ADR tool.
Recover All Except the Last 12 Hours of Transactions by Utilizing the .TLG.adr and .QBW.adr Files
In this solution, you will use the ADR version of both the .QBW and .TLG files to recover all except the last 12 hours of transactions by following the detailed steps below –
- Firstly, create a new folder named QBTest on your desktop, then open the company file folder and locate the QuickBooksAutoDataRecovery folder.
Tip: If you can’t locate the company file folder, check the file location from the Product Information screen (press F2 or Ctrl+1) and by accessing the No Company Open Window.
- Further, look for the .TLG.adr and .QBW.adr files with the same name as your company file.
- If you can’t locate the.TLG.adr and .QBW.adr files, you can enable the file extensions (see point 3 in the first section of this solution).
- Copy the .TLG.adr and .QBW.adr files, paste them into the QBTest folder, then right-click the .QBW.adr file.
- Select Rename and remove the .adr from the end of both the file names, which should give you .QBW and .TLG files.
- Now, open QuickBooks and access the company file saved in the QBTest folder, then verify the transactions by using the account register.
- Verify that all transactions are present, then go to the File menu and select Utilities.
- Select the Verify Data option, then check the data integrity of the recovered file and ensure that the file is free of issues.
- If this copy of the company file confirms data integrity, move the damaged company file to another location and transfer the copy from QBTest to the original location.
Once you have completed all the steps, open QuickBooks and access the company file. Ensure that the company file damage is fixed and the error code is resolved.
Fix Error Code -6138, -1005 in QuickBooks When You Open the File Over a Network
QuickBooks error message 6138 1005 can also arise when accessing a company file saved on the server or another PC. To address the company file access error, you can perform the troubleshooting solutions given below –
Solution 1 – Ensure that Hosting is Turned Off
First, confirm that the hosting is turned off by implementing the steps below –
- Access the Product Information window by pressing the F2 key on your keyboard.
- Check the hosting status in the Local Server Information section to ensure that it is turned off. However, if it’s enabled, turn it off.
Once the hosting is disabled, rerun QB and open the company file to check if the error is fixed. If the error code persists, move to the next solution and rename the .ND and .TLG files.
Solution 2 – Modify QuickBooks Network Data and Transaction Log File Names
Since the .ND and .TLG files allow QuickBooks to access the company file in a network or multi-user setup; you need to resolve the file damage by renaming the files. Remember, QB will create these files again when you run a scan with the QuickBooks Database Server Manager and when you open your company file.
Step 1 – Edit the QB Network Data and Transaction Log File Names
To resolve the issues with the .ND and .TLG files, you can rename them by following solution 1 of the “address QuickBooks error 6138, 1005 when you open the file locally” section.
Once the file names are edited, move to the next step to run the QuickBooks Database Server Manager from QB Tool Hub.
Step 2 – Utilize the QB Database Server Manager
The QuickBooks Database Server Manager (QBDBSM) is an essential utility that hosts your company files. Once you have renamed the .ND and .TLG files, you can run the QuickBooks Tool Hub (to download the utility, follow solution 2 of the “general solutions” section above). Then, scan the QuickBooks files by implementing the detailed steps below –
- Open the QuickBooks Tool Hub, go to the Network Issues tab, then click the QuickBooks Database Server Manager option. Make sure that QuickBooks Desktop is installed on your server computer.
- After selecting the tool, click the Start Scan option if you see your company file(s). If you can’t see the company files, click Browse, locate the company file, then select Start Scan.
- Once the scan process ends, reopen QuickBooks Desktop and sign in to your company file.
If you still get QuickBooks error -6138, 1005 while opening the company file, go to solution 3.
Solution 3 – Open a Sample QB Company File from a Workstation
Opening a sample file in QuickBooks can help you understand whether the error occurred due to problems with the company file or with the application. To open the sample file, follow solution 2 – Open a Sample File in QuickBooks of “address QuickBooks error 6138, 1005 when you open the file locally” section above.
If the sample file opens successfully, there are issues with your company file, which can be fixed by undertaking solution 4 of the “address QuickBooks error 6138, 1005 when you open the file locally” section. On the other hand, if the sample file doesn’t open, you need to repair QuickBooks by running the QB Tool Hub utilities as given in solution 3 of the “address QuickBooks error 6138, 1005 when you open the file locally” section of this blog.
Perform the required solution depending on the results while opening the company file. Once done, rerun QuickBooks and access the company file again. Review the status of QuickBooks error 6138 1005 to ensure it is resolved. However, if the error keeps appearing, move to solution 4 below.
Solution 4 – End all QuickBooks Desktop Processes
If the solutions provided above aren’t able to address the company file access issues, you can try terminating the QB processes. For this, you admin privileges and end the .EXE processes in the following manner –
- Sign in as the Administrator on the server PC, then press Ctrl+Shift+Esc to access the Task Manager.
- Further, show processes for all users, then select the Users option and right-click each process (namely QBW32.EXE, qbupdate.exe, and QBDBMgr.exe).
- Hit End Task, and once all the processes are terminated, open QuickBooks and access the company file in multi-user mode.
Now, check the status of “QuickBooks error 6138, 1005” and ensure that you are able to open the company file without issues. However, if the file is inaccessible and the error persists, you can edit the folder permissions in the next solution.
Solution 5 – Manually Review the Folder Permissions in QB
You might get errors while accessing QuickBooks company files when there are incorrect or inadequate folder access permissions. To fix this scenario, manually review the folder permission settings in the following manner –
Set up QuickBooks Folder Permissions
Verify that the QB folder permissions are correctly set –
First, review the folder permission settings to ensure that it is correct by following the steps below –
- First, open the Windows Start menu, select File Explorer, and right-click the company file folder.
- Select Properties, then select Advanced from the Security tab.
- Click QBDataServiceUserXX (where XX stands for the QB version), then hit Edit, and set the settings given below to Allowed:
- Traverse Folder/Execute File
- List Folder/Read Data
- Read Attributes
- Read Extended Attributes
- Create Files/Write Data
- Create Folders/Append Data
- Write Attributes
- Write Extended Attributes
- Read Permissions
If the QB folder permissions are incorrectly set –
If the folder permissions are not set correctly, you can edit the permissions in the following manner –
- Right-click the QB company file folder, then select Properties and click Security.
- Hit Edit, then select QBDataServiceUserXX (where XX stands for the QB version) and click Full Control.
- Select Allow, then hit Apply and OK to confirm the action and save the changes.
To set Windows access permissions to share QB company files (in Windows 10) –
If you are a Windows 10 user, follow these steps to set Windows access permissions to share the company files in QB –
- Open the Start menu, then access the File Explorer, and locate the QuickBooks company file folder.
- Right-click the folder, select Properties, click Sharing, and select Share Add.
- Select the corresponding QBDataServiceUserXX (where XX stands for the QB version), then set the permission level of both users to Full Control, and click Share.
Once the folder permissions are correctly set, open QuickBooks and try accessing the company files to check if the error has been eliminated. If the error code isn’t resolved, move to the next solution and configure the Windows firewall.
Solution 6 – Perform Windows Firewall and Antivirus Configuration
A misconfigured Windows firewall or an antivirus app can create blockages while running QuickBooks. This can be a major reason for QuickBooks error message 6138 1005. The issue can be fixed by reconfiguring the firewall and allowing QuickBooks to access the Internet in the following manner –
Step 1 – Run QB File Doctor Utility
QuickBooks File Doctor tool can help fix general company file and network issues and can automatically configure the Windows firewall. Thus, you can utilize this tool by following solution 2 of “general solutions to tackle QuickBooks error code 6138 1005” above.
Once the tool stops running, access the company file in QuickBooks to check if the issues have been eliminated. But if the error persists, you can manually configure Windows firewall settings and create QB port exceptions in the next step.
Step 2 – Configure Windows Firewall Manually
If running the QB File Doctor tool doesn’t fix the network and firewall issues, follow the steps below to manually configure the Windows firewall and create exceptions for QuickBooks –
Create Firewall Port Exceptions for QB
You need to allow QuickBooks to access the internet without firewall obstructions and blockages. For this, create firewall port exceptions for QB by implementing the steps given below –
Note: If you use more than one QB Desktop version on the same computer, follow these steps to configure the Windows firewall for each version. Additionally, you need to include each year’s (version’s) ports in the Specific Ports list in step 4 below.
- Open the Start menu and type “Windows Firewall” in the Windows search bar, then access the utility.
- Further, navigate to the Advanced Settings tab and right-click the Inbound Rules option.
- Choose the New Rule option, select Port, and click Next, then make sure that the TCP option is selected.
- Now, refer to the list provided below to enter the specific ports (as per your QBDT version) in the Specific Local Ports field –
- QuickBooks Desktop 2020 and later: 8019, XXXXX.
- QuickBooks Desktop 2019: 8019, XXXXX.
- QuickBooks Desktop 2018: 8019, 56728, 55378-55382.
- QuickBooks Desktop 2017: 8019, 56727, 55373-55377.
Important: QuickBooks Desktop 2019 and later versions use dynamic ports that are specifically assigned during installation to provide QB exclusive use of a particular port. Hence, if you use any of these versions, you need to include the dynamic port number in the following manner –
- To get the Dynamic Port Number according to your QBDT version, go through these steps –
- Enter “QuickBooks Database Server Manager” in the Windows search panel of the Start tab, then access the QB Database Server Manager utility.
- Now, access the Port Monitor tab, locate your QuickBooks Desktop version, and make a note of the Port Number, which will be added to the port exceptions list.
Note: If you are using QBDT 2019 and later versions, you can edit the assigned port number by selecting the Renew option. If you renew the port number for your QB version, select Scan Now from the Scan Folders tab to reset Windows firewall permissions.
- Enter the port number in the port exceptions list, then select Next, click Allow the Connection, and hit Next again.
- Ensure all profiles are checkmarked (if prompted), then select Next and create a new rule named “QBPorts(year).”
- Once done, hit Finish, and your port exception rule will be created.
- Lastly, implement the same steps above (see steps 1 to 8) to create Outbound Rules, but ensure that you select Outbound Rules instead of Inbound Rules in Step 2.
Once new exception rules are successfully added for QB, access the app in a multi-user mode or over the network from the host PC. Access the company file and check the status of the error. If you still experience “QuickBooks error 6138, 1005,” create firewall exceptions for QB executable (.exe) files in the next section.
Add Firewall Exceptions for QB Executable Files
Executable files (.exe) are used by QuickBooks to perform different tasks and functions. Hence, you need to create exceptions for these QB files to remove firewall blockages with the following steps –
- Search for “Windows Firewall” in the Windows search bar, then open the utility and go to the Advanced Settings menu.
- Right-click Inbound Rules, then click the New Rule option and hit Program.
- Hit Next and select This Program Path, then click Browse and select an executable file from the list given below –
- AutoBackupExe.exe
- Dbmlsync.exe
- DBManagerExe.exe
- FileManagement.exe
- FileMovementExe.exe
- IntuitSyncManager.exe
- QBCFMonitorService.exe
- QBDBMgr.exe
- QBDBMgrN.exe
- QBGDSPlugin.exe
- QBLaunch.exe
- QBServerUtilityMgr.exe
- QBW32.exe
- QuickBooksMessaging.exe
- Hit Next, select Allow the Connection, then click Next again and ensure that all the profiles are marked (if required).
- Further, select Next, then create an exception rule named “QBFirewallException(name.exe).”
- Lastly, follow the same steps given above (see steps 1 to 5) to create Outbound Rules in Windows Firewall. While creating outbound rules for QB executable files, remember to select Outbound Rules instead of Inbound Rules in step 2.
Once done, open QuickBooks Desktop in multi-user mode and check if the blockages and restrictions are eliminated. Then, access the company file and check if the error code is eliminated. In case the error still appears, edit the antivirus settings in the next section to ensure that QB has general permissions.
Step 3 – Review the Antivirus Settings
If you configured your Windows firewall but are still having issues while opening the company file in QB, you need to review your antivirus settings. This step will ensure that QuickBooks has general permissions and is running without any obstructions from the antivirus program. The troubleshooting steps may vary depending on your antivirus software; hence, perform the specific steps for your particular antivirus software by following their guidelines.
Once the Windows firewall and antivirus app are configured, rerun QuickBooks and access the company file to ensure that the error is addressed.
Conclusion
QuickBooks error 6138 1005 can be easily eliminated by following the comprehensive guide given above. However, if these solutions seem ineffective in fixing the company file access issues or you are stuck in the process, you can call our team of QB professionals at 1-855-856-0042 to get immediate help with the error.
FAQs
Why does QuickBooks error 6138 1005 arise?
QuickBooks error 6138 1005 is a common company file access error that can arise due to the following reasons –
1. The company file might be damaged or stored in a corrupted file folder.
2. Your QuickBooks might be incorrectly installed on the PC.
3. The current QB Desktop version might be old or lack the latest updates.
4. Windows firewall might be configured to block QuickBooks, leading to file access issues.
5. There are inadequate file access permissions for accessing or sharing the company file folder in QB.
6. Essential files, like the .ND and .TLG files are not running correctly, and they might be broken or damaged.
How to troubleshoot QuickBooks error 6138 1005?
QB error code 6138 1005 can be easily eliminated by implementing the steps given below –
1. Run the QuickBooks File Doctor tool to fix company file and network issues in QB.
2. Update QuickBooks Desktop to the latest version.
3. Rename the Network Data and Transaction Log files to fix the file damage issues.
4. Repair QuickBooks Desktop with the QB Tool Hub utilities.
5. Copy the file to a new folder or location on the desktop to address issues with the original folder.
6. Run the ADR tool to recover lost company files in case the company file damage isn’t resolved with the QB File Doctor.
How can I run the QuickBooks File Doctor Tool to fix company file access issues?
You can resolve the company file access issues by using the QB File Doctor tool in the following manner –
1. Open QB Tool Hub, access the Company File Issues tab, and click the Run QuickBooks File Doctor option.
2. Select the company file you want to repair from the drop-down menu or select Browse and Search to find the company file and initiate the repair process.
3. Select Check your file and Network, hit Continue, then enter your admin password and hit Next.
4. Once the tool stops running, reopen QuickBooks to access the company file and check if the issues are rectified.
Can restoring a company file backup help QuickBooks error 6138 1005?
Yes, restoring the company file backup can fix the file access issues in QB. This is an effective solution when the original company file is damaged, and the issues aren’t fixed even after running the QB File Doctor tool. You can successfully restore a company file backup from the QB File menu.
Erica Watson is writing about accounting and bookkeeping for over 7+ years, making even the difficult technical topics easy to understand. She is skilled at creating content about popular accounting and tax softwares such as QuickBooks, Sage, Xero, Quicken, etc. Erica’s knowledge of such softwares allows her to create articles and guides that are both informative and easy to follow. Her writing builds trust with readers, thanks to her ability to explain things clearly while showing a real understanding of the industry.