Description
ArcGIS Network Analyst extension must be installed, licensed, and activated to perform this function.
Solution
Someone who has an administrator role in your organization needs to log in to ArcGIS Enterprise or ArcGIS Online and configure your user's ArcGIS AllSource license to include the ArcGIS Network Analyst extension.