"Compatibility TypeError: Cannot read properties of null (reading 'type')"
This issue arises when the user performing the migration does not have enough permission on the VM source portgroup
VCenter Hierarchical Inheritance of Permissions
Most inventory objects inherit permissions from a single parent object in the hierarchy.
Distributed portgroup inherit from parent network folder which inherits from parent datacenter.