Closed mohsinalimat closed 2 years ago
Can't do much without tracebacks for patch failure. can you share full tracebacks?
log of Executing erpnext.patches.v12_0.add_eway_bill_in_delivery_note
Migrating site1.local
Executing erpnext.patches.v12_0.add_eway_bill_in_delivery_note in site1.local (_1234567890)
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 104, in
Only Options allowed for Data field are:
You've added "Issued By" in the option of some custom field or maybe it was added before this validation was put in place.
Removing that from "Option" should fix it.
Old version
ERPNext: v12.16.2 (version-12)
Frappe Framework: v12.13.0 (version-12)
and migrate to v13 latest above error comes.
Old version
ERPNext: v12.16.2 (version-12)
Frappe Framework: v12.13.0 (version-12)
and migrate to v13 latest above error comes.
@ankush please see this message.
I saw, check my previous message. You'll most likely have to find which fields have "Issued By" set as option (can be found using filters). Then remove that option.
There was a patch added to fix this exact same thing.
https://github.com/frappe/erpnext/pull/27200
Maybe that's already executed on your site or maybe it needs to be reordered.
You've added "Issued By" in the option of some custom field or maybe it was added before this validation was put in place.
Removing that from "Option" should fix it.
I don't know how to solve this.
Can you please guide me in video or screenshots or other way?
Potential solution:
https://github.com/frappe/erpnext/pull/27200
The patch for custom field option correction seems to be executing in an incorrect order. This patch should be higher up execution order (near start of v13 patches)
Mostly just reordering the patch execution and re-executing it should work.
I don't know how to solve this.
Can you please guide me in video or screenshots or another way?
go to Custom Field list and find which Data
field has Option
equal to Issued By
. You can find them with filters.
Alternatively if you can execute the patch manually, then execute the patch I linked above.
I don't know how to solve this.
Can you please guide me in video or screenshots or another way?
go to Custom Field list and find which
Data
field hasOption
equal toIssued By
. You can find them with filters.Alternatively if you can execute the patch manually, then execute the patch I linked above.
Go to delivery note > customize form and erase the "Option" value. Link fields can have options, data fields can't.
Go to delivery note > customize form and erase the "Option" value. Link fields can have options, data fields can't.
Now working perfectly.
Thanks @ankush You are a genius.
After upgrading from v12 to v13 the below error comes while
bench --site test.site migrate --skip-failing
.Migrating test.site Executing erpnext.patches.v12_0.add_eway_bill_in_delivery_note in test.site (_1234567890) Failed to execute patch Executing erpnext.patches.v13_0.check_is_income_tax_component #22-06-2020 in test.site (_1234567890) Failed to execute patch Executing erpnext.patches.v13_0.setup_fields_for_80g_certificate_and_donation in test.site (_1234567890) Failed to execute patch Executing erpnext.patches.v12_0.add_gst_category_in_delivery_note in test.site (_1234567890) Failed to execute patch