Clarity

Expand all | Collapse all

xog write error on sub custom object to project

Jump to Best Answer
  • 1.  xog write error on sub custom object to project

    Posted 01-11-2019 06:50 AM

    Hope some one can help me, as something must be wrong with my syntacs

    (have never tried writing to a sub object)

     

    I have made a custom sub object where project is master.

    Now I am trying to update the sub object through a process, and I just get this:

    [XOG]Error Information:<Description>com.niku.union.odf.exception.ODFServiceException: An exception occurred while trying to update an object instance z_pf_st_chnge</Description>

     

    -------------

    This is a copy of the xml piece I am using:

     

    <gel:parse var="v_XOG_insert">
       <NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_customObjectInstance.xsd">
            <Header action="write" externalSource="NIKU" objectType="customObjectInstance" version="14.3.0.298">
             <args name="overrideAutoNumbering" value="false"/>
            </Header>
            <customObjectInstances objectCode="z_pf_st_chnge">
             <instance instanceCode="a" objectCode="z_pf_st_chnge" parentInstanceCode="${gel_objectInstanceId}" parentObjectCode="project">
              <CustomInformation>
               <ColumnValue name="partition_code">NETS_IT</ColumnValue>
               <ColumnValue name="code">a</ColumnValue>
               <ColumnValue name="name">Stage change</ColumnValue>
               <ColumnValue name="page_layout">odf.z_pf_st_chngeFrame</ColumnValue>
               <ColumnValue name="odf_period_start"/>
               <ColumnValue name="odf_period_end"/>
               <ColumnValue name="z_prjid">${ProjectID}</ColumnValue>
               <ColumnValue name="z_prjname">${ProjectName}</ColumnValue>
              </CustomInformation>
             </instance>
            </customObjectInstances>
       </NikuDataBus>
      </gel:parse>

    [XOG]Error Information:<Description>com.niku.union.odf.exception.ODFServiceException: An exception occurred while trying to update an object instance z_pf_st_chnge</Description>



  • 2.  Re: xog write error on sub custom object to project

    Posted 01-11-2019 07:44 AM

    Can you XOG in it through the XOG client?

    If not what is the error?

    Does the process work if you replace the parameters with real values?



  • 3.  Re: xog write error on sub custom object to project

    Posted 01-11-2019 07:50 AM

    Put a message line in the gel to store the actual xml with the values for the parameters inserted and run that in the XOG client.



  • 4.  Re: xog write error on sub custom object to project

    Posted 01-11-2019 08:35 AM

    Now I have tried that

    and then it just says: Wait a moment while the system processes the action

     

    but then it just stays there......



  • 5.  Re: xog write error on sub custom object to project

    Posted 01-11-2019 08:44 AM



  • 6.  Re: xog write error on sub custom object to project

    Posted 01-11-2019 08:51 AM

    Think I did it wrong and tried again

    And the result is then

    Invalid parent object instance 5012023 for object project while importing instance a for object z_pf_st_chnge.

    I just do not understand why it is wrong, and I am sure you cannot help me with that ;o)

    But is this the way to update when it is a sub object to project?

    And many thanks for your help - It learned me a way to find the message.... ;o)



  • 7.  Re: xog write error on sub custom object to project
    Best Answer

     
    Posted 01-11-2019 09:05 AM

    You appear to be using the internal ID for the Project (the 5****** number), you should be using the (visible) Project ID (i.e. the human-readable code displayed in the UI)



  • 8.  Re: xog write error on sub custom object to project

    Posted 01-11-2019 02:24 PM

    If you are not that experienced as turst07 that you can see the problem off hand, you can verify the format of the xml tags and type of values by first making a read of an instance.



  • 9.  Re: xog write error on sub custom object to project

    Posted 01-14-2019 01:43 AM

    Thank you so much!!! ;o)



  • 10.  Re: xog write error on sub custom object to project

    Posted 01-11-2019 07:46 AM

    Have you tried just running the XML into the system (i.e. not via GEL, just via a XOG client) - just to see if you get a more helpful error message back?



  • 11.  Re: xog write error on sub custom object to project

    Posted 01-11-2019 07:58 AM

    No not yet, and I am not quite sure how to, but I'll try to find out - Thanks



  • 12.  Re: xog write error on sub custom object to project

    Posted 01-11-2019 07:49 AM

    Hi Lisbeth, 

     

    Check if there is any Multi Valued Lookup Attribute(s) in that custom object. If yes, then I have seen that the the The XOG XML will be expecting the tags of these attribute even though they are not required fields for the instance to be created. Hope that helps. 

     

    Thanks,

    Abhisek



  • 13.  Re: xog write error on sub custom object to project

    Posted 01-11-2019 07:56 AM

    Thanks Abhisek

    There is one for the partition, and I have that one - but thanks and good to know