Skip to main content

Notifications

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()

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

    Hi D365 Test,

    What environment are you in?

  • Martin Dráb Profile Picture
    Martin Dráb 230,900 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.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,074 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,900 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans