MS Project 2007 and NAV Import problem

sendoh
Member Posts: 207
Hi Guys,
I'm working on the MS Project Integration now and have some unconsistent problem, the code below is working fine before,but for some unknown reason i got some random error like, ("Could not invoke the member count","Could not invoke the tasks" and etc.) and sometimes it works fine.
i know this error comes out because i'm using the API of MSproject member and the description of the error is descriptive but i couldn't resolve this issue. is this a registry problem or unproper installation or what? please advise. Thanks.
Regards,
Sendoh
I'm working on the MS Project Integration now and have some unconsistent problem, the code below is working fine before,but for some unknown reason i got some random error like, ("Could not invoke the member count","Could not invoke the tasks" and etc.) and sometimes it works fine.
i know this error comes out because i'm using the API of MSproject member and the description of the error is descriptive but i couldn't resolve this issue. is this a registry problem or unproper installation or what? please advise. Thanks.
mportMSProjFile(pPath : Text[400];pVisible : Boolean) CLEAR(Task); CLEAR(Tasks); CLEAR(App); IF ISCLEAR(App) THEN CREATE(App); LCtrTask := 0; App.FileOpenEx(pPath); Tasks := App.ActiveProject.Tasks; FOR LCtrTask := 1 TO Tasks.Count DO BEGIN Task := Tasks.Item(LCtrTask); //Row No. WITH ProjMapping DO BEGIN INIT; ID := Task.ID; "Task Name" := Task.Name; Start := Task.Start; Finish := Task.Finish; Resource := Task.ResourceNames; Duration := Finish - Start; Milestone := Task.Milestone; INSERT; END; END; App.Visible := pVisible; IF App.FileExit(0) THEN CLEAR(App);
Regards,
Sendoh
Sendoh
be smart before being a clever.
be smart before being a clever.
0
Comments
-
Hi Guys,
After some testing I found out that the error rise when there's an open MSProject file and when it first time I run the codeunit and when trying to run the codeunit in second time it works fine.. I think I missed something before this lineApp.FileOpenEx(pPath);
Please advise what I missed. Thanks in advance.
Regards,
SendohSendoh
be smart before being a clever.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions