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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Test generated from task recording doesn't compile

(0) ShareShare
ReportReport
Posted on by 75

Following this article: https://learn.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/perf-test/testing-validation

  1. Created a Task Recording and saved as a Developer download
  2. Using VS 2019
  3. Selected Dynamics 365 -> Addins -> Import Task Recording
  4. Created a new projects.
  5. Solution builds with no issue.
  6. In Test Explorer when the test is run the error message is "One or more modules is missing."   Says the error is on the attributes line:  [SysCodeGenAttribute(),SysTestMethodAttribute()
  7.     [SysCodeGenAttribute(),SysTestMethodAttribute()]
        public void testMethod()
        {
            using (var c = ClientContext::create())
            {
            .....
            }
        }
  8. Test Explorer is set to x64 processor.
  9. I would also expect the attribute line to be in a different color instead of the default black characters.
  10. When the solution is built the output window under the Test drop-down shows:  

========== Test discovery finished: 1 Tests found in 1.6 sec ==========
ProjectData: Could not find project with GUID 2e6650d2-06aa-476d-a25c-efdf0d3e0343
ProjectData: Could not find project with GUID 2e6650d2-06aa-476d-a25c-efdf0d3e0343
ProjectData: Could not find project with GUID a93726d1-e1cc-482b-b16f-3e5322527f6e
ProjectData: Could not find project with GUID a93726d1-e1cc-482b-b16f-3e5322527f6e
ProjectData: Could not find project with GUID 2e6650d2-06aa-476d-a25c-efdf0d3e0343
ProjectData: Could not find project with GUID 2e6650d2-06aa-476d-a25c-efdf0d3e0343
ProjectData: Could not find project with GUID a93726d1-e1cc-482b-b16f-3e5322527f6e
ProjectData: Could not find project with GUID a93726d1-e1cc-482b-b16f-3e5322527f6e

Is importing a task recording supported in VS2019?

Am I missing a package, reference and/or model?

Any assistance is appreciated.

Thanks

Duane

  • Verified answer
    huijij Profile Picture
    19,813 on at

    Hi sir,

    This error indicates that you are missing a model reference in your model. If you look up the SysCodeGenAttribute class, you will find out which model this class belongs to. Then update your model's model reference to include this reference. You have to use the next menu path in Visual Studio to update the model reference. Dynamics 365 > Model Management > Update Model Parameters.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
Martin Dráb Profile Picture

Martin Dráb 555 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 484 Super User 2026 Season 2

#3
CU10121822-0 Profile Picture

CU10121822-0 378

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans