Create task with PDS

W

Wesley

Hi

I use the ProjectTaskCreate Method of PDS to create a task in a project
plan. I would like to add values to other fields like "Task Text 1" for
example but can only update the following fields with this method:

<Name></Name>
<Type></Type>
<WBS></WBS>
<OutlineLevel></OutlineLevel>
<Priority></Priority>
<Start></Start>
<Finish></Finish>
<Duration></Duration>
<EffortDriven></EffortDriven>
<Deadline></Deadline>
<Estimated></Estimated>
<Milestone></Milestone>
<Summary></Summary>
<Work></Work>
<PercentComplete></PercentComplete>
<PercentWorkComplete></PercentWorkComplete>
<ActualDuration></ActualDuration>
<ActualWork></ActualWork>
<ActualOvertimeWork></ActualOvertimeWork>
<RemainingDuration></RemainingDuration>
<RemainingWork></RemainingWork>
<RemainingOvertimeWork></RemainingOvertimeWork>
<ConstraintType></ConstraintType>
<ConstraintDate></ConstraintDate>
<LevelAssignments></LevelAssignments>
<LevelingCanSplit></LevelingCanSplit>
<LevelingDelay></LevelingDelay>
<IgnoreResourceCalendar></IgnoreResourceCalendar>
<HideBar></HideBar>
<Rollup></Rollup>
<PhysicalPercentComplete></PhysicalPercentComplete>
<EarnedValueMethod></EarnedValueMethod>

Can I add values to the normal Text fields or is there another method I can
use to update the required fields.

Thanks.
Wesley
 
E

Earl Lewis

Wesley,

Text1 is not an enterprise field so I wouldn't be at all surprised if you cannot update it using PDS.

However, there are several other methods you should look into. Here's one copied out of the PDS reference.

ProjectCodeValuesUpdate Method
Description
Updates one or more enterprise project custom fields and outline codes for a project in Microsoft Office Project Server 2003. ProjectCodeValuesUpdate also updates values in fields that contain value lists, but does not update custom fields with graphical indicators.

Note ProjectCodeValuesUpdate does not update enterprise task custom fields or outline codes. Updating task custom fields and outline codes requires a PDS extension. For a sample PDS extension that updates enterprise task custom fields, see the EnterpriseCustomFieldValueUpdate method in the Solution Starter: SAP Connector to Project Server 2003 download, in the Microsoft Download Center.

It looks like you probably have the PDS reference so you can look these up there to read the details about what they do and do not support.

Hope that helps.

Earl
Hi

I use the ProjectTaskCreate Method of PDS to create a task in a project
plan. I would like to add values to other fields like "Task Text 1" for
example but can only update the following fields with this method:

<Name></Name>
<Type></Type>
<WBS></WBS>
<OutlineLevel></OutlineLevel>
<Priority></Priority>
<Start></Start>
<Finish></Finish>
<Duration></Duration>
<EffortDriven></EffortDriven>
<Deadline></Deadline>
<Estimated></Estimated>
<Milestone></Milestone>
<Summary></Summary>
<Work></Work>
<PercentComplete></PercentComplete>
<PercentWorkComplete></PercentWorkComplete>
<ActualDuration></ActualDuration>
<ActualWork></ActualWork>
<ActualOvertimeWork></ActualOvertimeWork>
<RemainingDuration></RemainingDuration>
<RemainingWork></RemainingWork>
<RemainingOvertimeWork></RemainingOvertimeWork>
<ConstraintType></ConstraintType>
<ConstraintDate></ConstraintDate>
<LevelAssignments></LevelAssignments>
<LevelingCanSplit></LevelingCanSplit>
<LevelingDelay></LevelingDelay>
<IgnoreResourceCalendar></IgnoreResourceCalendar>
<HideBar></HideBar>
<Rollup></Rollup>
<PhysicalPercentComplete></PhysicalPercentComplete>
<EarnedValueMethod></EarnedValueMethod>

Can I add values to the normal Text fields or is there another method I can
use to update the required fields.

Thanks.
Wesley
 
W

Wesley

Thanks for the reply Earl

Ok, the fields that I want to update is Enterprise Number1 and Enterprise
Text1 etc. which is an enterprise field.

The ProjectCodeValuesUpdate Method updates the project custom fields, but
not the task custom fields which I need to update.

What would be the best way to do this if I can't use the PDS?

Thanks.
Wesley

Earl Lewis said:
Wesley,

Text1 is not an enterprise field so I wouldn't be at all surprised if you cannot update it using PDS.

However, there are several other methods you should look into. Here's one
copied out of the PDS reference.
ProjectCodeValuesUpdate Method
Description
Updates one or more enterprise project custom fields and outline codes for
a project in Microsoft Office Project Server 2003. ProjectCodeValuesUpdate
also updates values in fields that contain value lists, but does not update
custom fields with graphical indicators.
Note ProjectCodeValuesUpdate does not update enterprise task custom
fields or outline codes. Updating task custom fields and outline codes
requires a PDS extension. For a sample PDS extension that updates enterprise
task custom fields, see the EnterpriseCustomFieldValueUpdate method in the
Solution Starter: SAP Connector to Project Server 2003 download, in the
Microsoft Download Center.
It looks like you probably have the PDS reference so you can look these up
there to read the details about what they do and do not support.
 
E

Earl Lewis

Wesley,

Read my reply closer. The help text refers you to EnterpriseCustomFieldValueUpdate for task level fields.

Earl
Thanks for the reply Earl

Ok, the fields that I want to update is Enterprise Number1 and Enterprise
Text1 etc. which is an enterprise field.

The ProjectCodeValuesUpdate Method updates the project custom fields, but
not the task custom fields which I need to update.

What would be the best way to do this if I can't use the PDS?

Thanks.
Wesley

Earl Lewis said:
Wesley,

Text1 is not an enterprise field so I wouldn't be at all surprised if you cannot update it using PDS.

However, there are several other methods you should look into. Here's one
copied out of the PDS reference.
ProjectCodeValuesUpdate Method
Description
Updates one or more enterprise project custom fields and outline codes for
a project in Microsoft Office Project Server 2003. ProjectCodeValuesUpdate
also updates values in fields that contain value lists, but does not update
custom fields with graphical indicators.
Note ProjectCodeValuesUpdate does not update enterprise task custom
fields or outline codes. Updating task custom fields and outline codes
requires a PDS extension. For a sample PDS extension that updates enterprise
task custom fields, see the EnterpriseCustomFieldValueUpdate method in the
Solution Starter: SAP Connector to Project Server 2003 download, in the
Microsoft Download Center.
It looks like you probably have the PDS reference so you can look these up
there to read the details about what they do and do not support.
 
W

Wesley

Sorry about that.

Ok, I have installed the EnterpriseCustomFieldValueUpdate PDS extention
which is part of the SAP Connector.

When I run the EnterpriseCustomFieldValueUpdate method from PDS I get the
following error:

<Reply>
<HRESULT>0</HRESULT>
<STATUS>1</STATUS>
<EnterpriseCustomFieldValueUpdate>
<Error> / &lt;CustomFields&gt; / Login failed for user 'NT
AUTHORITY\ANONYMOUS LOGON'.</Error>
</EnterpriseCustomFieldValueUpdate>
</Reply>

According to the error codes Status = 1 means The request is not recognized
by the PDS.

It looks like I did something wrong during the installation of the
EnterpriseCustomFieldValueUpdate extention, but I went through it a couple
of times and can't figure out what I did wrong.

Wesley

Earl Lewis said:
Wesley,

Read my reply closer. The help text refers you to
EnterpriseCustomFieldValueUpdate for task level fields.
 
Z

zorglub

I Wesley,

The status = 1 is the value given to the result by whoever write the
PDS Extension you are using and therefore does not mean anything.

The reel error occurs when you try to access Sql Server with the
Anonymous user which cannot logon to the project server database.

Simon
 

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