JSON formatting - users need to reload the library view manually

Copper Contributor

Hello,

 

In april 2020, I have created JSON list formatting in one of my Document Library that would change the color of the item title [$FileLeafRef] if the number of child items [$ItemChildCount] if greater than 0.

 

All was perfect, but since some weeks, the JSON script rendering is OK, but the library view is not getting refreshed. Customers need to reload the library manually to see the change.

 

We have seen the following change in our JSON script (abstract below)

Before Microsoft update

 

 

 

{
  "schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json",
  "debugMode": true,
  "hideSelection": true,
  "hideColumnHeader": true,
  "rowFormatter":

 

 

 

After Microsoft Update

 

 

 

{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/row-formatting.schema.json",
  "schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json",
  "debugMode": true,
  "hideSelection": true,
  "hideColumnHeader": true,
  "rowFormatter":

 

 

 

Who knows if Microsoft will fix this bug and when?

 

4 Replies
Difficult to answer this one, best you can do here is open a support ticket to notify this issue. Hopefully Microsoft can move fast on the issue, but it's not guaranteed

Hello @Juan Carlos González Martín 

Thank you for your message. I already try to open a support ticket to Microsoft 365 support, unfortunately, the answers was "We provide no support for JSON Scripts and code at Microsoft 365. please ask Microsoft Tech Community" !!!

 

Best regards,

Pierre-Yves

That's a shame :-(. I will insist on that and also try to report the problem you are having through GitHub over here where there are View formatting samples: https://github.com/pnp/List-Formatting
Thank you Juan for the good idea. I will try :)