|
1 | 1 | --- |
2 | 2 | title: Troubleshoot Web API client errors |
3 | 3 | description: Provides resolutions for the common client errors that occur when you use the Dataverse Web API. |
4 | | -ms.date: 01/23/2024 |
| 4 | +ms.date: 01/24/2024 |
5 | 5 | ms.custom: sap:Dataverse Web API and SDK\Odata endpoint errors |
6 | 6 | author: divkamath |
7 | 7 | ms.author: dikamath |
@@ -113,7 +113,7 @@ HTTP/1.1 404 Not Found |
113 | 113 |
|
114 | 114 | ### Cause |
115 | 115 |
|
116 | | -This error occurs when the incorrect HTTP method is applied to a function or action. In this case, the [WhoAmI function](xref:Microsoft.Dynamics.CRM.WhoAmI) requires the use of `GET` but `POST` was used. |
| 116 | +This error occurs when the incorrect HTTP method is applied to a function or action. In this case, the [WhoAmI function](xref:Microsoft.Dynamics.CRM.WhoAmI) requires the use of `GET` but `POST` is used. |
117 | 117 |
|
118 | 118 | ### How to avoid |
119 | 119 |
|
@@ -205,7 +205,7 @@ HTTP/1.1 400 Bad Request |
205 | 205 |
|
206 | 206 | #### Cause |
207 | 207 |
|
208 | | -This error occurs because there's no single-valued navigation property in the contact entity type named `parentcustomerid`. For more information, see [contact EntityType > Single-valued navigation properties](/power-apps/developer/data-platform/webapi/reference/contact#single-valued-navigation-properties). |
| 208 | +This error occurs because there's no single-valued navigation property in the contact entity type named `parentcustomerid`. For more information, see [Single-valued navigation properties](/power-apps/developer/data-platform/webapi/reference/contact#single-valued-navigation-properties). |
209 | 209 |
|
210 | 210 | `parentcustomerid` is the logical name of a lookup column in the contact table. All lookups have one or more single-valued navigation properties in OData. The names of the lookup properties don't always match the corresponding single-valued navigation property name. |
211 | 211 |
|
@@ -275,9 +275,9 @@ Ensure all line endings in the `$batch` request body are `CRLF`. If you can't us |
275 | 275 |
|
276 | 276 | ### Symptoms |
277 | 277 |
|
278 | | -The error occurs when the [Dataverse Web API](/power-apps/developer/data-platform/webapi/overview) receives a request with an invalid `odata.include-annotations` value in the `Prefer` request header value. This issue occurs when the request is sent using the `POST`, `PATCH`, `PUT` or `GET` HTTP methods with a `Prefer` request header that contains an invalid or improperly formatted value. |
| 278 | +The error occurs when the [Dataverse Web API](/power-apps/developer/data-platform/webapi/overview) receives a request with an invalid `odata.include-annotations` value in the `Prefer` request header value. This issue occurs when the request is sent using the `POST`, `PATCH`, `PUT`, or `GET` HTTP methods with a `Prefer` request header that contains an invalid or improperly formatted value. |
279 | 279 |
|
280 | | -In the following example, the `odata.include-annotations` value incorrectly includes backslashes '`\`' to escape the quote characters. |
| 280 | +In the following example, the `odata.include-annotations` value incorrectly includes backslashes (\) to escape the quote characters. |
281 | 281 |
|
282 | 282 | **Request** |
283 | 283 |
|
@@ -307,7 +307,7 @@ HTTP/1.1 400 Bad Request |
307 | 307 |
|
308 | 308 | ### Cause |
309 | 309 |
|
310 | | -To provide a more secure service, we have fixed an issue where invalid `Prefer` request header values were processed without validation when using the `POST`, `PATCH`, or `PUT` HTTP methods. Now, validation is enforced for all HTTP methods. This error will occur starting with Dataverse version 9.2.2412.3 that began deployment in January 2025 and will be deployed to all regions by February 2025. |
| 310 | +To provide a more secure service, we fix an issue where invalid `Prefer` request header values are processed without validation when using the `POST`, `PATCH`, or `PUT` HTTP methods. Now, validation is enforced for all HTTP methods. This error occurs starting with Dataverse version 9.2.2412.3 that begins deployment in January 2025 and will be deployed to all regions by February 2025. |
311 | 311 |
|
312 | 312 | ### How to avoid |
313 | 313 |
|
|
0 commit comments