It's all about the answers!

Ask a question

Programmatically Update Modified-On for DNG resource


Chidambaram L (23414287) | asked Jan 04, 9:27 a.m.
edited Jan 04, 11:42 a.m.
We are using DNG 702 with latest fix pack.

We are changing from one component model to multiple component model; hence we wanted to distribute the Modules from one Component to Multiple Components.

I am cloning each Module Baseline to the same Target Folder. Target is updated for each Clone. But Modified-On shows the time of cloning.


Following call returns 403 error:

Section in Bold in the Body is added to the standard Body.

Body:
    <rm:Artifact rdf:about="">
        <rm:hasAttrVal rdf:parseType="Resource">
            <rdf:value rdf:resource="http://www.ibm.com/xmlns/rdm/types/ArtifactFormats#Text"/>
            <rm:hasAttrDef rdf:resource="http://www.ibm.com/xmlns/rdm/types/ArtifactFormat"/>
        </rm:hasAttrVal>
        <rm:hasAttrVal rdf:parseType="Resource">
            <rm:hasAttrDef rdf:resource="https://localhost:9443/rm/types/AD_rDFs1KrvEe6888SLt2uf4g"/>
        </rm:hasAttrVal>
        <rm:hasAttrVal rdf:parseType="Resource">
            <rm:hasAttrDef rdf:resource="https://localhost:9443/rm/types/AD_rDFs1KrvEe6888SLt2uf4g"/>
        </rm:hasAttrVal>
        <rm:hasAttrVal rdf:parseType="Resource">
            <rdf:value rdf:datatype="http://www.w3.org/2001/XMLSchema#string"/>
            <rm:hasAttrDef rdf:resource="http://purl.org/dc/terms/description"/>
        </rm:hasAttrVal>
        <rm:hasAttrVal rdf:parseType="Resource">
            <rdf:value rdf:parseType="Literal">
                <div xmlns="http://www.w3.org/1999/xhtml">
                    <p dir="ltr" id="_1638188924853">This document defines common diagnostic requirements shared by all tools of the PL48 platform. The latest version of requirements in this document shall be included by reference in any new PL48 Tool SOR. 4</p>
                </div>
            </rdf:value>
            <rm:hasAttrDef rdf:resource="http://www.ibm.com/xmlns/rdm/types/PrimaryText"/>
        </rm:hasAttrVal>
        <rm:hasAttrVal rdf:parseType="Resource">
            <rdf:value rdf:datatype="http://www.w3.org/2001/XMLSchema#string"/>
            <rm:hasAttrDef rdf:resource="http://purl.org/dc/terms/title"/>
        </rm:hasAttrVal>
        <rm:hasAttrVal rdf:parseType="Resource">
            <rdf:value rdf:datatype="http://www.w3.org/2001/XMLSchema#string">PL48.DIAG.20266</rdf:value>
            <rm:hasAttrDef rdf:resource="https://localhost:9443/rm/types/AD_rDFs1qrvEe6888SLt2uf4g"/>
        </rm:hasAttrVal>
        <rm:hasAttrVal rdf:parseType="Resource">
            <rdf:value rdf:datatype="http://www.w3.org/2001/XMLSchema#int">20266</rdf:value>
            <rm:hasAttrDef rdf:resource="https://localhost:9443/rm/types/AD_rDNoq6rvEe6888SLt2uf4g"/>
        </rm:hasAttrVal>
        <rm:hasAttrVal rdf:parseType="Resource">
            <rdf:value rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2024-01-03T13:42:29.617Z</rdf:value>
            <rm:hasAttrDef rdf:resource="http://purl.org/dc/terms/modified"/>
        </rm:hasAttrVal>
        <rm:ofType rdf:resource="https://localhost:9443/rm/types/OT_rD4XAKrvEe6888SLt2uf4g"/>
        <rm:processArea rdf:resource="https://localhost:9443/rm/process/project-areas/_h8mvAJBMEe6XlPujJfyqOA"/>
        <rm:module rdf:resource="https://localhost:9443/rm/resources/MD_yC1g4JBOEe6XlPujJfyqOA"/>
        <rm:isHeading rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">false</rm:isHeading>
    </rm:Artifact>
</rdf:RDF>


403 Response

    <h1>Error 403: Forbidden</h1>
    <p>CRRRS8660E The system attribute http://purl.org/dc/terms/modified cannot be updated to
        2024-01-03T13:42:29.617Z^^http://www.w3.org/2001/XMLSchema#dateTime.
        <hr><i>Requirements Management/7.0.2 SR1</i></p>

One answer



permanent link
Davyd Norris (2.4k217) | answered Jan 04, 6:05 p.m.

Modified on and Modified By are system controlled and can't be updated programmatically

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.