Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ListItemAllFields.Update() cannot update multiple lines text field with more than 255 characters. #1509

Open
1 task done
IllumiC opened this issue Aug 22, 2024 · 2 comments
Assignees
Labels
area: model 📐 Related to the core SDK models question Further information is requested

Comments

@IllumiC
Copy link

IllumiC commented Aug 22, 2024

Category

  • Bug

Describe the bug

IFolder.ListItemAllFields.Update() fails when updating a multiple line text field to more than 255 characters.
Instead, IList.ListItemAllFields.UpdateOverwriteVersionAsync() must be used.

Steps to reproduce

IFolder.ListItemAllFields["MultiLineText"] = "255 Chars Limit, 255 Chars Limit, 255 Chars Limit, 255 Chars Limit, 255 Chars Limit, 255 Chars Limit, 255 Chars Limit, 255 Chars Limit, 255 Chars Limit, 255 Chars Limit, 255 Chars Limit, 255 Chars Limit, 255 Chars Limit, 255 Chars Limit, 255 Chars Limit!!";
IFolder.ListItemAllFields.UpdateOverwriteVersionAsync(); // Works

IFolder.ListItemAllFields["MultiLineText"] = "255 Chars Limit, 255 Chars Limit, 255 Chars Limit, 255 Chars Limit, 255 Chars Limit, 255 Chars Limit, 255 Chars Limit, 255 Chars Limit, 255 Chars Limit, 255 Chars Limit, 255 Chars Limit, 255 Chars Limit, 255 Chars Limit, 255 Chars Limit, 255 Chars Limit!!";
IFolder.ListItemAllFields.Update(); // Works

IFolder.ListItemAllFields["MultiLineText"] = "280 Chars Limit, 280 Chars Limit, 280 Chars Limit, 280 Chars Limit, 280 Chars Limit, 280 Chars Limit, 280 Chars Limit, 280 Chars Limit, 280 Chars Limit, 280 Chars Limit, 280 Chars Limit, 280 Chars Limit, 280 Chars Limit, 280 Chars Limit, 280 Chars Limit, 280 Chars Limit!!";
IFolder.ListItemAllFields.UpdateOverwriteVersionAsync(); // Works

IFolder.ListItemAllFields["MultiLineText"] = "280 Chars Limit, 280 Chars Limit, 280 Chars Limit, 280 Chars Limit, 280 Chars Limit, 280 Chars Limit, 280 Chars Limit, 280 Chars Limit, 280 Chars Limit, 280 Chars Limit, 280 Chars Limit, 280 Chars Limit, 280 Chars Limit, 280 Chars Limit, 280 Chars Limit, 280 Chars Limit!!";
IFolder.ListItemAllFields.Update(); // Fails

Gives the generic error to check if the field exists.

Expected behavior

Text is updated.

Environment details (development & target environment)

DELETE THIS LINE BEFORE SUBMITTING - Complete the following (if ignored you'll be prompted for it before we can address your issue... save the time and provide it in your initial submission).

  • SDK version: 1.12.0 / 1.13.0
  • OS: Windows 10
  • SDK used in: Azure WebJob (manually triggered)
  • Framework: .NET Core 6.0
  • Browser(s): Console
  • Tooling: Visual Studio 2022
@jansenbe
Copy link
Contributor

@IllumiC : do you have an option to check this behaviour from the UI with Fiddler (or alternative) and verify is another API call is used when the field content exceeds 255 chars?

@jansenbe jansenbe self-assigned this Sep 17, 2024
@jansenbe jansenbe added question Further information is requested area: model 📐 Related to the core SDK models labels Sep 17, 2024
@IllumiC
Copy link
Author

IllumiC commented Sep 19, 2024

Hi jansenbe, apologies but I'm not able to investigate it myself further due to timeline constraints. Kind regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: model 📐 Related to the core SDK models question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants