Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

Telemetry class Error in D365 .42 version

(0) ShareShare
ReportReport
Posted on by 33
Hi,

I am getting the below error while running a batch job and it
 
Method not found: 'Dynamics.AX.Application.SysApplicationInsightsTelemetryContractBase Dynamics.AX.Application.SysApplicationInsightsTelemetryContractBase.addProperty(Dynamics.AX.Application.SysApplicationInsightsProperty)'.
Telemetry Event Processing Error: className : CustomTelemetryBatchLogging - EventName: Custom BATCH ERROR
Batch task failed: MissingMethodException
 
I have extended the global class for logging the telemetry but getting the above errors , I havent called the "SysApplicationInsightsTelemetryContractBase" class but it seems it is referring somewhere .
This was working fine long time back but it has started giving error recently.
 
thanks,
VK
Categories:
  • Suggested answer
    Martin Dráb Profile Picture
    Martin Dráb 230,488 Most Valuable Professional on at
    Telemetry class Error in D365 .42 version
    What you're trying to implement is already included in F&O out-of-the-box, therefore the right fix likely is throwing your code away.
     
    There is a feature called Monitoring and telemetry that covers your scenario - and several others. The logging of errors is implemented in SysGlobalTelemetry::Global_Pre_error() method. To learn more, check out Dynamics 365 Finance & Operations Monitoring and Telemetry using Application Insights, for instance.
  • VM-02050213-0 Profile Picture
    VM-02050213-0 33 on at
    Telemetry class Error in D365 .42 version
    Hi Martin,
     
    I am calling the prehandler for 
     [PreHandlerFor(classStr(Global), staticMethodStr(Global, error))]
    and then getting the below error. It is actually overriding the std error message.
    Method not found: 'Dynamics.AX.Application.SysApplicationInsightsTelemetryContractBase Dynamics.AX.Application.SysApplicationInsightsTelemetryContractBase.addProperty(Dynamics.AX.Application.SysApplicationInsightsProperty)'.
    Telemetry Event Processing Error: className : CustomTelemetryBatchLogging - EventName: Custom BATCH ERROR
    Batch task failed: MissingMethodException
     
    Thanks,
    Vikas
  • Martin Dráb Profile Picture
    Martin Dráb 230,488 Most Valuable Professional on at
    Telemetry class Error in D365 .42 version
    What is the code causing the error?
     
    Do I understand correctly that the standard Monitoring and telemetry works a bug is only in your CustomTelemetryBatchLogging class?

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,488 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans