Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Unanswered

Build error using build definition in ax 2012

Posted on by 27

Hi All,

65245.JPG

I am getting an error while running a build using a build definition in Ax 2012 . We have setup a build definition with an agent running on the same server. Using the visual studio, when i run the build definition it throws an error on the first 30 seconds of running as below:

The agent and controller is hosted on TFS 2015:

TF215097: An error occurred while initializing a build for build definition \AX2012\EUR_Nightly_Build_EUR_R3_CU13:
Exception Message: Cannot create unknown type '{clr-namespace:CodeCrib.AX.TFS;assembly=CodeCrib.AX.TFS}StopAOSService'. (type XamlObjectWriterException)
Exception Stack Trace: at System.Xaml.XamlObjectWriter.WriteStartObject(XamlType xamlType)
at System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter, Boolean closeWriter)
at System.Activities.XamlIntegration.FuncFactory`1.Evaluate()
at System.Activities.DynamicActivity.OnInternalCacheMetadata(Boolean createEmptyBindings)
at System.Activities.Activity.InternalCacheMetadata(Boolean createEmptyBindings, IList`1& validationErrors)
at System.Activities.ActivityUtilities.ProcessActivity(ChildActivity childActivity, ChildActivity& nextActivity, Stack`1& activitiesRemaining, ActivityCallStack parentChain, IList`1& validationErrors, ProcessActivityTreeOptions options, ProcessActivityCallback callback)
at System.Activities.ActivityUtilities.ProcessActivityTreeCore(ChildActivity currentActivity, ActivityCallStack parentChain, ProcessActivityTreeOptions options, ProcessActivityCallback callback, IList`1& validationErrors)
at System.Activities.ActivityUtilities.CacheRootMetadata(Activity activity, LocationReferenceEnvironment hostEnvironment, ProcessActivityTreeOptions options, ProcessActivityCallback callback, IList`1& validationErrors)
at System.Activities.Validation.ActivityValidationServices.InternalActivityValidationServices.InternalValidate()
at Microsoft.TeamFoundation.Build.Workflow.WorkflowHelpers.ValidateWorkflow(Activity activity, ValidationSettings validationSettings)
at Microsoft.TeamFoundation.Build.Hosting.BuildProcessCache.LoadFromXaml(String workflowXaml, TextExpressionImports textExpressionImports)
at Microsoft.TeamFoundation.Build.Hosting.BuildControllerWorkflowManager.PrepareRequestForBuild(WorkflowManagerActivity activity, IBuildDetail build, WorkflowRequest request, IDictionary`2 dataContext)
at Microsoft.TeamFoundation.Build.Hosting.BuildWorkflowManager.TryStartWorkflow(WorkflowRequest request, WorkflowManagerActivity activity, BuildWorkflowInstance& workflowInstance, Exception& error, Boolean& syncLockTaken)

Did anyone encounter an error like this and suggest what could be an issue? Screenshot attached for more details. Also is there a way to check at which step it failed in the build.

Regards,

Sourav Chatterjee

  • Martin Dráb Profile Picture
    Martin Dráb 230,235 Most Valuable Professional on at
    RE: Build error using build definition in ax 2012

    It can't find CodeCrib.AX.TFS. You told us nothing about where you put it, so we can't find the bug in your setup. It fails to load when you want to try use to stop an AOS.

    Regarding the information about the failing step, check using if "View log" gives you what you want.

    I'm not sure what you mean by "like for a build pipeline through azure devops". Maybe you're using old XAML-based build templates and you're comparing it with the current build framework (so it's a difference in how you define your builds, not between TFS and Azure DevOps).

  • Sourav056 Profile Picture
    Sourav056 27 on at
    RE: Build error using build definition in ax 2012

    7380.JPG

    Thank you Martin for replying back. It was my bad , i had put a wrong screenshot. Attaching the correct one. I will look at the TFS installation again. I have another question which might sound a bit basic. Is there a way to check on which step this build is failing like for a build pipeline through azure devops, we can actually see the step it failed.

  • Martin Dráb Profile Picture
    Martin Dráb 230,235 Most Valuable Professional on at
    RE: Build error using build definition in ax 2012

    The error in the screenshot says that you need to upgrade the agent.

    It's not clear to me what you mean by "using the visual studio", nevertheless the other error is related to CodeCrib.AX.TFS. Maybe it hasn't been installed in the right way.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans