Skip to content

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

@mateusz-sintel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions