0

I'm getting two different errors in salesforce workbench when trying to do POST and PATCH. I'm trying to update a picklist using a json as request body.

When we do POST, I get this error message: HTTP Method 'POST' not allowed. Allowed are HEAD,GET,PATCH,DELETE

And when I try PATCH, this one:

  • message: No se puede eliminar el número de serie de instancia complexvalue del VALUE_NULL valor null o faltaría un campo obligatorio en la solicitud at [line:3, column:33]
  • errorCode: JSON_PARSER_ERROR

One month ago I was able to do this easily but now I'm getting this errors. I attach images of the errors and my request body. The request body:

{
"Metadata": {
  "businessOwnerGroup": null,
  "businessOwnerUser": null,
  "businessStatus": null,
  "caseSensitive": null,
  "complianceGroup": null,
  "customDataType": null,
  "defaultValue": null,
  "deleteConstraint": null,
  "deprecated": null,
  "description": null,
  "displayFormat": null,
  "displayLocationInDecimal": null,
  "encrypted": null,
  "escapeMarkup": null,
  "externalDeveloperName": null,
  "externalId": false,
  "formula": null,
  "formulaTreatBlanksAs": null,
  "inlineHelpText": null,
  "isAIPredictionField": null,
  "isConvertLeadDisabled": null,
  "isFilteringDisabled": null,
  "isNameField": null,
  "isSortingDisabled": null,
  "label": "Unidad de Gestión",
  "length": null,
  "lookupFilter": null,
  "maskChar": null,
  "maskType": null,
  "metadataRelationshipControllingField": null,
  "populateExistingRows": null,
  "precision": null,
  "readOnlyProxy": null,
  "referenceTargetField": null,
  "referenceTo": null,
  "relationshipLabel": null,
  "relationshipName": null,
  "relationshipOrder": null,
  "reparentableMasterDetail": null,
  "required": false,
  "restrictedAdminField": null,
  "scale": null,
  "securityClassification": null,
  "startingNumber": null,
  "stripMarkup": null,
  "summarizedField": null,
  "summaryFilterItems": null,
  "summaryForeignKey": null,
  "summaryOperation": null,
  "trackFeedHistory": false,
  "trackHistory": false,
  "trackTrending": false,
  "translateData": null,
  "type": "Picklist",
  "unique": null,
  "urls": null,
  "valueSet": {
    "controllingField": null,
    "restricted": null,
    "valueSetDefinition": {
      "sorted": true,
      "value": [
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "Aeroespacial",
          "urls": null,
          "valueName": "AE"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "Ahí+",
          "urls": null,
          "valueName": "AH"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "Alliances",
          "urls": null,
          "valueName": "AL"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "AM&Testing",
          "urls": null,
          "valueName": "AM"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "Banking",
          "urls": null,
          "valueName": "BKing"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "BPO",
          "urls": null,
          "valueName": "BP"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "BPXnet",
          "urls": null,
          "valueName": "BX"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "Business",
          "urls": null,
          "valueName": "BS"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "Centers",
          "urls": null,
          "valueName": "CA"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "Change the Business (SuSI)",
          "urls": null,
          "valueName": "CB"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "Chazz",
          "urls": null,
          "valueName": "CZ"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "CSTR",
          "urls": null,
          "valueName": "CT"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "Cybersecurity",
          "urls": null,
          "valueName": "CG"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "Education",
          "urls": null,
          "valueName": "ED"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "ehCOS",
          "urls": null,
          "valueName": "EH"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "Enterprise & Cloud Solutions (ECS)",
          "urls": null,
          "valueName": "EC"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "Everilion",
          "urls": null,
          "valueName": "IL"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "everis Energy Transition",
          "urls": null,
          "valueName": "EV"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "Initiative",
          "urls": null,
          "valueName": "IN"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "Products",
          "urls": null,
          "valueName": "BM"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "Exeleria",
          "urls": null,
          "valueName": "EX"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "FAS",
          "urls": null,
          "valueName": "FS"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "General Management",
          "urls": null,
          "valueName": "MG"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "Globaleris",
          "urls": null,
          "valueName": "GL"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "HUB",
          "urls": null,
          "valueName": "HU"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "I- Deals",
          "urls": null,
          "valueName": "ID"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "Industry",
          "urls": null,
          "valueName": "IR"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "Infrastructure Management",
          "urls": null,
          "valueName": "IM"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "Insurance",
          "urls": null,
          "valueName": "SG"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "ITS",
          "urls": null,
          "valueName": "OT"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "IT Solutions & Services (ITS&S)",
          "urls": null,
          "valueName": "IS"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "Key Lines",
          "urls": null,
          "valueName": "KL"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "Konoss",
          "urls": null,
          "valueName": "KN"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "LGS",
          "urls": null,
          "valueName": "LN"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "everis Mobile",
          "urls": null,
          "valueName": "MB"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "NAE",
          "urls": null,
          "valueName": "NA"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "Nettit",
          "urls": null,
          "valueName": "NT"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "No aplica",
          "urls": null,
          "valueName": "No_aplica"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "Outsourcing",
          "urls": null,
          "valueName": "OU"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "Oversis",
          "urls": null,
          "valueName": "OV"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "Public Sector & Health",
          "urls": null,
          "valueName": "SP"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "SES",
          "urls": null,
          "valueName": "SS"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "Simumak",
          "urls": null,
          "valueName": "SM"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "Sin Determinar",
          "urls": null,
          "valueName": "SD"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "Solutions",
          "urls": null,
          "valueName": "SL"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "Structure",
          "urls": null,
          "valueName": "ST"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "Technology",
          "urls": null,
          "valueName": "TC"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "Telecom",
          "urls": null,
          "valueName": "TL"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "Training",
          "urls": null,
          "valueName": "TR"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "UTE ICASS",
          "urls": null,
          "valueName": "IC"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "UTE Sadesi",
          "urls": null,
          "valueName": "TE"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "UTE Sanidad",
          "urls": null,
          "valueName": "US"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": null,
          "label": "Utilities",
          "urls": null,
          "valueName": "UT"
        },
        {
            "color": null,
            "default": false,
            "description": null,
            "isActive": null,
            "label": "Green Deal",
            "urls": null,
            "valueName": "GD"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": false,
          "label": "Solutions-COL",
          "urls": null,
          "valueName": "Solutions_COL"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": false,
          "label": "UN-Enterprise & Cloud Solutions (ECS)-COL",
          "urls": null,
          "valueName": "UN_Ent_Cloud_Sol_ECS_COL"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": false,
          "label": "Aeroespacial-COL",
          "urls": null,
          "valueName": "Aeroespacial-COL"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": false,
          "label": "Exeleria-COL",
          "urls": null,
          "valueName": "Exeleria_COL"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": false,
          "label": "Key Lines - COL",
          "urls": null,
          "valueName": "Key_Lines_COL"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": false,
          "label": "Oversis-COL",
          "urls": null,
          "valueName": "Oversis_COL"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": false,
          "label": "Technology-COL",
          "urls": null,
          "valueName": "Technology_COL"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": false,
          "label": "SES-COL",
          "urls": null,
          "valueName": "SES_COL"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": false,
          "label": "BPO-COL",
          "urls": null,
          "valueName": "BPO_COL"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": false,
          "label": "Business-COL",
          "urls": null,
          "valueName": "Business_COL"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": false,
          "label": "Structure-COL",
          "urls": null,
          "valueName": "Structure_COL"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": false,
          "label": "Outsourcing-COL",
          "urls": null,
          "valueName": "Outsourcing_COL"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": false,
          "label": "Telecomunication",
          "urls": null,
          "valueName": "Telecomunication"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": false,
          "label": "TAS",
          "urls": null,
          "valueName": "TAS"
        },
        {
            "color": null,
            "default": false,
            "description": null,
            "isActive": false,
            "label": "PuebaInsert",
            "urls": null,
            "valueName": "INS"
        },
        {
          "color": null,
          "default": false,
          "description": null,
          "isActive": false,
          "label": "AIS",
          "urls": null,
          "valueName": "AIS"
        }
      ]
    },
    "valueSetName" : "UN",
    "valueSettings" : []
  },
  "visibleLines": null,
  "writeRequiresMasterRead": null
},
"FullName": "Candidatura__c.FRD_Unidad_de_Negocio__c"

}

Patch error

Post error

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.