Error 'Comment Type cannot be "This is a dummy record". at the end of the setup wizard

Dear Sirs,

I cannot complete the ERPNext setup wizard.
I get the following Message at the end of the wizard (after I completed all steps):

Comment Type cannot be "This is a dummy record". It should be one of "",
 "Comment", "Like", "Info", "Label", "Workflow", "Created", "Updated", 
"Submitted", "Cancelled", "Deleted", "Assigned", "Assignment Completed",
 "Attachment", "Attachment Removed", "Shared", "Unshared" 

There were errors.

This is the console output of the frappe-bench in the same time:

08:01:05 web.1                | 127.0.0.1 - - [10/Feb/2016 08:01:05] "POST / HTTP/1.1" 403 -
08:01:06 web.1                | 127.0.0.1 - - [10/Feb/2016 08:01:06] "POST / HTTP/1.1" 200 -
08:01:06 web.1                | 127.0.0.1 - - [10/Feb/2016 08:01:06] "GET / HTTP/1.1" 200 -
08:01:06 web.1                | 127.0.0.1 - - [10/Feb/2016 08:01:06] "GET /website_script.js HTTP/1.1" 200 -
08:01:06 web.1                | 127.0.0.1 - - [10/Feb/2016 08:01:06] "GET /website_theme.css HTTP/1.1" 200 -
08:01:23 web.1                | 127.0.0.1 - - [10/Feb/2016 08:01:23] "POST / HTTP/1.1" 200 -
08:01:24 web.1                | 127.0.0.1 - - [10/Feb/2016 08:01:24] "GET /desk HTTP/1.1" 200 -
08:01:24 web.1                | 127.0.0.1 - - [10/Feb/2016 08:01:24] "GET /api/method/frappe.async.get_user_info HTTP/1.1" 200 -
08:01:24 web.1                | 127.0.0.1 - - [10/Feb/2016 08:01:24] "POST / HTTP/1.1" 200 -
08:01:25 web.1                | 127.0.0.1 - - [10/Feb/2016 08:01:25] "POST / HTTP/1.1" 200 -
08:01:25 web.1                | 127.0.0.1 - - [10/Feb/2016 08:01:25] "POST / HTTP/1.1" 200 -
08:01:29 web.1                | 127.0.0.1 - - [10/Feb/2016 08:01:29] "POST / HTTP/1.1" 200 -
08:01:29 web.1                | 127.0.0.1 - - [10/Feb/2016 08:01:29] "POST / HTTP/1.1" 200 -
08:01:29 web.1                | 127.0.0.1 - - [10/Feb/2016 08:01:29] "POST / HTTP/1.1" 200 -
08:01:32 web.1                | 127.0.0.1 - - [10/Feb/2016 08:01:32] "GET /?doctype=Currency&name=EUR&cmd=frappe.desk.form.load.getdoc&_=1455087684736 HTTP/1.1" 200 -
08:01:50 web.1                | 127.0.0.1 - - [10/Feb/2016 08:01:50] "POST / HTTP/1.1" 200 -
08:01:55 web.1                | 127.0.0.1 - - [10/Feb/2016 08:01:55] "POST / HTTP/1.1" 200 -
08:02:25 web.1                | 127.0.0.1 - - [10/Feb/2016 08:02:25] "POST / HTTP/1.1" 200 -
08:02:55 web.1                | 127.0.0.1 - - [10/Feb/2016 08:02:55] "POST / HTTP/1.1" 200 -
08:03:07 web.1                | 
08:03:07 web.1                | 2016-02-10 08:03:07,689 New Exception collected with id: 2016-02-10 08:03:07.667015-127.0.0.1-ab1 
08:03:07 web.1                |  site: sam.local
08:03:07 web.1                |  form: {'args': u'{"language":"english","country":"Germany","timezone":"Europe/Berlin","currency":"EUR","first_name":"Hagen","last_name":"Siegel","email":"hagen.siegel@the-rainbird.de","password":"erpnext","company_name":"Firma Hagen Siegel","company_abbr":"HS","company_tagline":"IT Dienstleistungen","bank_account":"Volksbank Kraichgau","chart_of_accounts":"Standard","fy_start_date":"2016-01-01","fy_end_date":"2016-12-31","user_sales_1":1,"user_purchaser_1":1,"user_accountant_1":1,"user_sales_2":1,"user_purchaser_2":1,"user_accountant_2":1,"user_sales_3":1,"user_purchaser_3":1,"user_accountant_3":1,"user_sales_4":1,"user_purchaser_4":1,"user_accountant_4":1,"tax_1":"19%","tax_rate_1":19,"customer_1":"Labor Limbach","supplier_1":"1 und 1","item_1":"Softwareentwicklung nach Aufwand","item_group_1":"Products","item_uom_1":"Hour","is_sales_item_1":1,"item_price_1":120,"item_group_2":"Products","item_uom_2":"Unit","is_sales_item_2":1,"item_group_3":"Products","item_uom_3":"Unit","is_sales_item_3":1,"item_group_4":"Products","item_uom_4":"Unit","is_sales_item_4":1,"item_group_5":"Products","item_uom_5":"Unit","is_sales_item_5":1,"add_sample_data":1}',
08:03:07 web.1                |  'cmd': u'frappe.desk.page.setup_wizard.setup_wizard.setup_complete'}
08:03:07 web.1                | 
08:03:07 web.1                | Traceback (innermost last):
08:03:07 web.1                |   File "/home/rainbird/frappe-bench/apps/frappe/frappe/app.py", line 69, in application
08:03:07 web.1                |     response = frappe.handler.handle()
08:03:07 web.1                |   File "/home/rainbird/frappe-bench/apps/frappe/frappe/handler.py", line 20, in handle
08:03:07 web.1                |     execute_cmd(cmd)
08:03:07 web.1                |   File "/home/rainbird/frappe-bench/apps/frappe/frappe/handler.py", line 37, in execute_cmd
08:03:07 web.1                |     ret = frappe.call(method, **frappe.form_dict)
08:03:07 web.1                |   File "/home/rainbird/frappe-bench/apps/frappe/frappe/__init__.py", line 801, in call
08:03:07 web.1                |     return fn(*args, **newargs)
08:03:07 web.1                |   File "/home/rainbird/frappe-bench/apps/frappe/frappe/desk/page/setup_wizard/setup_wizard.py", line 28, in setup_complete
08:03:07 web.1                |     frappe.get_attr(method)(args)
08:03:07 web.1                |   File "/home/rainbird/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/setup_wizard.py", line 48, in setup_complete
08:03:07 web.1                |     make_sample_data()
08:03:07 web.1                |   File "/home/rainbird/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/sample_data.py", line 22, in make_sample_data
08:03:07 web.1                |     make_opportunity(selling_items, customer)
08:03:07 web.1                |   File "/home/rainbird/frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/sample_data.py", line 48, in make_opportunity
08:03:07 web.1                |     b.add_comment("This is a dummy record")
08:03:07 web.1                |   File "/home/rainbird/frappe-bench/apps/frappe/frappe/model/document.py", line 788, in add_comment
08:03:07 web.1                |     }).insert(ignore_permissions=True)
08:03:07 web.1                |   File "/home/rainbird/frappe-bench/apps/frappe/frappe/model/document.py", line 194, in insert
08:03:07 web.1                |     self._validate()
08:03:07 web.1                |   File "/home/rainbird/frappe-bench/apps/frappe/frappe/model/document.py", line 339, in _validate
08:03:07 web.1                |     self._validate_selects()
08:03:07 web.1                |   File "/home/rainbird/frappe-bench/apps/frappe/frappe/model/base_document.py", line 452, in _validate_selects
08:03:07 web.1                |     value, comma_options))
08:03:07 web.1                |   File "/home/rainbird/frappe-bench/apps/frappe/frappe/__init__.py", line 265, in throw
08:03:07 web.1                |     msgprint(msg, raise_exception=exc)
08:03:07 web.1                |   File "/home/rainbird/frappe-bench/apps/frappe/frappe/__init__.py", line 258, in msgprint
08:03:07 web.1                |     _raise_exception()
08:03:07 web.1                |   File "/home/rainbird/frappe-bench/apps/frappe/frappe/__init__.py", line 243, in _raise_exception
08:03:07 web.1                |     raise raise_exception, encode(msg)
08:03:07 web.1                |  ValidationError:  Comment Type cannot be "This is a dummy record". It should be one of "", "Comment", "Like", "Info", "Label", "Workflow", "Created", "Updated", "Submitted", "Cancelled", "Deleted", "Assigned", "Assignment Completed", "Attachment", "Attachment Removed", "Shared", "Unshared"
08:03:07 web.1                | 
08:03:07 web.1                | --------------
08:03:07 web.1                | 127.0.0.1 - - [10/Feb/2016 08:03:07] "POST / HTTP/1.1" 417 -
08:03:25 web.1                | 127.0.0.1 - - [10/Feb/2016 08:03:25] "POST / HTTP/1.1" 200 -
08:06:00 workerbeat.1         | [2016-02-10 08:06:00,833: INFO/MainProcess] Scheduler: Sending due task sync_queues (frappe.tasks.sync_queues)
08:06:00 workerbeat.1         | [2016-02-10 08:06:00,835: INFO/MainProcess] Scheduler: Sending due task scheduler (frappe.tasks.enqueue_scheduler_events)
08:06:55 web.1                | 127.0.0.1 - - [10/Feb/2016 08:06:55] "POST / HTTP/1.1" 200 -

I’m running ERPNext on Debian Jessie.
Browser is Iceweasel.
Developer mode ist enabled.

Site name: sam.local

I have already tried the following to fix this issue:

bench update
bench reinstall

But this didn’t solve the problem.

Please help me.

Best Regards,
Rainbird

reinstall the site, complete the setup wizard and uncheck the Add a few sample records on last slide, It will complete the setup but dummy records will not be created.

1 Like

Thanks! Released the fix. Can you update again?

2 Likes

It worked like a charm.

Thanks for your incredible fast support. :rocket:

Thanks makarand_b, this fix for Debian 8 (uncheck the Add a few samples records).