The following steps restore a backup company file will help you fix the error:
First, you need to open QuickBooks Desktop.
Go to the Help menu and then select Open or Restore Company.
Click Restore a backup copy and then Next.
Search for the backup company file having the .qbb extension.
Choose a location where you want to save your restored company file.
Click Open and then Save.
If any message pops up about overwriting of data, choose the most suitable option.
You are ready to work from the new company file.
Connect with the QuickBooks technical support team by calling us on our helpline 1800-579-9430 if you still have any doubts about QuickBooks error 6150.