There is a variable insert into table QQcategory_type and changed it to category_type very thing started to function normally. I checked the categories and the table got inserted with the data. Now the category tree map also works. Thanks for th fix and help Don.