Bug #117946 Error migrating PostgreSQL 16.8 to MySQL 8.0.41 using Wokbench Migration Tool
Submitted: 11 Apr 11:13
Reporter: venkateswara rao motupalli Email Updates:
Status: Open Impact on me:
None 
Category:MySQL Server Severity:S2 (Serious)
Version:MySQL Workbench 8.0.41 OS:Windows
Assigned to: CPU Architecture:x86

[11 Apr 11:13] venkateswara rao motupalli
Description:
Hi I'm facing an error while trying to convert a PostgreSQL Database (Catalogue with 13 tables) into MySQL DB.

Source : PostgreSQL 16.8 on x86_64-pc-linux-gnu
Target : 8.0.41 MySQL Community Server - GPL

Error as below. Can someone let know what is the exact fix for this pls ?
I have seen multiple MySQL Bugs based blogs (from 2021 & 2022 even), nowhere there is a solution to this over last couple of years.

Request an update as the Current Production has a very high risk on a legacy hardware system.

Traceback (most recent call last):
  File "C:\Program Files\MySQL\MySQL Workbench 8.0 CE\workbench\wizard_progress_page_widget.py", line 198, in thread_work
    self.func()
  File "C:\Program Files\MySQL\MySQL Workbench 8.0 CE\modules\migration_object_migration.py", line 118, in task_migrate
    self.main.plan.migrate()
  File "C:\Program Files\MySQL\MySQL Workbench 8.0 CE\modules\migration.py", line 511, in migrate
    self.migrationTarget.catalog = self.migrationSource.migration.migrateCatalog(self.state, self.migrationSource.catalog)
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SystemError: TypeError("'<=' not supported between instances of 'int' and 'NoneType'"): error calling Python module function DbPostgresqlMigration.migrateCatalog
ERROR: Migrate Selected Objects: TypeError("'<=' not supported between instances of 'int' and 'NoneType'"): error calling Python module function DbPostgresqlMigration.migrateCatalog
Failed

How to repeat:
Start Migration Wizard.  Input source rdbms PostgreSQL 16.8 - remote Server using ODBC.  Continue.  Input target rdbms - local MySQL using TCP/IP. Continue. Fetch Schemas List. Continue. Schemas Selection . Continue. Reverse Engineer Source. Continue. Object Migration [Source Objects] -> Select all . Continue. Migration (this is where issue occurs as below)

A task has failed executing..

ERROR: Migrate Selected Objects: TypeError("'<=' not supported between instances of 'int' and 'NoneType'"): error calling Python module function DbPostgresqlMigration.migrateCatalog
Failed