web
You’re offline. This is a read only version of the page.
close
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.

 

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

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

    Is PFSPayProcessAction a standard class?

  • TonyAx Profile Picture
    570 on at

    Hi Martin,

    Thanks for reply, Yes its standard class.

    Please give any solution to resolve this.

  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    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

    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 ?

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    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.

  • Martin Dráb Profile Picture
    237,880 Most Valuable Professional on at

    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?

  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 611 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 529 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans