My Oracle Support Banner

Create UDFValue Webservice Is Not Working For ActivityStepTemplateItem. (Doc ID 2878363.1)

Last updated on JUNE 23, 2022

Applies to:

Primavera Web Services - Version 20.12.12.0 and later
Information in this document applies to any platform.

Symptoms

When attempting to create a new UDF Value on an ActivityStepTemplateItem, the following error occurs.

ERROR
-----------------------
<ns:IntegrationFault xmlns:ns="http://xmlns.oracle.com/Primavera/P6/WS/IntegrationFaultType/V1">
   <ns:ErrorType>General</ns:ErrorType>
   <ns:ErrorCode>0</ns:ErrorCode>
   <ns:ErrorDescription/>
</ns:IntegrationFault>



STEPS
-----------------------
STEPS TO REPRODUCE:
1. Get the UDFs of type ActivityStepTemplateItem. When creating a Step UDF in P6 it will create two types. One for ActivityStepTemplateItem and one for ActivityStep
    http://<HOST>:8206/p6ws/services/UDFTypeService
    
    REQUEST:
    <v1:ReadUDFTypes>
        <v1:Field>ObjectId</v1:Field>
        <v1:Field>DataType</v1:Field>
        <v1:Field>SubjectArea</v1:Field>
        <v1:Field>Title</v1:Field>
        <v1:Filter>SubjectArea in ('Activity Step Template Item', 'Activity Step')</v1:Filter>
    </v1:ReadUDFTypes>
 
    RESPONSE:
    <ReadUDFTypesResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/Primavera/P6/WS/UDFType/V1">
        <UDFType>
            <DataType>Double</DataType>
            <ObjectId>1024</ObjectId>
            <SubjectArea>Activity Step</SubjectArea>
            <Title>StepTemplUDF2</Title>
        </UDFType>
        <UDFType>
            <DataType>Double</DataType>
            <ObjectId>1025</ObjectId>
            <SubjectArea>Activity Step Template Item</SubjectArea>
            <Title>StepTemplUDF2</Title>
        </UDFType>
    </ReadUDFTypesResponse>

2. Get the steps for the Activity Step Template
    http://<HOST>:8206/p6ws/services/ActivityStepTemplateItemService
    
    REQUEST:
    <v1:ReadActivityStepTemplateItems>
        <v1:Field>Description</v1:Field>
        <v1:Field>Name</v1:Field>
        <v1:Field>ActivityStepTemplateObjectId</v1:Field>
        <v1:Field>ObjectId</v1:Field>
        <v1:Filter>ActivityStepTemplateObjectId=253</v1:Filter>
    </v1:ReadActivityStepTemplateItems>

    RESPONSE:
    <ReadActivityStepTemplateItemsResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/Primavera/P6/WS/ActivityStepTemplateItem/V1">
        <ActivityStepTemplateItem>
            <ActivityStepTemplateObjectId>253</ActivityStepTemplateObjectId>
            <Description/>
            <Name>ActStepTemplItem1</Name>
            <ObjectId>262</ObjectId>
        </ActivityStepTemplateItem>
        <ActivityStepTemplateItem>
            <ActivityStepTemplateObjectId>253</ActivityStepTemplateObjectId>
            <Description/>
            <Name>ActStepTemplItem2</Name>
            <ObjectId>263</ObjectId>
        </ActivityStepTemplateItem>
        <ActivityStepTemplateItem>
            <ActivityStepTemplateObjectId>253</ActivityStepTemplateObjectId>
            <Description/>
            <Name>ActStepTemplItem3</Name>
            <ObjectId>264</ObjectId>
        </ActivityStepTemplateItem>
        <ActivityStepTemplateItem>
            <ActivityStepTemplateObjectId>253</ActivityStepTemplateObjectId>
            <Description/>
            <Name>ActStepTemplItem4</Name>
            <ObjectId>265</ObjectId>
        </ActivityStepTemplateItem>
    </ReadActivityStepTemplateItemsResponse>


3. Use the results of #1 and #2 to create a UDF Value on the step in theActivity Step Template. This can be done in P6. When creating the UDF Value using P6 Web Services it fails with an error. However, there is no error in any of the logs. Also the SQL trace never shows an insert being called.
    http://<HOST>:8206/p6ws/services/UDFValueService
    REQUEST:
    <v1:CreateUDFValues>
        <v1:UDFValue>
            <v1:Double>888.0</v1:Double>
            <v1:ForeignObjectId>262</v1:ForeignObjectId>
            <v1:UDFTypeObjectId>1025</v1:UDFTypeObjectId>
        </v1:UDFValue>
    </v1:CreateUDFValues>

    RESPONSE:
    <SOAP-ENV:Body>
      <SOAP-ENV:Fault>
        <faultcode>SOAP-ENV:Server</faultcode>
        <faultstring/>
        <detail>
            <ns:IntegrationFault xmlns:ns="http://xmlns.oracle.com/Primavera/P6/WS/IntegrationFaultType/V1">
               <ns:ErrorType>General</ns:ErrorType>
               <ns:ErrorCode>0</ns:ErrorCode>
               <ns:ErrorDescription/>
            </ns:IntegrationFault>
        </detail>
      </SOAP-ENV:Fault>
    </SOAP-ENV:Body>

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.