本文內容適用於 ArcGIS Enterprise 11.x 版
原文:Problem: Unable to Publish Hosted Feature Layers to the ArcGIS Enterprise Portal with Erro
當您嘗試到 ArcGIS Enterprise Portal 上傳 Shapefile、File Geodatabase、Scene Layer Package 或 CSV 檔案,並將其發佈為託管圖徵圖層時,雖然檔案已成功上傳,但系統會回傳以下錯誤訊息:
ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (http://esriurl.com/support) to Report a Bug, and refer to the error help for potential solutions or workarounds. Invalid url: blocked host. Failed to execute (Publish Portal Service). Failed.
此外,您會在 ArcGIS Server Manager 的日誌中看到以下錯誤訊息:
Error executing tool. Publish Portal Service Job ID: <Job ID> : ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (http://esriurl.com/support) to Report a Bug, and refer to the error help for potential solutions or workarounds. Invalid url: blocked host. Failed to execute (Publish Portal Service).
原因說明
ArcGIS Server 所在的主機上停用了 IPv6(網際網路通訊協定第六版)。
在 Microsoft Windows 中,即便 IPv6 被停用,系統預設仍會將主機名稱連結到 IPv6 的本機位址(::1)。
解決方法或替代方案
啟用 IPv6
請在 ArcGIS Server 所在的機器上啟用 IPv6。設定方式如下圖所示,在網路介面卡的內容視窗中,勾選「Internet Protocol Version 6 (TCP/IPv6)」。

修改登錄檔設定,以偏好使用 IPv4(若無法啟用 IPv6)
注意: Microsoft 不建議完全停用 IPv6,因為某些 Windows 元件可能會因此無法正常運作。以下操作依小編的實際經驗,不保證有效。
若因系統需求無法啟用 IPv6,您可以嘗試修改登錄檔來讓系統優先使用 IPv4:
- 在 Windows 搜尋欄中輸入
cmd
,搜尋「命令提示字元」。 - 右鍵點選「命令提示字元」,選擇「以系統管理員身分執行」。
- 在命令提示字元視窗中,輸入以下指令(將
<0x20>
保留原樣):reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters" /v DisabledComponents /t REG_DWORD /d <0x20> /f - 完成後,請重新啟動 ArcGIS Server。重新啟動後,Windows 將會改為使用 IPv4 將內部主機名稱解析為本機位址,您就能順利將託管圖徵圖層發佈至 ArcGIS Enterprise 入口網站。
修改作業系統 hosts 檔案
在小編的實務經驗中,如果 ArcGIS 主機滿足以下所有條件,也可能會發生上述的錯誤:
- ArcGIS 主機為離線環境
- ArcGIS Enterprise使用單機佈署方式,將所有元件通通裝在同一台
- 在作業系統 hosts 檔案有設置此規則
127.0.0.1 對應 主機FQDN
在此情形下,請將 hosts 檔案中 127.0.0.1 對應 主機FQDN
規則,修改成 主機內部 IP 對應 主機FQDN
附註: 在 Windows 環境中,host 檔案實體路徑 C:\Windows\System32\drivers\etc
參考文件
- Publish not working after fresh install
- Problem: Unable to Publish Hosted Feature Layers to the ArcGIS Enterprise Portal with Erro