Knowledgebase: TroubleShooting
[QODBC-Desktop] QB Begin Session Failed. Error = 80040408, Could not start QuickBooks
Posted by Rajendra Dewani (QODBC Support) on 26 December 2013 09:43 AM

Problem Description

Begin Session Failed. S0000 00000 [QODBC] QB Begin Session Failed. Error = 80040408, Could not start QuickBooks.

Begin Session Failed. S0000 00000 [QODBC] QB Begin Session Failed. Error = 80040408, Could not start Reckon Accounts.

 

Solutions

There can be multiple causes of the issue "Could not start QuickBooks." The common cause is QuickBooks, or your application is running in elevated user mode, or QuickBooks, which runs in two Windows user sessions.

If you use a service-based application such as ASP, ASP.NET, PHP, SQL Server, or Web Server with QODBC / QRemote - Please refer to solution number 3.

 

Solution 1:

Restart your machine. You need to restart your computer if you have recently installed or updated QuickBooks or installed QODBC.

 

Solution 2:

Your QuickBooks file should be accessible and not in the restricted folder.

Please start the QuickBooks application and log in to your QuickBooks company file as a QuickBooks Admin user. Try connecting to QuickBooks Data using your application.

If you still face the issue, please ensure that your QuickBooks is not running as "Run as Administrator."


Check "QBW32.EXE" using Task Manager.

Enable columns

//support.flexquarters.com/esupport/newimages/8004040a/QuickBooks-TaskManager-01.png

Verify "QBW32.EXE" should not be Elevated - Yes.  

"QBW32.EXE" Elevated should be "No."


//support.flexquarters.com/esupport/newimages/8004040a/QuickBooks-TaskManager-02.png

You can verify it by right-clicking the QuickBooks shortcut, going to "Properties," & navigating to the "Compatibility" tab & make sure that the "Run this program as an administrator" option is unchecked. If this option is enabled, then please disable it & apply the changes.


Click "Change settings for all users" and verify that "Run as Administrator" is not selected.

Right-click on the QuickBooks application shortcut from the desktop

http://support.flexquarters.com/esupport/newimages/2018-10-31-17_06_25-QuickBooks.png

http://support.flexquarters.com/esupport/newimages/2018-10-31-17_06_26-QuickBooks-Properties.png

Make sure "Run as Administrator" or "Run this program as an Administrator" is unchecked.

http://support.flexquarters.com/esupport/newimages/2018-10-31-17_03_18-QuickBooks.pngClick Change settings for all users.

Ensure "Run as Administrator" or "Run this program as an Administrator" is unchecked.

http://support.flexquarters.com/esupport/newimages/2018-10-31-17_03_51-QuickBooks.pngPlease navigate to the QuickBooks folder under program files.

Right-click on QBW32.exe and other QuickBooks applications that start with QBW32

http://support.flexquarters.com/esupport/newimages/2018-10-31-16_54_22-QuickBooks.png

Ensure "Run as Administrator" or "Run this program as an Administrator" is unchecked.

http://support.flexquarters.com/esupport/newimages/2018-10-31-16_54_52-QuickBooks.png

Click Change settings for all users.

 

Ensure "Run as Administrator" or "Run this program as an Administrator" is unchecked.

 

http://support.flexquarters.com/esupport/newimages/2018-10-31-16_54_58-QuickBooks.png

 

Please restart the Close QuickBooks application and restart your machine.

After restarting, please start QuickBooks and log in to your QuickBooks company file as a QuickBooks Admin user.

Optional - You may switch to single-user mode.

Try connecting with your application.

 

 

Solution 3:

 

If you are using a Web Application, SQL Server, IIS, PHP, or Service application, Windows Scheduler, or PowerShell from a scheduler, please use QRemote DSN

  • QODBC Desktop - "QuickBooks Data QRemote" or "QuickBooks Data 64-Bit QRemote."
  • QODBC Online - "QuickBooks Online Data QRemote" or "QuickBooks Online Data 64-Bit."
  • QODBC POS - "QuickBooks POS Data QRemote" or "QuickBooks POS Data 64-Bit."

If you still face the issue, please try connecting to QuickBooks using QODBC Support Wizard. 

 

 

Solution 4:

QODBC and QuickBooks Auto Login:

If you are trying to run QODBC/QuickBooks in auto-login? And is your machine having Terminal serviced/remote desktop enabled? i.e., multiple users logging into your machine using the Remote desktop connection. Then, I would like to inform you that QuickBooks SDK has a known issue with this type of Environment setup and cannot start QuickBooks in the background. (If more than one user is logged into the machine and QBW32.exe runs on more than one user account). 


Workaround for the above issue.

1) Ensure you unselect the "Keep QuickBooks running for quick start-up" option under QuickBooks -- Edit Preferences -- General.
Close all other QuickBooks instances of all other users and then try. (Please verify no instances are running of QBW32 under task manager --processes -- view all user processes)

Also, please verify the company file path on QODBC and QuickBooks. These two paths should be the same. The QODBC company file path can be found via the QODBC setup screen -> General tab.

You can find the QuickBooks company file via QuickBooks UI. Press the F2 key, and you will see the file information.

 

You can also use the QODBC Support Wizard on the QuickBooks machine and check the elevated status of QuickBooks. The Elevated check should be green.


Please refer to How to use QODBC Support Wizard
http://qodbc.com/links/2981

Either you can verify it by the below steps. 
Please right-click on Taskbar and open Task Manager.
Navigate to the Details tab.
1) Right-click on the first row and click on 'Select Columns'.
2) Check the 'Elevated' and 'Platform' columns.
3)Verify the status of QBW32.EXE

If QBW32.EXE elevated status as 'Yes,' you must run the QuickBooks UI under the non-elevated user context.

Please refer to How to remove elevated mode from QuickBooks
[Section - Solution 2]


Start QuickBooks and log in to the QuickBooks company file as QuickBooks user "Admin".
Connect to QuickBooks Data using the QODBC 32-bit Test Tool.
Disconnect.

Log off from the QuickBooks company file. Keep the QuickBooks application running.
Connect to QuickBooks Data using the QODBC 32-bit Test Tool.
This should auto-login to the QuickBooks company file.
Disconnect.
This should auto-log off from the QuickBooks company file.

Close the QuickBooks application.
Connect to QuickBooks Data using the QODBC 32-bit Test Tool.
This should auto-login to the QuickBooks company file.
Disconnect.
This should auto-log off from the QuickBooks company file.

 

If you are able to use auto-login when using the QODBC Test Tool but not with your application, then your application might not be running in normal mode. It might run in "Run as Administrator" - i.e., Elevated Mode. Start your application in normal mode and try again.

 

Another possibility is your application is running as a "Service" or in a different user profile. In this case, you will have to use "QRemote" DSN. Please connect to "QuickBooks Data QRemote" or "QuickBooks Data 64-Bit QRemote". Please ensure the QRemote Server runs on the same Windows instance/profile where QuickBooks is running, and "QRemote Server" should not be in "Elevated" mode.

 

Solution 5:

You can select "Use the Company file that's open in QuickBooks" and test again.

 

OR

2) Keep QuickBooks running (No need to login to the company file; keep the QuickBooks window open) and try connecting

OR

3) For QODBC 13.0.0.291 and upwards, under the Advanced tab, enable "Force Start QuickBooks," Make sure you unselect the option of "Keep QuickBooks running for quick start-up" under QuickBooks -- Edit Preferences --, General

If QuickBooks is already open and you are getting this error, please ensure you are not running Your Application in an elevated user context, i.e., you should not run it as "Run as administrator."
 

Additional Information:

20140321.113817 I 3404 RequestProcessor Connection opened by the app named 'FLEXquarters QODBC.'
20140321.113817 I 3404 CertVerifier The Authenticode signature validated OK.
20140321.113817 I 3404 RequestProcessor OS: Microsoft Windows Server 2008 R2 Datacenter Edition Service Pack 1 (build 7601), 64-bit
20140321.113817 I 3404 RequestProcessor Current Process is elevated
20140321.113817 I 3404 RequestProcessor Current User is in AdminGroup
20140321.113817 I 3404 RequestProcessor Current Process is run as Admin
20140321.113817 I 3404 RequestProcessor Current Process Integrity Level: 3000
20140321.113817 I 3404 RequestProcessor Previous instance of QB is going down..! Wait and retry to get a new instance.
20140321.113818 I 3404 RequestProcessor Previous instance of QB is going down..! Wait and retry to get a new instance.
20140321.113818 I 3404 RequestProcessor Previous instance of QB is going down..! Wait and retry to get a new instance.
20140321.113819 I 3404 RequestProcessor Previous instance of QB is going down..! Wait and retry to get a new instance.
20140321.113819 I 3404 RequestProcessor Previous instance of QB is going down..! Wait and retry to get a new instance.
20140321.113820 E 3404 RequestProcessor Could not find or create an instance of QuickBooks using InstanceFinder
20140321.113820 I 3404 RequestProcessor Connection closed by the app named 'FLEXquarters QODBC.'
20140321.113820 I 3404 RequestProcessor ========== Ended Connection ==========

Solution 6:

This shows that your app is running under elevated permission. Try fixing the permissions and see if that resolves the issue. QB and the app must be running at the same level, either as the standard user or using Run As Admin. They cannot be mixed.

This also happens when more than one user is logged in (and has QBW32.exe running in the user process) to the machine using (a remote desktop connection) and trying to run QuickBooks with auto Login. QuickBooks SDK shall not be able to find the instance in such a case. A workaround is to keep QuickBooks running. No need to log into the machine. Just keep the window open.

Refer:

https://intuitpartnerplatform.lc.intuit.com/questions/834524-failure-to-connect-to-qb-13-after-update-could-not-find-or-create-an-instance-of-quickbooks-using-instancefinder

https://intuitpartnerplatform.lc.intuit.com/questions/805619-getting-error-2147220472-could-not-start-quickbooks

http://stackoverflow.com/questions/20905010/getting-error-2147220472-could-not-start-quickbooks

https://intuitpartnerplatform.lc.intuit.com/questions/817461-could-not-find-or-create-an-instance-of-quickbooks-using-instancefinder

 

Keywords: 80040408, autologin

 

 

(2 vote(s))
Helpful
Not helpful

Comments (6)
Eddie Falkenburg
29 May 2014 05:41 PM
Will there soon be a fix for multi-user environments? We are able to get around the problem with the suggested workarounds, but it presents more failure points that we would like to remove eventually.
Jack
07 July 2014 12:57 PM
Hi Eddie,

I would like to inform you that this is known issue with QuickBooks SDK (In Multiuser Environment setup and cannot start the QuickBooks in background.) not with QODBC.

I would like to inform you that recently QuickBooks has fixed this issue on QuickBooks 2014 R6.

Fixed an issue that caused QuickBooks to close when duplicating a transaction after a menu item is added through the SDK.

Fixed an issue that caused the error “Could not find or create an instance of QuickBooks using InstanceFinder”, when connecting to QuickBooks while it is not running in UI.

Please refer below mentioned link for more information:
http://support.quickbooks.intuit.com/support/articles/inf24723

So you may try QuickBooks 2014 R6 or above version.
Patrick
29 September 2015 07:21 PM
We are still running into this problem on QB Manufacturing and Wholesale 2015 R6P. Is it possible that this has not been addressed in this version and build?
Jack
30 September 2015 09:56 AM
Hi Patrick,

To know whether issue resolved in QuickBooks or not. You should refer release note of QuickBooks.
Al Buchholz
13 July 2016 05:40 PM
Jack

Please provide a link or navigation directions to the release notes that you are referring to.

Thank you.
Jack
13 July 2016 06:22 PM
Hi Al,

You need to get in touch with Intuit for QuickBooks release note.
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please complete the captcha below (we use this to prevent automated submissions).