Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Answered

No account number exists for account type Cost for project MyProjectName

Posted on by Microsoft Employee

Posting a Packing Slip in AX 2012 R2 and Receive error:   Any suggestion would be helpful.

Posting

 - Sales orders:  SO00000603

- Item:  MyItem

X No account number exists for account type Cost for project MyProjectName

Stack trace is:

Microsoft.Dynamics.Ax.Xpp.ErrorException: Exception of type 'Microsoft.Dynamics.Ax.Xpp.ErrorException' was thrown.
at Dynamics.Ax.Application.FormletterService.Run() in FormletterService.run.xpp:line 217
at Dynamics.Ax.Application.FormletterService.Postsalesorderpackingslipproject(SalesFormLetterPackingSlipProjContract _contract) in FormletterService.postSalesOrderPackingSlipProject.xpp:line 14
at FormletterService::postSalesOrderPackingSlipProject(Object , Object[] )
at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeInstanceCall(Object instance, String MethodName, Object[] parameters)
at Microsoft.Dynamics.Ax.Xpp.DictClass.Callobject(String _methodName, XppObjectBase _Called, Object[] varArgs)
at Dynamics.Ax.Application.SysOperationServiceController.Runoperation(Boolean _async) in SysOperationServiceController.runOperation.xpp:line 93
at Dynamics.Ax.Application.SysOperationServiceController.runServiceOperation(Object[] parameters) in SysOperationServiceController.runServiceOperation.xpp:line 22
at SysOperationServiceController::runServiceOperation(Object[] )
at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)
at Dynamics.Ax.Application.SysDictClass.invokeStaticMethod(Object[] _params) in SysDictClass.invokeStaticMethod.xpp:line 26
at SysDictClass::invokeStaticMethod(Object[] )
at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)
at Microsoft.Dynamics.Ax.Xpp.PredefinedFunctions.runAsInvoke(String className, String staticMethodName, Object[] parms, Object[]& exportInfolog)

  • GG7 Profile Picture
    GG7 on at
    RE: No account number exists for account type Cost for project MyProjectName

    Please be aware that there are two fields for Legal entity that can be displayed using personalization.  They also appear by default in the DMF export for Data Entity: Project ledger posting definition.   See screenshot.  These columns become even more relevant when using the Ledger account type for Intercompany cost.

    pastedimage1645559318659v1.png

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: No account number exists for account type Cost for project MyProjectName

    It ended up being that the cost account for the project category needed to be set up for this legal entity.   Thank you for your suggestion.   It set us down the right path.

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 288,459 Super User on at
    RE: No account number exists for account type Cost for project MyProjectName

    Hi MKryzhan,

    Did you setup or verify the project posting setup? If you have setup accounts, are these accounts part of an active account structure for this legal entity?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: No account number exists for account type Cost for project MyProjectName

    Thank you for the information Dr. Reinhard.   Could you point me to a good URL to search from.   I find this hotfix in cumulative patches but lacking the detailed information of what the particular issue is.   I've tried several sites including www.microsoft.com/.../search and support.microsoft.com/.../cumulative-update-7-cu7-for-microsoft-dynamics-ax-2012-r2.   Possibly you have access to something I do not.

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: No account number exists for account type Cost for project MyProjectName

    Hi,

    This might be related to a bug.

    Please check the following hotfixes:

    KB 2840148"No account number exists for account type Cost for project" error is returned when activating a new standard cost that is associated with a project ID

    and

    Issue 3799213"No account number exists for account type Cost for project" error after installing SEPA hotfixes when posting an IC timesheet

    Best regards,

    Ludwig

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... 288,459 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,783 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans