• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Datafile datasource saving => 422 (Unprocessable Entity)

    User help
    2
    13
    2.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • terrypackerT
      terrypacker
      last edited by

      @mattfox said in Datafile datasource saving => 422 (Unprocessable Entity):

      I cannot see where I need to configure for the location of the poll class code... It shows it in the dropdown in the new UI...

      The files will show up in the drop down after you use the Data File Tools tab to upload and compile the templates.

      You can see the templates in the file store via this url (or by navigating there in the UI)

      ui/administration/file-stores?fileStore=DATA_FILE_TEMPLATE
      1 Reply Last reply Reply Quote 0
      • MattFoxM
        MattFox
        last edited by MattFox

        @terrypacker said in Datafile datasource saving => 422 (Unprocessable Entity):

        ui/administration/file-stores?fileStore=DATA_FILE_TEMPLATE

        0_1597872681028_82d03c53-f29d-4df9-89d0-b848b090e788-image.png

        When I used your link it redirected me to default...
        Regardless... looks like I'm having to resave every data file datasource T_T
        The other issue is despite data coming in, looks like mango was still giving a 201 for each datapoint sent into the API even though the API data wasn't going in...

        Do not follow where the path may lead; go instead where there is no path.
        And leave a trail - Muriel Strode

        1 Reply Last reply Reply Quote 0
        • MattFoxM
          MattFox
          last edited by

          Anyfurther news? It's still fubar and I've got data now that won't/can't enter the system

          Do not follow where the path may lead; go instead where there is no path.
          And leave a trail - Muriel Strode

          1 Reply Last reply Reply Quote 0
          • MattFoxM
            MattFox
            last edited by

            I've exported and tried to reimport one of my broken datasources that won't update and I get this error:

            Data source 'DS_7e7a794c-2686-438a-8b5f-2a28e0ea0db2': templateFileStore --> No read permission for filestore DATA_FILE_COMPILED_TEMPLATE
            Data source 'DS_7e7a794c-2686-438a-8b5f-2a28e0ea0db2': pollClassFileStore --> No read permission for filestore DATA_FILE_COMPILED_TEMPLATE
            

            Do not follow where the path may lead; go instead where there is no path.
            And leave a trail - Muriel Strode

            1 Reply Last reply Reply Quote 0
            • terrypackerT
              terrypacker
              last edited by

              @MattFox I'm surprised the permissions are not working. How are you importing it? There are specific permissions for the file store in the System Settings area but normally one would import as superadmin so I'm confused as to why you don't have permission.

              1 Reply Last reply Reply Quote 0
              • MattFoxM
                MattFox
                last edited by MattFox

                I am too, I don't understand it myself. I am a superadmin. I'm using the config import/export in the mangoUI

                Do not follow where the path may lead; go instead where there is no path.
                And leave a trail - Muriel Strode

                1 Reply Last reply Reply Quote 0
                • terrypackerT
                  terrypacker
                  last edited by

                  I just checked and the problem is because of the file store permissions. In Mango 3.7.x there is no short circuit for superadmin to get permission to a file store. This means you have to explicitly set the superadmin role on the DATA_FILE_COMPILED_TEMPLATE File Store Read Permission.

                  The 422 error is stopping you from updating the data source to point to the correct poll class.

                  1 Reply Last reply Reply Quote 0
                  • MattFoxM
                    MattFox
                    last edited by

                    @terrypacker said in Datafile datasource saving => 422 (Unprocessable Entity):

                    DATA_FILE_COMPILED_TEMPLATE

                    Ok I've added the permission explicitly and still no change. I restarted mango trying to load your debug. I'm not seeing debug so I'm wondering if it's how I start mango...
                    Realised I'm still booting mango as if it were 3.5.6.

                    I take it it's preferred if I boot as if it's 3.6+?

                    Do not follow where the path may lead; go instead where there is no path.
                    And leave a trail - Muriel Strode

                    1 Reply Last reply Reply Quote 0
                    • terrypackerT
                      terrypacker
                      last edited by

                      I just had @Dave-Frazier try to get it working in 3.7 and he wasn't able to. I won't have time until later this week at the earliest.

                      Can you not approach this problem a different way, are you using the data file import functionality? It sounds like you are not. Perhaps you could just use settable virtual no-change data points to store your values in from the REST api?

                      1 Reply Last reply Reply Quote 0
                      • MattFoxM
                        MattFox
                        last edited by MattFox

                        Cripes Id love to but we are talking five thousand plus points here. Thanks so much for digging deeper

                        Do not follow where the path may lead; go instead where there is no path.
                        And leave a trail - Muriel Strode

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post