Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Suggested answer

classDeclaration error in ax 2012 r2

Posted on by 560

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
    Gunjan Bhattachayya 35,417 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
    Martin Dráb 225,610 Super User 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
    nmaenpaa 101,148 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
    TonyAx 560 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
    Gunjan Bhattachayya 35,417 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
    TonyAx 560 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
    Martin Dráb 225,610 Super User 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?

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,995 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,610 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans