DFFS JSLink error: SyntaxError: “none” is not valid JSON

Home › Forums › Classic DFFS › DFFS JSLink error: SyntaxError: “none” is not valid JSON

Viewing 2 reply threads
  • Author
    Posts
    • #39708
      Aglika Tilev
      Participant

        Hi Alexander,

        I am experiencing an issue with DFFS in a classic SharePoint Online environment when opening/rendering files. The same error occurs for any file in the affected library:

        SyntaxError: Unexpected token ‘o’, “none” is not valid JSON

        After investigating the browser console, I found the relevant value:
        Direction: “none”

        It appears that the older dffs_jslink.js script tries to parse the Direction field property as DFFS JSON. However, the value is now the SharePoint default value “none”, which causes the JSON parsing error.

        The lists, content types and DFFS configuration have not been changed intentionally. Therefore, this looks like a compatibility issue with a SharePoint Online update, or possibly a reset/re-provisioning of the DFFS_Loader field in the affected content type or library.

        My assumption is that the Direction property should contain a JSON value expected by DFFS, but is currently set to “none”.

        Could you please advise if this is a known issue with older versions of dffs_jslink.js in SharePoint Online?
        What is the correct expected value/configuration for the Direction property and is there a safe way to repair the existing field or content type without recreating the full DFFS configuration?

        Thank you!
        Best regards
        Aglika

      • #39709
        Alexander Bautz
        Keymaster

          Hi,
          This has been addressed in the previous thread in this forum: SyntaxError: Unexpected token ‘o’, “none” is not valid JSON

          Regards,
          Alexander

        • #39710
          Aglika Tilev
          Participant

            Thanks, Alexander!
            Best regards
            Aglika

        Viewing 2 reply threads
        • You must be logged in to reply to this topic.