ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

[Release] ERPNext Version 12


You need to run that from the frappe-bench/apps/erpnext folder and you have to replace in your command line “ with " and ” with ".

plus you need to add a star (the multiplication key *) after heads/ and upstream/

If that doesn’t go through run the same command with git config --replace-all …

Hope this helps.




Thanks for the reply
I tried as mentioned…but no results
this is what i get

tried with git config --replace-all
no results
thanks and regards


There won’t be any results in that screen. Now go back to frappe-bench folder and run

bench switch-to-branch version-12 --upgrade
bench update --patch

And if the DocType Item Manufacturer not found shows up:

bench run-patch erpnext.patches.v12_0.make_item_manufacturer

if you have multiple sites you will have to do that for each. The default site will go through when you run it the first time, but for the others you will have to use the command

bench --site sitename run-patch erpnext.patches.v12_0.make_item_manufacturer

Hope that helps




Thanks a lot for the reply
Actually i tried going back to frappe-bench folder and i couldnt
I Tried cd frappe-bench and it didnt work
i know iam asking a very silly question …but please help me
how do i go back to frappe-bench folder
or should i reboot the system to go to frappe-bench folder
thanks and regards



Type cd …/… from the ERPNext folder.

Or cd ~/frappe-bench from any other folder.




would you mind to specify how much RAM was not enough and which amount you have increased that to?


I was using v11 on GCP

  • g1-small Shared-core machine type with 0.5 vCPU, 1.70 GB of memory, backed by a shared physical core.

Now I upgraded it for v12 to:

  • n1-standard-1 Standard machine type with 1 vCPU and 3.75 GB of memory.


I cannot speak to the experience of others but after using it for nearly a day, V12 seems way more stable on release day than V11 was on release day. I know there are a few bugs here and there that need tidying up, but this is by far the most stable release i have experienced. And i love the new interface (I was initially skeptical about the changes when they were first announced). Some of the changes are indeed welcome (although there’s a bit of learning needed in order to understand the changes and additions).

Kudos to the entire Frappe team, developers and contributors for this amazing leap forward. Thank you for the work you do. :clap::clap::clap::clap::clap:


did you implement a K8 or installed/upgraded it?


My upgrade attempts failed as I was having mysql permission issues patching Item_Manufacture. I could not figure out why mysql was throwing 1045 permission denied error and all my attempts to fix it directly failed, so I set up a fresh instance and restored backup of my sites and it’s working fine.


Just to clear the process:

  • on which version was the backup taken? v11.x or version-11 ?
  • is it guaranteed that a verison-11 backup is restored onto a version-12 setup?


No chance for soem people. We are stuck by one of the patches:

pymysql.err.InternalError: (1054, “Unknown column ‘pricing_rules’ in ‘field list’”)

Since the Easy install prepares a version-12 system, we are not able to prepare a version-11 system and thus we are at the hands of developers. Not that we may do a manual install but I don’t think that will solve the version-12 upgrade problem specific to that patch.



My Backup was V11 and it restored to version 12 on most of my sites. I however had an issue with one site as i was getting this error:frappe.exceptions.DoesNotExistError: DocType Item Manufacturer not found. This was eventually fixed with bench --site sitename run-patch erpnext.patches.v12_0.make_item_manufacturer . My instance has been running smoothly since then. I haven’t really faced any issue since the move to V12.


I get this error when i do a v12 upgrade

Any pointers on this


Issue Solved by the following command
cd ~/.bench
git pull
cd ~/frappe-bench
bench switch-to-branch version-12 --upgrade
bench update --patch
Thanks and regards


After Update
This is what i get

clicking login doesnt bring up the login dialog box
the browser (chrome) console error is this



bench setup requirements
bench build
bench restart


Thanks Jignesh_shah for your tips
i additionally ran the following
cd ~/frappe-bench
sudo npm install -g yarn
bench update --requirements
bench setup socketio
bench build
bench update
Up and running V12
My heart felt thanks to JayRam for helping me out when i was really stuck
Thanks a lot everybody

Update problem - yarn install in VM virtual image for V12 version
[Solved] bench.utils.CommandFailedError: yarn install

Unable to upgrade to ERPNEXT 12 Pls help

Traceback (most recent call last):
File “/usr/lib/python3.5/”, line 193, in _run_module_as_main
main”, mod_spec)
File “/usr/lib/python3.5/”, line 85, in _run_code
exec(code, run_globals)
File “/home/netmanthan/frappe-bench/apps/frappe/frappe/utils/”, line 97, in
File “/home/netmanthan/frappe-bench/apps/frappe/frappe/utils/”, line 18, in main
File “/home/netmanthan/frappe-bench/env/lib/python3.5/site-packages/click/”, line 764, in call
return self.main(*args, **kwargs)
File “/home/netmanthan/frappe-bench/env/lib/python3.5/site-packages/click/”, line 717, in main
rv = self.invoke(ctx)
File “/home/netmanthan/frappe-bench/env/lib/python3.5/site-packages/click/”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/netmanthan/frappe-bench/env/lib/python3.5/site-packages/click/”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/netmanthan/frappe-bench/env/lib/python3.5/site-packages/click/”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/netmanthan/frappe-bench/env/lib/python3.5/site-packages/click/”, line 555, in invoke
return callback(*args, **kwargs)
File “/home/netmanthan/frappe-bench/env/lib/python3.5/site-packages/click/”, line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File “/home/netmanthan/frappe-bench/apps/frappe/frappe/commands/”, line 25, in _func
ret = f(frappe.dict(ctx.obj), *args, **kwargs)
File “/home/netmanthan/frappe-bench/apps/frappe/frappe/commands/”, line 233, in migrate
migrate(context.verbose, rebuild_website=rebuild_website)
File “/home/netmanthan/frappe-bench/apps/frappe/frappe/”, line 48, in migrate
File “/home/netmanthan/frappe-bench/apps/frappe/frappe/modules/”, line 29, in run_all
if not run_single(patchmodule = patch):
File “/home/netmanthan/frappe-bench/apps/frappe/frappe/modules/”, line 63, in run_single
return execute_patch(patchmodule, method, methodargs)
File “/home/netmanthan/frappe-bench/apps/frappe/frappe/modules/”, line 83, in execute_patch
frappe.get_attr(patchmodule.split()[0] + “.execute”)()
File “/home/netmanthan/frappe-bench/apps/erpnext/erpnext/patches/v12_0/”, line 10, in execute
File “/home/netmanthan/frappe-bench/apps/erpnext/erpnext/regional/india/”, line 483, in make_custom_fields
create_custom_fields(custom_fields, update=update)
File “/home/netmanthan/frappe-bench/apps/frappe/frappe/custom/doctype/custom_field/”, line 140, in create_custom_fields
create_custom_field(doctype, df, ignore_validate=ignore_validate)
File “/home/netmanthan/frappe-bench/apps/frappe/frappe/custom/doctype/custom_field/”, line 124, in create_custom_field
File “/home/netmanthan/frappe-bench/apps/frappe/frappe/model/”, line 258, in insert
File “/home/netmanthan/frappe-bench/apps/frappe/frappe/model/”, line 917, in run_post_save_methods
File “/home/netmanthan/frappe-bench/apps/frappe/frappe/model/”, line 786, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “/home/netmanthan/frappe-bench/apps/frappe/frappe/model/”, line 1055, in composer
return composed(self, method, *args, **kwargs)
File “/home/netmanthan/frappe-bench/apps/frappe/frappe/model/”, line 1038, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/netmanthan/frappe-bench/apps/frappe/frappe/model/”, line 780, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/netmanthan/frappe-bench/apps/frappe/frappe/custom/doctype/custom_field/”, line 61, in on_update
File “/home/netmanthan/frappe-bench/apps/frappe/frappe/core/doctype/doctype/”, line 562, in validate_fields_for_doctype
validate_fields(frappe.get_meta(doctype, cached=False))
File “/home/netmanthan/frappe-bench/apps/frappe/frappe/core/doctype/doctype/”, line 823, in validate_fields
check_link_table_options(meta.get(“name”), d)
File “/home/netmanthan/frappe-bench/apps/frappe/frappe/core/doctype/doctype/”, line 607, in check_link_table_options
("{0}: Options must be a valid DocType for field {1} in row {2}").format(docname, d.label, d.idx), WrongOptionsDoctypeLinkError)
File “/home/netmanthan/frappe-bench/apps/frappe/frappe/”, line 360, in throw
msgprint(msg, raise_exception=exc, title=title, indicator=‘red’)
File “/home/netmanthan/frappe-bench/apps/frappe/frappe/”, line 346, in msgprint
File “/home/netmanthan/frappe-bench/apps/frappe/frappe/”, line 315, in _raise_exception
raise raise_exception(msg)
frappe.core.doctype.doctype.doctype.WrongOptionsDoctypeLinkError: Item: Options must be a valid DocType for field Manufacturers in row 128


@netmanthan What commands have you run already? What was the last one that led you to this error?