Applies to Product - Microsoft Dataverse
What’s happening?
The customer encounters an error when making an HTTP PATCH request to a custom entity, resulting in the message: "Incorrect attribute value type System.String." This \ arises specifically when attempting to create or update records using the API.
Reason:
The error occurs when the API call is made with an attribute that is expected to be of a numeric type but is being interpreted as a string during runtime. This can happen if the input parameters are not formatted correctly or if there are issues with the entity's configuration, such as the presence of an active solution layer affecting the field.
Resolution:
- Verify if there is any active solution layer for the impacted field of the entity. If there is no active or unmanaged layer, check what other layers exist.
- Ensure that the field is correctly defined as a numeric type in the entity schema.
- When making the API call, ensure the input parameters are passed in the body of the request.
- If this persists, consider using a different client or device (e.g., Edge's developer tools) to send the request and check if the error still occurs.
