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 :
Microsoft Dynamics AX (Archived)

SysCompare class in AX2009

(0) ShareShare
ReportReport
Posted on by

I have an error in SysCompare class in AX2009 and I cannot solve it, can anyone provide me with a link to get it ?

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    239,147 Most Valuable Professional on at

    We can't help you unless you tell us something about the error.

  • maram fraij Profile Picture
    on at

    From the investigation the class is ok; no changes has been made on it.

    The problem is that we cannot assign value to a container in this AX2009 image; I created a job and write the following :

    container result;

    result=[2];

    I receive a syntax error on the second line. The same error is faced in the class  sysCompare; syntax error is received at the line where a value is assigned to the container.

  • Verified answer
    Martin Dráb Profile Picture
    239,147 Most Valuable Professional on at

    What if you add one more semicolon after the declaration?

    container result;
    ;
    result=[2];
  • maram fraij Profile Picture
    on at

    yes the problems are resolved; on the job & on the class. Thank you

    Why should I use( ;) between variable definitions and code lines in ax 2009?

  • Suggested answer
    Martin Dráb Profile Picture
    239,147 Most Valuable Professional on at

    You have a type called "Result" somewhere in your system and the compiler thinks that you may be declaring a variable of type Result.

    The semicolon helps the compiler to understand where variable declaration ends.

  • Denis Macchinetti Profile Picture
    16,444 on at

    Hi Maram

    Please, tick the Martin answer as verified to help others in the future.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 16

#2
GiacomoRovai Profile Picture

GiacomoRovai 4

#3
Douglas Noel Profile Picture

Douglas Noel 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans