Description | This article addresses the 'Configuration File Error' that can occur when uploading CLI scripts to FortiGate devices. The error may present even if the same script executes successfully in the CLI. | ||||||||||||||||||
Scope | FortiGate. | ||||||||||||||||||
Solution |
When a 'Configuration File Error' appears on the FortiGate GUI during script upload, but the same script executes successfully via the CLI, the issue is often caused by incorrect file encoding or the presence of a Byte Order Mark (BOM). Below is a list of the supported and unsupported encodings of the file. Supported and Unsupported Encodings:
Notepad++:
Windows Notepad:
macOS TextEdit:
Note:
Related article: Technical Tip: Automated script execution |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.