"Problem running command import during stage processChanges when processing type customDomains" error

Problem statement

We are trying to run an import with the Deploy CLI, and I noticed the “error: Problem running command import during stage processChanges when processing type customDomains” a few times in the console. What does this error mean?

Cause

This error will occur if you are trying to import a Custom Domain into a FREE tenant without a paid subscription. The Custom Domain feature is not supported on a free plan, therefore the import failed.

Solution

If you are using a free tenant, please remove any custom domain from the yaml file or directory format when importing.