1
0
-1

I get the following error:

Bad response when creating work item - 400 - response body: TF401320: Rule Error for field Hamilton Area. Error code: Required, HasValues, LimitedToValues, AllowsOldValue, InvalidEmpty.


My first sync looks like this:

// Only executes during first sync, i.e. creating a new workitem
	if(firstSync){
		issue.typeName         = "User Story"
		issue.description      = replica.description
		workItem."Microsoft.VSTS.Common.AcceptanceCriteria" = replica.AcceptanceCriteria
		issue.areaPath         = "Pendragon\\Hamilton"
		issue.customFields."Custom.HamiltonArea"?.value = "SLA"

	}


In Azure, the field has the following valid values:


I tried to make sure my custom field for Hamilton Area is being used correctly, by inspecting another ticket on Azure:

    "System.CommentCount": 0,
    "System.Title": "PMA-6604 - 231623 - Additional Limit Options",
    "System.BoardColumn": "New",
    "System.BoardColumnDone": false,
    "Microsoft.VSTS.Common.StateChangeDate": "2024-10-17T04:27:51.277Z",
    "Microsoft.VSTS.Common.Priority": 2,
    "Microsoft.VSTS.Common.ValueArea": "Business",
    "Microsoft.VSTS.CMMI.Blocked": "No",
    "Custom.HamiltonArea": "Project",
    "WEF_09D55F67C1C34240BBBE2B97D608E8E1_Kanban.Column": "New",
    "WEF_09D55F67C1C34240BBBE2B97D608E8E1_Kanban.Column.Done": false,
    "Custom.Waitingforclientfeedback": "No",


For the life of me I cannot work out why my First sync keeps giving an error. PLEASE HELP!!

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Support pls assist, I have some urgent tickets to get across

        CommentAdd your comment...