sp-dev-docs
sp-dev-docs copied to clipboard
invalid stoi argument - on setValue action in SharePoint List Formatting JSON
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
Declarative list formatting
Developer environment
Windows
What browser(s) / client(s) have you tested
- [ ] 💥 Internet Explorer
- [X] 💥 Microsoft Edge
- [X] 💥 Google Chrome
- [ ] 💥 FireFox
- [ ] 💥 Safari
- [ ] mobile (iOS/iPadOS)
- [ ] mobile (Android)
- [ ] not applicable
- [ ] other (enter in the "Additional environment details" area below)
Additional environment details
Edge: Version 105.0.1343.53 Chrome: ersion 105.0.5195.127
Describe the bug / error
If setup an setValue action in my code to change a icon when click on it.
I´ve already done that in another list and it works fine bu´t in this list i got this error
(ive changed the field from Boolean to Text for debugging, so dont wonder, basically i use boolean fields)
Thats what the Edge Debugging Tools shows when i click on the Icon:
And thats the JSON Code:
Steps to reproduce
This is my first time i got this error, in another List it works fine. It seems to be deeper problem.
Expected behavior
The Fieldvalue should be cghanged and the other Value should be shown.
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
Hey @shagra-ms may you have an idea here? Ive got this problems on some lists in the json formatting everytime only when i use the setValue action
It may be unrelated, but I've seen this error can come from the offline list sync function.
This page might help: Common issues syncing Microsoft SharePoint lists offline
@fowl2 you are right. This is caused by offline list sync function. We are working with the concerned team to fix the issue.
@dborchers-gc as a workaround, you can stop syncing the concerned list. Please use the steps shared here.
Thanks for the Tips i will test that