web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Getting error when we click on generate test execution files only

(0) ShareShare
ReportReport
Posted on by 5

Create a customer 1
System.Exception: The Excel file creation failed at Trial\1\attachments\Create_a_customer_1_Base.xlsx: Microsoft Excel cannot access the file 'C:\Users\Admin23249eccf5\Documents\Trial\1\attachments\213AC000'. There are several possible reasons:

• The file name or path does not exist.
• The file is being used by another program.
• The workbook you are trying to save has the same name as a currently open workbook. ---> System.Runtime.InteropServices.COMException: Microsoft Excel cannot access the file 'C:\Users\Admin23249eccf5\Documents\Trial\1\attachments\213AC000'. There are several possible reasons:

• The file name or path does not exist.
• The file is being used by another program.
• The workbook you are trying to save has the same name as a currently open workbook.
at Microsoft.Office.Interop.Excel._Workbook.SaveAs(Object Filename, Object FileFormat, Object Password, Object WriteResPassword, Object ReadOnlyRecommended, Object CreateBackup, XlSaveAsAccessMode AccessMode, Object ConflictResolution, Object AddToMru, Object TextCodepage, Object TextVisualLayout, Object Local)
at Microsoft.Dynamics.RegressionSuite.Excel.ExcelService.GenerateExcel(List`1 forms, String excelOutputFile)
--- End of inner exception stack trace ---
at Microsoft.Dynamics.RegressionSuite.Excel.ExcelService.GenerateExcel(List`1 forms, String excelOutputFile)
at Microsoft.Dynamics.RegressionSuite.CodeGeneratorHelper.ProcessXml(TestCaseModel testCase, String outputPath, String companyName, Boolean generateOnlyTestExecution, Boolean migrateUserParameters, Boolean isCreateDerivedAction)
at Microsoft.Dynamics.RegressionSuite.WpfApp.Services.AttachmentGenerator.<>c__DisplayClass20_1.<<GenerateParentWithDerivedTests>b__1>d.MoveNext()

I have the same question (0)
  • Martin Dráb Profile Picture
    237,681 Most Valuable Professional on at
    RE: Getting error when we click on generate test execution files only

    Please start by checking possible reasons mentioned in the error message.

  • huijij Profile Picture
    19,811 on at
    RE: Getting error when we click on generate test execution files only

    Hi D365 Test,

    What environment are you in?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 683 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 563 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 398 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans