Virtual Switch Edit Error - Cannot read properties of null (reading 'propertiesData')
search cancel

Virtual Switch Edit Error - Cannot read properties of null (reading 'propertiesData')

book

Article ID: 411952

calendar_today

Updated On:

Products

VMware NSX VMware vSphere ESXi

Issue/Introduction

The error "Virtual Switch Edit Error - Cannot read properties of null (reading 'propertiesData')" is observed on the ESXi host.

The following conditions are also applicable:

  • you're attempting to change the IP address and VLAN of the ESXi host
  • after changing the IP address the host became unreachable
  • in an attempt to recover the ESXi host, it's networking was reset using the DCUI 
  • subsequently, all vmkernel ports were deleted
  • a new vmkernel port was created via CLI for management
  • the ESXi host is now visible and connected in vSphere Client
  • the DVS is not visible in the vSphere Client for this ESXi host
  • in the NSX UI, the host shows Validation errors as seen in the screenshot below:

 

Environment

VMware vSphere ESXi 8.x
VMware NSX

Cause

This is a result of the ESXi host having been removed from vCenter Server without first uninstalling NSX or removing the ESXi host from the DVS and then deleting it's vmkernel ports.

Resolution

To recover this ESXi host, first move it out of the cluster into the "Datacenter" level in maintenance mode. Then reboot the host. Once rebooted, use it's DCUI to select the option "Reset system configuration" to perform a factory reset on the ESXi host, so that it can be reconfigured from the start. Once it's fully reconfigured with the necessary kernel ports etc, it can be re-added to the DVS and then back into it's cluster to get it configured with NSX.

Additional Information

As a reference, the correct way to perform reconfiguration of an ESXi host's management IP address and VLAN is documented in the following KB:
Changing the ESXi server management IP address