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 :
Microsoft Dynamics AX (Archived)

AX 2012 R2 CU7 MS Project Integration error

(0) ShareShare
ReportReport
Posted on by 465
Hello, I'm having some problems with the integration between MSDAX2012 CU7 and MSProject.
I've configured the parameters under Project Management and Accounting --> Setup --> Paramters --> Microsoft Project Integration.

When I go to "All projects" --> Plan and I click on "Open in MSProject" It creates a file on the folder I set up and It opens MSProject but It's empty and In the status bar I get an error saying "Synch failed. Please see log for more details."

When check the event viewer I got an error telling the next:

20/01/2014 16:11:59 - The lenght cannot be less than zero. Name of parameter: length (Error) *

20/01/2014 16:11:59 - en Microsoft.Dynamics.AX.Framework.OfficeAddin.Project.SyncFromAX.DoSync() en
Microsoft.Dynamics.AX.Framework.OfficeAddin.Project.SyncBase.Sync(SyncInformation& information) (Error)

20/01/2014 16:11:59 - Sync failed.

*this row has been translated.

Any advice?

best regards.

- Iñigo V.

*This post is locked for comments

I have the same question (0)
  • tompat Profile Picture
    on at

    We are looking into this issue.

  • Taha Ahmad Profile Picture
    on at

    Can you please run through the following and tell me if it fixes the issue:

    1) Log into Microsoft Dynamics AX client as an administrator.

    2) Go to System Administration > Services and Application Integration Framework > Inbound Ports

    3) Check to see if the following services are deployed: "AifContract", "AifProject" and "AifProjWBS"

    4) If any of these services are not deployed (indicated by a "X" icon to it's left), simply select that service and click on "Activate" in the toolbar.

    5) Once all services are deployed, run through your scenario again and see if it fixes the problem.

  • Iñigo Vecino Profile Picture
    465 on at

    Hello,

    Thank for your fast reply.

    I've checked the services and all of them are activated. I also checked them using the WSDL and they are working properly.<br />

    I've tried to export the Project again and I've found a weird behaviour:

    - If I run AX or MSProject as admin  and I try to export to MSProject, I get an error saying:

    "COM object of class 'MSProject.Application' could not be created. Ensure that the object has been

    properly registered on computer 'AX2012-XXXX'."

    "Object 'COM' could not be created"

    "Ensure that Microsoft Project is installed"

    And If I do without admin permisions, I got an error in the event viewer saying this (At least it's not the same

    as I had before):

    21/01/2014 11:41:53 -    en System.RuntimeType.ForwardCallToInvokeMember(String memberName,

    BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)

      en Microsoft.Office.Interop.MSProject._MSProject.TableEditEx(String Name, Boolean TaskTable, Object

    Create, Object OverwriteExisting, Object NewName, Object FieldName, Object NewFieldName, Object Title, Object Width, Object Align, Object ShowInMenu, Object LockFirstColumn, Object DateFormat,

    Object RowHeight, Object ColumnPosition, Object AlignTitle, Object HeaderAutoRowHeightAdjustment, Object HeaderTextWrap, Object WrapText, Object ShowAddNewColumn)

      in Microsoft.Dynamics.AX.Framework.OfficeAddin.Project.ProjectCategoryManager.ShowProjectCategoryColumn(Application application)

      en Microsoft.Dynamics.AX.Framework.OfficeAddin.Project.ProjectCategoryManager.SetupProjectCategoryColumn(Application application, IReader`1 projectCategoryReader)p>

      en Microsoft.Dynamics.AX.Framework.OfficeAddin.Project.ProjectCategoryManager.PopulateCategoriesApplication application, Project project, String companyName, Boolean forceReloadProjectCategories)

      en Microsoft.Dynamics.AX.Framework.OfficeAddin.Project.SyncFromAX.DoSync()

      en Microsoft.Dynamics.AX.Framework.OfficeAddin.Project.SyncBase.Sync(SyncInformation& information) (Error)

    21/01/2014 11:41:53 - Sync failed.

    Thanks again,

    Best regards.

    - Iñigo V.

  • Taha Ahmad Profile Picture
    on at

    Please run through the following:

    1) Run MS Project and Dynamics AX as admin.

    2) While keeping MS Project open, go to AX and click on "Open with MS Project" button.

    3) Do you still see the "COM object of class" exception?

  • Iñigo Vecino Profile Picture
    465 on at

    Hello Taha Ahmad,

    Thanks for your help.

    If I start the session with the administrator account of the active directory and I do this steps:

    1- Open AX with run as administrator.

    2- Open MSProject with run as administrator.

    3- AX client --> open in MSProject.

    I don't get the COM object error but the synch still fails.

    this is the event viewer log:

    21/01/2014 13:21:51 - No se puede mostrar la vista o el informe porque se eliminó la tabla "&Entry", en la que se basaban. (Error)

    **Translation: Can not display the view or the report because the table Entry where they based was deleted.

    21/01/2014 13:21:51 -    en System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)

      en Microsoft.Office.Interop.MSProject._MSProject.TableEditEx(String Name, Boolean TaskTable, Object Create, Object OverwriteExisting, Object NewName, Object FieldName, Object NewFieldName, Object Title, Object Width, Object Align, Object ShowInMenu, Object LockFirstColumn, Object DateFormat, Object RowHeight, Object ColumnPosition, Object AlignTitle, Object HeaderAutoRowHeightAdjustment, Object HeaderTextWrap, Object WrapText, Object ShowAddNewColumn)

      en Microsoft.Dynamics.AX.Framework.OfficeAddin.Project.ProjectCategoryManager.ShowProjectCategoryColumn(Application application)

      en Microsoft.Dynamics.AX.Framework.OfficeAddin.Project.ProjectCategoryManager.SetupProjectCategoryColumn(Application application, IReader`1 projectCategoryReader)

      en Microsoft.Dynamics.AX.Framework.OfficeAddin.Project.ProjectCategoryManager.PopulateCategories(Application application, Project project, String companyName, Boolean forceReloadProjectCategories)

      en Microsoft.Dynamics.AX.Framework.OfficeAddin.Project.SyncFromAX.DoSync()

      en Microsoft.Dynamics.AX.Framework.OfficeAddin.Project.SyncBase.Sync(SyncInformation& information) (Error)

    21/01/2014 13:21:51 - Sync failed.

  • Taha Ahmad Profile Picture
    on at

    It would seem that the MS Project installation on your machine has been corrupted. Is it possible for you to uninstall MS Project and reinstall it?

    Please note, that this might require you to install the Office Addins from Dynamics AX setup again.

  • Taha Ahmad Profile Picture
    on at

    Before you follow the above steps, can you give me the following details:

    1) What OS are you using?

    2) What version of MS Project are you using (2010 or 2013)?

    3) Is your MS Project 32-bit or 64-bit?

  • Iñigo Vecino Profile Picture
    465 on at

    Hello Taha Ahmad and Thanks for your support.

    1) What OS are you using?

    Windows Server 2008 R2 Standard SP1 64bits

    2) What version of MS Project are you using (2010 or 2013)?

    MS Project 2010.

    3) Is your MS Project 32-bit or 64-bit?

    MSProject version is 14.0.7106.5003 32 bits

    Kind regards,

  • Taha Ahmad Profile Picture
    on at

    Ok, it seems that there might be a possible corruption in the installation of MS Project on your system.

    I am copy-pasting my previous to last comment:

    It would seem that the MS Project installation on your machine has been corrupted. Is it possible for you to uninstall MS Project and reinstall it?

    Please note, that this might require you to install the Office Addins from Dynamics AX setup again.

    I will work with Tom to get some additional information about this in a few hours.

  • Iñigo Vecino Profile Picture
    465 on at

    Thank you very much Taha Ahamad.

    I will uninstall it and install it again including the addins from Dynamics AX and I'll post again to let you know the results.

    Best regards,

    - Iñigo V.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans