Error fetching network: path ... resolves to multiple networks

I am trying to create a virtual machine in vCenter. My script works in the DEV cluster but errors out when trying to create the VM in the PROD cluster.

Getting error:
Error: error fetching network: path ‘production|production-ap|vlan31’ resolves to multiple networks. This network name is actually in two distributed switches in the PROD cluster. How can I specify to use a particular distributed virtual switch when creating the VM? Have been searching without success for several days.

Thanks!