Can't create Material Resources in Tasks without Resources

  • Thread starter Thiago Przybylovicz
  • Start date
T

Thiago Przybylovicz

Good morning everyone...

I'm having a strange problem developing for Project... I receive the data
from another application that references a task in project and create a
material-type resource and an assignment linking both...

If the task doesn't have a previous resource linked on it, the application
creates the material resource that I want but when it tries to create the
assignment, I receive the SoapException #9132:
ProjectNodeConsistencyExzception... If I create a dummy resource in the task
previously, the same action is preformed without any problems... Someone
knows why this happens? I can't workaround it? Or have a solution for it?

I'll wait for the answers... Thank you!
 
J

Jan De Messemaeker

Hi,

I'm afraid I only use soap for washing purposes :) but in VBA using this
coding:
activeproject.Tasks(1).Assignments.Add resourceid:=2,units:=1
There is no problem (resources (2) being a material resource)

Hope this helps

--
Jan De Messemaeker
Microsoft Project Most Valuable Professional
+32 495 300 620
For availability check:
http://users.online.be/prom-ade/Calendar.pdf
 
T

Thiago Przybylovicz

Well, after some attempts, I noticed that the problem only happens when I try
to put the material resource in a fixed-work-task. I believe the reason is
that Project uses Duration X Units = Work in it's assignments. Someone knows
how can I workaround it? Thanks...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top