Reflections on Microsoft Dynamics AX

Reflections on Microsoft Dynamics, ERP Projects and Product

ProjPost Class compile error

ProjPost Class compile error

  • Comments 2

If you are using the AX 2009 Refresh 2 demo VM you may want to correct a line of code in the ProjPost class if you are using Projects and Project Time Sheets.

1. Press CRTL+D to open the AOT. Expand Classes.

image

2. Navigate down to ProjPost.

image

3. Expand to show the ClassDeclaration.

image

4. Right Click on ClassDeclaration. Select Compare.

image

5. When the compare tool opens. Click the Compare button to compare the default USR layer to the SYP layer.

image

6. This will show one line of code that needs to be in the USR layer. Which is a variable declaration for “skipCheckLedgerTransDate”. Click the Arrow control to add that to the USR layer. The colour will change from blue.

image

7. Close the Compare window. Click Save and Click Compile from the AOT toolbar.

image

8. The code should now compile without error.

image

7/30/2009 – Just amending this note. Make sure you right click on the class after you make this change and Compile Forward.

image 

Cheers

Lachlan

Original post at http://blogs.msdn.com/lcash/

  • Hi Lachlan,

    I changed the class ProjPost according your instruction. However, I still cannot post an hour journal as I am getting the error below.

    Did I forgot something?

    Error executing code: Wrong argument types in variable assignment.

    (S)\Classes\ProjPost\parmSkipCheckLedgerTransDate - line 1

    (S)\Classes\ProjPost\checkTrans - line 54

    (S)\Classes\ProjPostEmplJournal\checkTrans - line 8

    (S)\Classes\ProjJournalCheckPost\checkTrans - line 3

    (S)\Classes\JournalCheckPost\checkJournal - line 10

    (S)\Classes\JournalCheckPostLedger\checkJournal - line 13

    (S)\Classes\JournalCheckPost\runCheck - line 3

    (S)\Classes\JournalCheckPost\run - line 20

    (C)\Classes\ProjJournalCheckPost\main - line 26

    (C)\Classes\FormFunctionButtonControl\Clicked

  • Hey Gijs

    Yes a made a update to the original post. Just make sure you do a compile forward.

    Cheers

    Lachlan

Page 1 of 1 (2 items)