# O365 integration Return Wrong data Types

**URL:** <https://discuss.elastic.co/t/o365-integration-return-wrong-data-types/355276>\
**Category:** Kibana\
**Created:** [March 13, 2024, 5:39am UTC](https://discuss.elastic.co/t/o365-integration-return-wrong-data-types/355276 "2024-03-13T05:39:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajith\_pathiraja](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajith_pathiraja/32/116741_2.png) [@rajith\_pathiraja](https://discuss.elastic.co/u/rajith_pathiraja)\
**Post date:** [March 13, 2024, 5:39am UTC](https://discuss.elastic.co/t/o365-integration-return-wrong-data-types/355276/1 "2024-03-13T05:39:15Z")

</div>

Hi I have tried to integrate Microsoft O365 with Elastic and i have followed the given instruction but still didnt get log details return. So i tried using Dev tools and saw im getting below "

{  
"statusCode": 400,  
"error": "Bad Request",  
"message": """[request body]: types that failed validation:

- [request body.0.inputs]: expected value of type [array] but got [Object]
- [request body.1.inputs.o365-cel.streams.o365.audit.vars.client\_secret]: types that failed validation:
- [request body.0]: types that failed validation:
- [request body.0]: expected value of type [boolean] but got [Object]
- [request body.1]: expected value of type [string] but got [Object]
- [request body.2]: expected value of type [number] but got [Object]
- [request body.3]: expected value of type [array] but got [Object]
- [request body.4]: expected value of type [array] but got [Object]
- [request body.1]: expected value to equal [null]"""  
}

"

Can any one please help me with this ?

---

<div class="post-metadata">

**Author:** ![endpoint](https://avatars.discourse-cdn.com/v4/letter/e/e19b73/32.png) [@endpoint](https://discuss.elastic.co/u/endpoint)\
**Post date:** [March 18, 2024, 5:23pm UTC](https://discuss.elastic.co/t/o365-integration-return-wrong-data-types/355276/2 "2024-03-18T17:23:17Z")

</div>

+1  
I am getting the same issue integrating palo alto cortex xdr with the fleet api.

```auto
{
  "statusCode": 400,
  "error": "Bad Request",
  "message": """[request body]: types that failed validation:
- [request body.0.inputs]: expected value of type [array] but got [Object]
- [request body.1.inputs.xdr-httpjson.streams.panw_cortex_xdr.alerts.vars.api_token]: types that failed validation:
 - [request body.0]: types that failed validation:
  - [request body.0]: expected value of type [boolean] but got [Object]
  - [request body.1]: expected value of type [string] but got [Object]
  - [request body.2]: expected value of type [number] but got [Object]
  - [request body.3]: expected value of type [array] but got [Object]
  - [request body.4]: expected value of type [array] but got [Object]
 - [request body.1]: expected value to equal [null]"""
}

```

---

<div class="post-metadata">

**Author:** ![rajith\_pathiraja](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajith_pathiraja/32/116741_2.png) [@rajith\_pathiraja](https://discuss.elastic.co/u/rajith_pathiraja)\
**Post date:** [March 20, 2024, 3:18am UTC](https://discuss.elastic.co/t/o365-integration-return-wrong-data-types/355276/3 "2024-03-20T03:18:13Z")

</div>

Mine was sorted automatically, Dont know how but its sorted now 😃

---

<div class="post-metadata">

**Author:** ![rajith\_pathiraja](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajith_pathiraja/32/116741_2.png) [@rajith\_pathiraja](https://discuss.elastic.co/u/rajith_pathiraja)\
**Post date:** [March 25, 2024, 7:35am UTC](https://discuss.elastic.co/t/o365-integration-return-wrong-data-types/355276/4 "2024-03-25T07:35:56Z")

</div>

Again same error ? ☹

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 22, 2024, 7:36am UTC](https://discuss.elastic.co/t/o365-integration-return-wrong-data-types/355276/5 "2024-04-22T07:36:03Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
