Skip to content

Inconsistent Percentage Field Handling Between UpdateAsync() and SystemUpdateAsync() #1693

Open

Description

@mateusz-sintel

Category

  • Bug

Describe the bug

When updating a SharePoint list item with a Percentage field, the value format is inconsistent between UpdateAsync() and SystemUpdateAsync().

  • Using UpdateAsync(): setting value 65 saves correctly as 65%.
  • Using SystemUpdateAsync(): setting value 65 saves incorrectly as 6500%. Only by setting 0.65 does it save correctly as 65%.

Steps to reproduce

  1. Create a SharePoint list with a Percentage column.
  2. Call UpdateAsync() with value 65.
    • ✅ Saved correctly as 65%.
  3. Call SystemUpdateAsync() with value 65.
    • ❌ Saved incorrectly as 6500%.
  4. Call SystemUpdateAsync() with value 0.65.
    • ✅ Saved correctly as 65%.

Expected behavior

Both UpdateAsync() and SystemUpdateAsync() should use the same value format for percentage fields. Providing 65 should always result in 65%.

Environment details (development & target environment)

  • SDK version: 1.15.0
  • OS: Windows 11
  • SDK used in: ASP.Net Web app
  • Framework: .NET Core v8.x
  • Additional details: SharePoint list with Percentage column type.

Activity

  1. added theissue type on Jul 15, 2026
  2. Adam-it commented on Aug 28, 2026

    @Adam-it
    Member

    from the quick research I made
     UpdateAsync(), REST ValidateUpdateListItem  - in this case values are sent as strings in  formValues  and parsed server-side exactly like the browser form.  So I guess 65% stores as  0.65 .

     SystemUpdateAsync() CSOM  SetFieldValue  - This writes the raw internal value, no validation, no formatting. A Percentage column is just a  Number field with  ShowAsPercentage="TRUE". So  65  is stored literally as 65 and rendered as 6500%, while  0.65  renders as 65%.

    Lets open it up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Candidate for fixingbughelp wanted

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions