Trying to install demodata on new site

Hi,

I create a new site with:
bench new-site site1-demo.local

Then installed erpnext app:
bench --site site1-demo.local install-app erpnext

Then tried to install demo data with:
bench --site site1-demo.local execute erpnext.demo.demo.make

Seems some demodata has managed to get installed, but not complete… ie. ledger is empty and some other parts empty too.

What can I do to install demodata correctly?

Thanks

But getting this traceback:

Complete Setup…
Traceback (most recent call last):
File “/usr/lib/python2.7/runpy.py”, line 174, in _run_module_as_main
main”, fname, loader, pkg_name)
File “/usr/lib/python2.7/runpy.py”, line 72, in _run_code
exec code in run_globals
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 94, in
main()
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/decorators.py”, line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/commands/init.py”, line 24, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/commands/utils.py”, line 117, in execute
ret = frappe.get_attr(method)(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/demo/demo.py”, line 41, in make
simulate(domain, days)
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/demo/demo.py”, line 65, in simulate
fixed_asset.work()
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/demo/user/fixed_asset.py”, line 15, in work
asset_list = make_asset_purchase_entry()
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/demo/user/fixed_asset.py”, line 45, in make_asset_purchase_entry
pi.save()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 256, in save
return self._save(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 279, in _save
self.insert()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 218, in insert
self.run_before_save_methods()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 859, in run_before_save_methods
self.run_method(“validate”)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 755, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 1024, in composer
return composed(self, method, *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 1007, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 749, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py”, line 72, in validate
self.validate_fixed_asset()
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/controllers/accounts_controller.py”, line 618, in validate_fixed_asset
.format(d.idx, d.asset, asset.status))
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 323, in throw
msgprint(msg, raise_exception=exc, title=title, indicator=‘red’)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 309, in msgprint
_raise_exception()
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 282, in _raise_exception
raise raise_exception(encode(msg))
frappe.exceptions.ValidationError: Row #1: Asset Chair 2 is already Fully Depreciated

Stuck on same query, getting same error while installing demo data…Waiting for an expert suggestion.

1 Like

Maybe the way to test and search for examples of a working company is is using the ERPNext online site?

Have you tried it? I havent yet…

Anyway, seems some data gets installed… same on your failed demodata install?

As fas as my knowledge the demo is not supported anymore.

You can try upload demo data yourself.

Hope this helps.

1 Like

Thanks it points me to somewhere! so… if I can upload the demodata myself? where can I get it? :face_with_monocle:

Thanks,

There is an Import data menu you can choose the DocType and can be export as well as import.

Let’s give it a try.

Mmm, I might not be explaining right.

I know the option “import data”, I have imported i.e. providers time ago. But I dont need to import my data. I would like to import a complete set of “demodata” with chart of accounts, sales, purchases, manufacture, etc etc… so it will be easy to understand how ERPnext works.

Do I explain right? we need to have a working site/company with demodata to show or learn from it. That why we tried to run bench --site site1-demo.local execute erpnext.demo.demo.make, that will just populate data in a demo company with monetary movements, configurations, taxes, purchases, etc… already correctly done.

Thats the idea :expressionless:

So… there no way to add demodata? (or its just not useful for the most common users) any idea how to get it?

Thanks :innocent:

I’m getting same error when trying to install demo data.

Thanks

1 Like

Anyway… after I came to that error, some data managed to get in the database, at least on mine install, i.e. providers, taxes templates, addresses, cost centers have data… but no sales/purchases or balance sheets with data… what about yours?

I would like to see this demo data complete to understand better the relations of each documents in a working company, i.e. purchases and its taxes shown on a report or CoA with values…

"
I would like to see this demo data complete to understand better the relations of each documents in a working company, i.e. purchases and its taxes shown on a report or CoA with values…
"
Agreed. This may help for ideas insight etc ‘bench run-tests’ to make local instance like demo.erpnext.com?

1 Like