sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

invalid stoi argument - on setValue action in SharePoint List Formatting JSON

Open dborchers-gc opened this issue 2 years ago • 1 comments

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) 2022-10-15 19_12_32-Microsoft 365 Self-Service-Portal - Einheiten-Administration (EA) - Alle Element

Thats what the Edge Debugging Tools shows when i click on the Icon: 2022-10-15 19_14_18-ea_fields xlsx - Excel

And thats the JSON Code: image

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.

dborchers-gc avatar Oct 15 '22 17:10 dborchers-gc

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

ghost avatar Oct 15 '22 17:10 ghost

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

dborchers-gc avatar Dec 15 '22 18:12 dborchers-gc

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 avatar Dec 23 '22 02:12 fowl2

@fowl2 you are right. This is caused by offline list sync function. We are working with the concerned team to fix the issue.

shagra-ms avatar Dec 23 '22 03:12 shagra-ms

@dborchers-gc as a workaround, you can stop syncing the concerned list. Please use the steps shared here.

shagra-ms avatar Dec 23 '22 03:12 shagra-ms

Thanks for the Tips i will test that

dborchers-gc avatar Dec 23 '22 05:12 dborchers-gc