Provisioning alert rules not working

I am using Grafana 10.0.2. I have set up the alert- rules, contact points, notification policies. Which all are working great. Now I want to provision them in another instance of Grafana following the documentation. But I am getting these following errors.

Error checking server process execution privilege. error: could not get current OS user to detect process privileges
Error: ✗ failure to parse file alert-rules.json: yaml: unmarshal errors: *
line 1: cannot unmarshal !!seq into alerting.AlertingFileV1

I have used /api/v1/provisioning/alert-rules/export API and got the YAML file, copied them under,

Need help from the experts here

Resolved the issue by removing the ‘-’ in the file name. Used camel case instead.