400 (Bad Request) Sharepoint update multilookup field.

%3CLINGO-SUB%20id%3D%22lingo-sub-2344286%22%20slang%3D%22en-US%22%3E400%20(Bad%20Request)%20Sharepoint%20update%20multilookup%20field.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2344286%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22name-and-value%22%3E%3CSPAN%20class%3D%22name%22%3EHello%20All%2C%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22name-and-value%22%3E%3CSPAN%20class%3D%22name%22%3E%26nbsp%3BWhen%20I%20am%20going%20to%20update%20multilookup%20field%20in%20sharepoint%20library%20using%20angular%2010%2C%20I%20get%20the%20following%20error(working%20for%20single%20lookup%20field%20not%20working%20for%20Multilookup%20field).%20My%20payload%20is%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3Bfor%20e.g.%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3Evar%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3BPayload%3D%26nbsp%3B%7B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BSubCircularIDId%3A%26nbsp%3B%7B%26nbsp%3B'results'%3A%20%5B10%2C32%5D%20%7D%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BBOBApproverNameId%3A%26nbsp%3B%7B%26nbsp%3B'results'%3A%20%5B421%2C19%5D%20%7D%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%7D%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3COL%20class%3D%22children%20expanded%22%3E%3CLI%3E%3CSPAN%20class%3D%22name-and-value%22%3E%3CSPAN%20class%3D%22name%22%3Eerror%3C%2FSPAN%3E%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22object-value-object%20value%22%3E%7Bcode%3A%20%22-1%2C%20Microsoft.SharePoint.Client.InvalidClientQueryException%22%2C%20message%3A%20%7Blang%3A%20%22en-US%22%2C%E2%80%A6%7D%7D%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FLI%3E%3COL%20class%3D%22children%20expanded%22%3E%3CLI%3E%3CSPAN%20class%3D%22name-and-value%22%3E%3CSPAN%20class%3D%22name%22%3Ecode%3C%2FSPAN%3E%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22object-value-string%20value%22%3E%22-1%2C%20Microsoft.SharePoint.Client.InvalidClientQueryException%22%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%20class%3D%22name-and-value%22%3E%3CSPAN%20class%3D%22name%22%3Emessage%3C%2FSPAN%3E%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22object-value-object%20value%22%3E%7Blang%3A%20%22en-US%22%2C%E2%80%A6%7D%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FLI%3E%3COL%20class%3D%22children%20expanded%22%3E%3CLI%3E%3CSPAN%20class%3D%22name-and-value%22%3E%3CSPAN%20class%3D%22name%22%3Elang%3C%2FSPAN%3E%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22object-value-string%20value%22%3E%22en-US%22%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%20class%3D%22name-and-value%22%3E%3CSPAN%20class%3D%22name%22%3Evalue%3C%2FSPAN%3E%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22object-value-string%20value%22%3E%22A%20value%20without%20a%20type%20name%20was%20found%20and%20no%20expected%20type%20is%20available.%20When%20the%20model%20is%20specified%2C%20each%20value%20in%20the%20payload%20must%20have%20a%20type%20which%20can%20be%20either%20specified%20in%20the%20payload%2C%20explicitly%20by%20the%20caller%20or%20implicitly%20inferred%20from%20the%20parent%20value.%22%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FOL%3E%3C%2FOL%3E%3C%2FOL%3E%3C%2FLINGO-BODY%3E
New Contributor

Hello All, 

 When I am going to update multilookup field in sharepoint library using angular 10, I get the following error(working for single lookup field not working for Multilookup field). My payload is

 for e.g. var Payload= {
                     SubCircularIDId: { 'results': [10,32] },
                     BOBApproverNameId: { 'results': [421,19] }
}

 

  1. error: {code: "-1, Microsoft.SharePoint.Client.InvalidClientQueryException", message: {lang: "en-US",…}}
    1. code: "-1, Microsoft.SharePoint.Client.InvalidClientQueryException"
    2. message: {lang: "en-US",…}
      1. lang: "en-US"
      2. value: "A value without a type name was found and no expected type is available. When the model is specified, each value in the payload must have a type which can be either specified in the payload, explicitly by the caller or implicitly inferred from the parent value."
0 Replies