It's all about the answers!

Ask a question

Error returned even after specifying mandatory value -"CRVAP0290E CRMUD0061E The field "DeploymentUnit_Form" is mandatory; a value must be specified"


Alex Rolfes (112) | asked Mar 17 '17, 11:14 a.m.
edited Mar 17 '17, 11:24 a.m. by Ralph Schoon (63.1k33646)

Hello,


I'm sending a POST request to create a record on CQ with all the mandatory fields as part of the request and still getting back an error saying "CRVAP0290E CRMUD0061E The field "DeploymentUnit_Form" is mandatory; a value must be specified".

Here is my request
POST https://xxxxxxx/cqweb/oslc/repo/9.0.0/db/MSG2/record
Accept: application/json
OSLC-Core-Version: 2.0
Content-Type: application/json
Authorization: Basic xxxxxxxxxxxxxxxxxxxxx
{
  "prefixes":{
    "cq":"http://www.ibm.com/xmlns/prod/rational/clearquest/1.0/",
    "dcterms":"http://purl.org/dc/terms/",
    "oslc":"http://open-services.net/ns/core#",
    "oslc_cm":"http://open-services.net/ns/cm#"
  },
  "dcterms:type":"DeliveryNote",
  "cq:Supplier":"WebApp",
  "cq:Application":"WebCSC",
  "cq:KDGContact":"xxxxx",
  "cq:SupplierContact":"xxxxxx",
  "cq:AppVersion":"V1530_2017_05_00",
  "cq:Patch":"Frontend (2017_05)",
  "cq:TargetPlatform":"Linux",
  "cq:PackageType":"Standalone Patch",
  "cq:Comment":"Test",
  "cq:DeploymentUnit_Form":"Server"
}

Here is the response
409
Transfer-Encoding: chunked
Keep-Alive: timeout=10, max=100
Connection: Keep-Alive
Date: Fri, 17 Mar 2017 14:53:33 GMT
OSLC-Core-Version: 2.0
X-Frame-Options: SAMEORIGIN
Cache-Control: no-cache="set-cookie, set-cookie2"
Set-Cookie: JSESSIONID=xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Vary: Accept
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Content-Language: de-DE
Content-Type: application/json; charset=UTF-8
X-Powered-By: Servlet/3.0
{
  "oslc:message":"CRVAP0290E CRMUD0061E The field \"DeploymentUnit_Form\" is mandatory; a value must be specified. ",
  "oslc:statusCode":"409",
  "oslc:url":{
    "rdf:resource":"https:\/\/xxxxxxxx\/cqweb\/oslc\/repo\/9.0.0\/db\/MSG2\/record-type\/16781099\/creationDialog",
    "oslc:rel":"alternate",
    "oslc:hintWidth":906,
    "oslc:hintHeight":779
  },
  "details":{
    "invalidFields":{
      "DeploymentUnit_Form":{
        "message":"CRMUD0061E The field \"DeploymentUnit_Form\" is mandatory; a value must be specified.",
        "currentValue":""
      },
      "AppVersion":{
        "message":"CRMUD0061E The field \"AppVersion\" is mandatory; a value must be specified.",
        "currentValue":""
      }
    }
  }
}


We face this issue since upgrade CQ to 9.0.0
It was working in Version 7.1.2

Could you kindly tell me where am i going wrong?

Disaclaimer: I would like to use pre-formatted code as example but then it always complains about SPAM...

One answer



permanent link
Ralph Schoon (63.1k33646) | answered Mar 17 '17, 11:23 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Mar 17 '17, 11:25 a.m.

Alex, this is not a Clear Quest or OSLC forum. In principle this is off topic. 


From the error message, I am pretty sure that there is a mandatory attribute/field in the CQ record that is not set and that is the reason for the error. Actually the error says exactly that. The attribute/field is "DeploymentUnit_Form". The error message is pretty explicit about that. So maybe you are missing something even if you think you send all mandatory attributes. What could "DeploymentUnit_Form" refer to?


Comments
Alex Rolfes commented Mar 17 '17, 11:29 a.m. | edited Mar 28 '17, 7:39 a.m.

Hi Ralph,

whats the best place to raise CQ or OSLC questions?

when creation this issue via web gui DeploymentUnit is a dropdown

regards alex


Ralph Schoon commented Mar 28 '17, 7:39 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

https://developer.ibm.com/answers/index.html is the CQ forum.

http://open-services.net/ has a forum. Stackoverflow comes to mind too. 

If this is only due to an upgrade, consider support.

Consider to pass a valid value for DeploymentUnit .

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.