If you try to import an agent procedure and get an error 1020 or file was not uploaded, follow the instructions from the article linked below: 

https://helpdesk.kaseya.com/hc/en-gb/articles/4406508288529-How-to-Import-Agent-Procedures-after-9-5-7a

In case the way described in the article above does not work, try this: 

Edit the XML, and change the “<ScriptExport” at the top and “</ScriptExport>” bottom of the file to “<ScExport” and “</ScExport>” respectively.

Edit the XML, and change the “<ScriptExport” at the top and “</ScriptExport>” bottom of the file to “<ScExport” and “</ScExport>” respectively.