Rally Software

 View Only
  • 1.  What is "HierarchicalRequirement.Type should not be null" issue

    Posted Oct 25, 2016 06:28 AM

    We are experiencing the error "HierarchicalRequirement.Type should not be null" error message when running Rally-JiRA connector plugin v4.6.5.

    JiRA version is 6.3.15 and Rally from https://rally1.rallydev.com/ 

     

    Below is relevant snippet from Error logs and completed rallylog has been attached.

    Also the configuration file for Rally-Jira connector plugin is also attached.

     

    Please take a look and let us help understand the issue here.

    ############################################ERROR LOG############################################

    [2016-10-21 05:55:03 Z] ERROR : RallyEIF::WRK::RallyConnection.rescue in create_internal - Unable to create a corresponding Rally item,
    Error on request - https://rally1.rallydev.com/slm/webservice/v2.0/HierarchicalRequirement/create?workspace=workspace/15386424272 -
    {:errors=>["Validation error: HierarchicalRequirement.Type should not be null", "Validation error: HierarchicalRequirement.PlanEstimate should not be null"], :warnings=>[]}
    [2016-10-21 05:55:03 Z] WARN : RallyEIF::WRK::RallyConnection.initialize -
    Error on request - https://rally1.rallydev.com/slm/webservice/v2.0/HierarchicalRequirement/create?workspace=workspace/15386424272 -
    {:errors=>["Validation error: HierarchicalRequirement.Type should not be null", "Validation error: HierarchicalRequirement.PlanEstimate should not be null"], :warnings=>[]}
    [2016-10-21 05:55:03 Z] ERROR : RallyEIF::WRK::Connector.rescue in copy_to_rally - Unable to create a Rally userstory with these field values: {:Name=>"Test Issue - Please ignore", :Description=>"Test Issue - Please ignore", :Owner=>"https://rally1.rallydev.com/slm/webservice/v2.0/user/18255906658", :ScheduleState=>"Defined", :JiraKey=>"PPBG-29", :JiraLink=>"<a href=\"https://lnxjiratst01.isus.emc.com:8443/browse/PPBG-29\">PPBG-29</a>", "Workspace"=>{"type"=>"Workspace", "Name"=>"VMAX Business Unit", "_ref"=>"https://rally1.rallydev.com/slm/webservice/v2.0/workspace/15386424272"}, "Project"=>"/project/62530950945"},
    Error on request - https://rally1.rallydev.com/slm/webservice/v2.0/HierarchicalRequirement/create?workspace=workspace/15386424272 -
    {:errors=>["Validation error: HierarchicalRequirement.Type should not be null", "Validation error: HierarchicalRequirement.PlanEstimate should not be null"], :warnings=>[]}
    [2016-10-21 05:55:03 Z] INFO : RallyEIF::WRK::Connector.copy_to_rally - Copy JIRA Story ID PPBG-22 to Rally
    [2016-10-21 05:55:06 Z] ERROR : RallyEIF::WRK::RallyConnection.rescue in create_internal - Unable to create a corresponding Rally item,
    Error on request - https://rally1.rallydev.com/slm/webservice/v2.0/HierarchicalRequirement/create?workspace=workspace/15386424272 -
    {:errors=>["Validation error: HierarchicalRequirement.Type should not be null"], :warnings=>[]}
    [2016-10-21 05:55:06 Z] WARN : RallyEIF::WRK::RallyConnection.initialize -
    Error on request - https://rally1.rallydev.com/slm/webservice/v2.0/HierarchicalRequirement/create?workspace=workspace/15386424272 -
    {:errors=>["Validation error: HierarchicalRequirement.Type should not be null"], :warnings=>[]}
    [2016-10-21 05:55:06 Z] ERROR : RallyEIF::WRK::Connector.rescue in copy_to_rally - Unable to create a Rally userstory with these field values: {:Name=>"test story", :Description=>"test story", :Owner=>"https://rally1.rallydev.com/slm/webservice/v2.0/user/18255906658", :ScheduleState=>"Defined", :PlanEstimate=>20.0, :JiraKey=>"PPBG-22", :JiraLink=>"<a href=\"https://lnxjiratst01.isus.emc.com:8443/browse/PPBG-22\">PPBG-22</a>", "Workspace"=>{"type"=>"Workspace", "Name"=>"VMAX Business Unit", "_ref"=>"https://rally1.rallydev.com/slm/webservice/v2.0/workspace/15386424272"}, "Project"=>"/project/62530950945"},
    Error on request - https://rally1.rallydev.com/slm/webservice/v2.0/HierarchicalRequirement/create?workspace=workspace/15386424272 -
    {:errors=>["Validation error: HierarchicalRequirement.Type should not be null"], :warnings=>[]}
    [2016-10-21 05:55:06 Z] ANY : RallyEIF::WRK::ConnectorRunner.process_service - Finished Service COPY_JIRA_TO_RALLY
    [2016-10-21 05:55:06 Z] ANY : RallyEIF::WRK::ConnectorRunner.process_service - Starting Service COPY_RALLY_TO_JIRA

    Attachment(s)

    zip
    rallylog.log.zip   2 KB 1 version
    zip
    New.xml.zip   1 KB 1 version


  • 2.  Re: What is "HierarchicalRequirement.Type should not be null" issue
    Best Answer

     
    Posted Oct 25, 2016 10:39 AM

    Hey RaghavendraPrasad1379702, usually when we see something like this, it's because someone has set the field as "Required" in the workspace.

     

    In this case, I would bet that the "Type" field on  is required in whichever workspace you are running the connector against. I wonder if that's a custom field? 

     

    bello01 flyhi01



  • 3.  Re: What is "HierarchicalRequirement.Type should not be null" issue

    Posted Oct 25, 2016 11:35 AM

    RaghavendraPrasad1379702

     

    It looks like you are missing the mapping for a couple of required fields on the Agile Central side. There are a couple of way to determine if this is the issue or not. 

     

    1. Create a new Story via the UI in Agile Central
      1. You will see a red tag with the number of required fields indicated in the upper right, near the "Name" field
      2. Review each field that is displayed in red and confirm they are all mapped in your configuration file
    2. Or you can add a <FieldDefault> in the <RallyConnection> section for both Type and PlanEstimate
      1. <FieldDefaults>
        <Field><Name>Type</Name><Default>UPDATE</Default></Field>
        <Field><Name>PlanEstimate</Name><Default>UPDATE</Default></Field>
        </FieldDefaults>
      2. Please be sure to update the <Default> value with an appropriate value from your Agile Central system prior to running the connector. 

     

    Once you have done one (or both) of the above, please rerun the connector in debug mode. If issues persist, please let me know and I can open a case for you.

     

    Thank you!

     

    Best,

    Hilary Flygare

    CA Agile Central Customer Support



  • 4.  Re: What is "HierarchicalRequirement.Type should not be null" issue

    Posted Oct 26, 2016 07:42 AM

    Thanks to flyhi01 and @JohnStreeter  for the suggestions, i was able to sync stories between Rally and Jira