MariaDB [db_name]> SELECT * FROM tabDoctype
; ERROR 1146 (42S02): Table db_name.tabDoctype’ doesn’t exist
if I Open mariadb and check for the database and table, it is there
“How do I solve this? The DocTypes I created in my custom app are not appearing in the folder.”
When you are creating new Doctype or any kinds of Customization in existing dictype make sure Developer mode is on .
You can use this command to turn on developer_mode
bench --site site_name set-config -g developer_mode 1
Developer mode is already on
rahib
March 13, 2025, 9:25am
4
It’s DocType
and not Doctype
.
Yes, but I am still not able to find the doctype folder in custom application’s folder.
if you can share some screenshots that will be better for us to understand the issue
Make sure that you execute the SQL query in the right path. Go to:
cd <bench_name>
bench mariadb
Then, run the following query to retrieve data from the DocType table:
SELECT * FROM `tabDocType`;
arun99
March 25, 2025, 6:40am
9
I think MariaDB isn’t recognizing your table, even though it exists. Here’s how you can fix it:
Check Case Sensitivity – On Linux, table names are case-sensitive. Run:
SHOW TABLES;
Ensure you’re using the exact table name.
Verify Database Selection – Run:
SELECT DATABASE();
If needed, switch to the correct one:
USE db_name;
Confirm Table Exists – Run:
SHOW TABLES LIKE ‘tabDoctype’;
If it doesn’t appear, check for typos.
Check for Corruption – Run:
CHECK TABLE tabDoctype;
If corrupted, try:
REPAIR TABLE tabDoctype;
``` (For MyISAM only)
If the table is InnoDB and corrupted, and a simple repair won’t work. You can use Stellar Repair for MySQL to recover the table and its data.
Restart MariaDB – Sometimes, a restart helps:
sudo systemctl restart mariadb
If you’re using Frappe/ERPNext, try:
bench migrate && bench clear-cache