Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

classDeclaration error in ax 2012 r2

(0) ShareShare
ReportReport
Posted on by 570

Hi All,

environment :Ax 2012 r2

When I try to put full compile on environment getting classDeclaration error on  PFSPayProcessAction class

class PFSPayProcessAction extends RunBaseBatch
{
    PFSPeriods                                  period;
    PFSPeriodId                                 periodId;
    PFSPeriodBatch                              periodBatch;
    PFSPayRunNumber                             payRunNumber;
    PFSPayrollActionType                        actionType;

    DialogField                                 dlgPeriodId;
    DialogField                                 dlgPayRunNumber;

    PayFields.Services.PayrollEngine.Engine     engine; -------------> erro on this line
    PayFields.Framework.ICustomDataAccessLayer  dataAccessLayer;

    System.Collections.ArrayList                log;
    System.Collections.IEnumerator              logEnumr;
    container                                   logData;

    StartDateTime                               startDateTime;
    EndDateTime                                 endDateTime;

    #AviFiles

    #define.CurrentVersion(1)
    #define.Version1(1)
    #localmacro.CurrentList
        periodId,
        payRunNumber,
        actionType
    #endmacro
}

Error is : \Classes\PFSPayProcessAction\classDeclaration

Note: there no customization please help me to resolve this error.

 

  • Gunjan Bhattachayya Profile Picture
    35,421 on at
    RE: classDeclaration error in ax 2012 r2

    Tony,

    I think it's PayFields.

    Are there any other users who are able to use these features\compile the application? They might have the DLL available in their Client\Bin folder and you might be able to copy it.

  • Martin Dráb Profile Picture
    233,029 Most Valuable Professional on at
    RE: classDeclaration error in ax 2012 r2

    That you don't have the file is exactly the problem. You must obtain it and then make it available to AX (e.g. by placing it to bin folders).

    Can you confirm that the class comes from an ISV solutions? Do you know which ISV solutions are installed in your environment?

  • Suggested answer
    nmaenpaa Profile Picture
    101,158 Moderator on at
    RE: classDeclaration error in ax 2012 r2

    Just ask from the ISV solution provider who provided you these classes.

    Or, if you have it working in some other environment, you can copy the DLLs from there.

  • TonyAx Profile Picture
    570 on at
    RE: classDeclaration error in ax 2012 r2

    Hi Gunjan,

    I try to add dll in reference AOT,

    There is no  PayFields.Services.PayrollEngine.Engine  dll like Server/Client bin Folder

    How I can get the DLL ?

  • Gunjan Bhattachayya Profile Picture
    35,421 on at
    RE: classDeclaration error in ax 2012 r2

    Hi Tony,

    I can't see this class in standard AX. It might be an ISV solution.

    If this is the case, you will need to have access to the DLL(s), which is usually provided by the ISV partner.

  • TonyAx Profile Picture
    570 on at
    RE: classDeclaration error in ax 2012 r2

    Hi Martin,

    Thanks for reply, Yes its standard class.

    Please give any solution to resolve this.

  • Martin Dráb Profile Picture
    233,029 Most Valuable Professional on at
    RE: classDeclaration error in ax 2012 r2

    It means that the compiler can't find the .NET assembly where the type is defined.

    Is PFSPayProcessAction a standard 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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,349 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,029 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans