4 Replies Latest reply on Sep 4, 2019 11:43 AM by Sunny Jiang

    TabPy Error: Cannot interpret json value of type 'object' as scalar value

    david huang

      Hey There --

       

      I just managed to successfully get my TabPy connection working, and I'm testing out really simple functions to familiarize myself with creating scripted calculated functions.

       

      I created a really really simple 'addition' function see below:

       

      And in Tableau -- I've created a simple function to test this out:

      Now --

      When I try to pull this newly created 'addition_demo' calculated field into the view below as a third column...:

       

      I get the following error message:

       

      I've tried changing the LoD calculation on the 'addition_demo' function to explicitly match the visualized LoD, but that didn't help either.

       

      Any help or insights would be greatly appreciated

       

      Thanks!

      David