How could fix this error in migrate frappe cloud

  1. Migrating monolithon.frappe.cloud

  2. Executing execute:frappe.reload_doc(‘core’, ‘doctype’, ‘doctype_state’, force=True) #2021-12-15 in monolithon.frappe.cloud (_5459ba00ebeb4bc5)

  3. Success: Done in 0.297s

  4. Executing execute:frappe.reload_doc(‘core’, ‘doctype’, ‘doctype’) #2022-06-21 in monolithon.frappe.cloud (_5459ba00ebeb4bc5)

  5. Success: Done in 0.912s

  6. Executing execute:frappe.reload_doc(‘custom’, ‘doctype’, ‘custom_field’) in monolithon.frappe.cloud (_5459ba00ebeb4bc5)

  7. Success: Done in 0.62s

  8. Executing frappe.patches.v14_0.save_ratings_in_fraction #23-12-2021 in monolithon.frappe.cloud (_5459ba00ebeb4bc5)

  9. Success: Done in 0.47s

  10. Executing frappe.patches.v14_0.transform_todo_schema in monolithon.frappe.cloud (_5459ba00ebeb4bc5)

  11. Success: Done in 0.442s

  12. Executing frappe.patches.v14_0.remove_post_and_post_comment in monolithon.frappe.cloud (_5459ba00ebeb4bc5)

  13. Success: Done in 0.293s

  14. Executing frappe.patches.v14_0.reset_creation_datetime in monolithon.frappe.cloud (_5459ba00ebeb4bc5)

  15. Resetting creation datetimes for DocTypes

  16. Success: Done in 0.648s

  17. Executing frappe.patches.v14_0.remove_is_first_startup in monolithon.frappe.cloud (_5459ba00ebeb4bc5)

  18. Success: Done in 0.035s

  19. Executing frappe.patches.v14_0.clear_long_pending_stale_logs in monolithon.frappe.cloud (_5459ba00ebeb4bc5)

  20. Due to large size of log tables on old sites some table cleanups never finished during daily log clean up. This patch discards such data by using “big delete” code.

  1. Clearing old Email Queue Recipient records

  2. Clearing old Scheduled Job Log records

  3. Success: Done in 3.857s

  4. Executing frappe.patches.v14_0.log_settings_migration in monolithon.frappe.cloud (_5459ba00ebeb4bc5)

  5. Success: Done in 0.754s

  6. Executing frappe.patches.v14_0.setup_likes_from_feedback in monolithon.frappe.cloud (_5459ba00ebeb4bc5)

  7. Success: Done in 0.58s

  8. Executing frappe.patches.v14_0.update_webforms in monolithon.frappe.cloud (_5459ba00ebeb4bc5)

  9. Success: Done in 0.75s

  10. Executing frappe.patches.v14_0.delete_payment_gateways in monolithon.frappe.cloud (_5459ba00ebeb4bc5)

  11. Success: Done in 0.751s

  12. Executing erpnext.patches.v14_0.change_is_subcontracted_fieldtype in monolithon.frappe.cloud (_5459ba00ebeb4bc5)

  13. Success: Done in 6.489s

  14. Executing erpnext.patches.v13_0.create_ksa_vat_custom_fields # 07-01-2022 in monolithon.frappe.cloud (_5459ba00ebeb4bc5)

  15. Success: Done in 0.114s

  16. Executing erpnext.patches.v14_0.migrate_crm_settings in monolithon.frappe.cloud (_5459ba00ebeb4bc5)

  17. Success: Done in 0.276s

  18. Executing erpnext.patches.v13_0.update_asset_quantity_field in monolithon.frappe.cloud (_5459ba00ebeb4bc5)

  19. Success: Done in 0.708s

  20. Executing erpnext.patches.v13_0.non_profit_deprecation_warning in monolithon.frappe.cloud (_5459ba00ebeb4bc5)

  21. Non Profit Domain is moved to a separate app and will be removed from ERPNext in version-14.

  22. When upgrading to ERPNext version-14, please install the app to continue using the Non Profit domain: GitHub - frappe/non_profit: Non Profit module for Frappe/ERPNext

  23. Success: Done in 0.034s

  24. Updating DocTypes for frappe : [========================================] 100%

  25. Updating DocTypes for erpnext : [=============================== ] 79%

  • There was an issue while migrating the DocType: Issue

  • Updating Dashboard for frappe

  1. Updating Dashboard for erpnext

  2. Updating customizations for Address

  3. Updating customizations for Contact

  4. Building search index for monolithon.frappe.cloud

  5. Retrieving Routes : [ ] 1%

  • Traceback (most recent call last):
  1. File “/usr/lib/python3.10/runpy.py”, line 196, in _run_module_as_main

  2. return _run_code(code, main_globals, None,

  3. File “/usr/lib/python3.10/runpy.py”, line 86, in _run_code

  4. exec(code, run_globals)

  5. File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 109, in

  6. main()

  7. File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main

  8. click.Group(commands=commands)(prog_name=“bench”)

  9. File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 829, in call

  10. return self.main(*args, **kwargs)

  11. File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 782, in main

  12. rv = self.invoke(ctx)

  13. File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1259, in invoke

  14. return _process_result(sub_ctx.command.invoke(sub_ctx))

  15. File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1259, in invoke

  16. return _process_result(sub_ctx.command.invoke(sub_ctx))

  17. File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1066, in invoke

  18. return ctx.invoke(self.callback, **ctx.params)

  19. File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 610, in invoke

  20. return callback(*args, **kwargs)

  21. File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/decorators.py”, line 21, in new_func

  22. return f(get_current_context(), *args, **kwargs)

  23. File “/home/frappe/frappe-bench/apps/frappe/frappe/commands/init.py”, line 29, in _func

  24. ret = f(frappe._dict(ctx.obj), *args, **kwargs)

  25. File “/home/frappe/frappe-bench/apps/frappe/frappe/commands/site.py”, line 523, in migrate

  26. SiteMigration(

  27. File “/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py”, line 172, in run

  28. self.run_schema_updates()

  29. File “/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py”, line 40, in wrapper

  30. ret = method(*args, **kwargs)

  31. File “/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py”, line 112, in run_schema_updates

  32. frappe.model.sync.sync_all()

  33. File “/home/frappe/frappe-bench/apps/frappe/frappe/model/sync.py”, line 19, in sync_all

  34. sync_for(app, force, reset_permissions=reset_permissions)

  35. File “/home/frappe/frappe-bench/apps/frappe/frappe/model/sync.py”, line 80, in sync_for

  36. import_file_by_path(

  37. File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py”, line 145, in import_file_by_path

  38. import_doc(

  39. File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py”, line 242, in import_doc

  40. doc.insert()

  41. File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 281, in insert

  42. self.run_post_save_methods()

  43. File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 1087, in run_post_save_methods

  44. self.run_method(“on_update”)

  45. File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 928, in run_method

  46. out = Document.hook(fn)(self, *args, **kwargs)

  47. File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 1268, in composer

  48. return composed(self, method, *args, **kwargs)

  49. File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 1250, in runner

  50. add_to_return_value(self, fn(self, *args, **kwargs))

  51. File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 925, in fn

  52. return method_object(*args, **kwargs)

  53. File “/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 385, in on_update

  54. raise e

  55. File “/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 382, in on_update

  56. frappe.db.updatedb(self.name, Meta(self))

  57. File “/home/frappe/frappe-bench/apps/frappe/frappe/database/mariadb/database.py”, line 362, in updatedb

  58. db_table.validate()

  59. File “/home/frappe/frappe-bench/apps/frappe/frappe/database/schema.py”, line 130, in validate

  60. frappe.throw(_(“Length of {0} should be between 1 and 1000”).format(col.fieldname))

  61. File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 524, in throw

  62. msgprint(

  63. File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 492, in msgprint

  64. _raise_exception()

  65. File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 444, in _raise_exception

  66. raise raise_exception(msg)

  67. frappe.exceptions.ValidationError: Length of subject should be between 1 and 1000