Error creating an XML file

Error creating an XML file

I am creating an xml as string in the function Employee.generatePartA_XML_String, and then I want to save it as a file to the field "Part_A_XML", but I get the response:
{"code":3700,"message":"Unable to upload a file. Please check and try again."}

How can I fix this?

This is the code:

        xml = thisapp.Employee.generatePartA_XML_String(recordID);
xmlFile = xml.toFile("Employee.xml");
xmlFile.setParamName("file");
fileName = "Employee.xml";
xmlFile.setFileName(fileName);
reportName = "Employees_Report";
response = invokeurl
[
url :"https://www.zohoapis.com/creator/v2.1/data/" + zoho.adminuser + "/" + zoho.appname + "/report/" + reportName + "/" + recordID + "/Part_A_XML/upload"
type :POST
files:xmlFile
connection:"zoho_oauth_connection"
];
info response;

    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      Zoho CRM Plus Resources

        Zoho Books Resources


          Zoho Subscriptions Resources

            Zoho Projects Resources


              Zoho Sprints Resources


                Zoho Orchestly Resources


                  Zoho Creator Resources


                    Zoho WorkDrive Resources



                      Zoho Campaigns Resources

                        Zoho CRM Resources

                        • CRM Community Learning Series

                          CRM Community Learning Series


                        • Tips

                          Tips

                        • Functions

                          Functions

                        • Meetups

                          Meetups

                        • Kbase

                          Kbase

                        • Resources

                          Resources

                        • Digest

                          Digest

                        • CRM Marketplace

                          CRM Marketplace

                        • MVP Corner

                          MVP Corner




                          Zoho Writer Writer

                          Get Started. Write Away!

                          Writer is a powerful online word processor, designed for collaborative work.

                            Zoho CRM コンテンツ




                              ご検討中の方