Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

LeanIX - Servicenow bad request 400 while trying to update the cmdb_ci_buss_appl

Priya123
Tera Contributor

LeanIX - Servicenow bad request 400 while trying to update the cmdb_ci_buss_appl

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@Priya123 

http status 400 means you sent the wrong request.

Did you consume the endpoint as per the documentation from 3rd party team?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Lukas B
Tera Contributor

We have the same issue with our LeanIX integration:

Delete on table cmdb_ci_business_app does not work with following error:

{
  "error": {
    "message": "Failed to delete record with id=3ec42bae47f30a10d5d1dc3d736d4334 in table=cmdb_ci_business_app",
    "detail": "null"
  },
  "status": "failure"
}

Only on table cmdb_ci_business_app, all other tables work.

User has admin role, cross-scope privilege exist including delete, table is configured to allow delete from All Application Scopes... But still, error 400...

If I try this from REST API Explorer and refresh page after trying, I get:

 

Delete operation against 'cmdb_ci_business_app' from scope 'x_lixgh_leanix_int' has been refused due to the table's cross-scope access policy
-- even though it exists.
 
Any ideas?

MaxMixali
Kilo Sage

1. Campi Obbligatori Mancanti

Problema: Alcuni campi obbligatori non sono valorizzati.

Soluzione - Verifica campi obbligatori.

2. Problema con Business Rules o Validazioni

Problema: Una Business Rule o Script Include sta bloccando l'update.

Soluzione - Identifica Business Rules attive.

3. Problema con ACL (Permessi)

Problema: L'utente non ha i permessi necessari per aggiornare il record.

Soluzione - Verifica ACL.

 

4. Problema con Campi Reference

Problema: Un campo reference contiene un sys_id non valido.

Soluzione - Valida reference fields.

 

5. Problema con JSON/Payload REST API

Problema: Se usi REST API, il payload JSON potrebbe essere malformato.

Soluzione - Verifica il payload.

 

 

6. Problema con Data Policy

Problema: Una Data Policy sta bloccando l'update.

Soluzione - Verifica Data Policies.