• 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 4 Documentation Website Mango 5 Documentation Website Radix IoT LinkedIn

    Exporting and Importing to another Mango Problem

    Scheduled Pinned Locked Moved User help
    4 Posts 2 Posters 2.3k Views 1 Watching
    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.
    • JoelHaggarJ Offline
      JoelHaggar
      last edited by

      Hi,

      I'm using version 1.11.0 and noticed a problem. I have two mango instances and am trying to duplicate the systems.

      I have 3 virtual datapoints with event handlers and a VMStats Data Source. I has able to export and import all of these.

      I was not able to import the watch list of the datapoints from the VMStats Data Source. If I export and then re-import on the same system it works fine.

      I've attached two text files with the data I'm trying to import

      This is the error I get when importing the watch list:
      PreparedStatementCallback; SQL [insert into watchListPoints values (?,?,?)]; INSERT on table 'WATCHLISTPOINTS' caused a violation of foreign key constraint 'WATCHLISTPOINTSFK1' for key (0). The statement has been rolled back.; nested exception is java.sql.SQLIntegrityConstraintViolationException: INSERT on table 'WATCHLISTPOINTS' caused a violation of foreign key constraint 'WATCHLISTPOINTSFK1' for key (0). The statement has been rolled back., caused by: 'INSERT on table 'WATCHLISTPOINTS' caused a violation of foreign key constraint 'WATCHLISTPOINTSFK1' for key (0). The statement has been rolled back.', caused by: 'INSERT on table 'WATCHLISTPOINTS' caused a violation of foreign key constraint 'WATCHLISTPOINTSFK1' for key (0). The statement has been rolled back.', caused by: 'INSERT on table 'WATCHLISTPOINTS' caused a violation of foreign key constraint 'WATCHLISTPOINTSFK1' for key (0). The statement has been rolled back.'
      Import complete

      Here is the report I get when trying to import the datapoints:

      com.serotonin.json.JsonNumber cannot be cast to com.serotonin.json.JsonString
      com.serotonin.json.JsonNumber cannot be cast to com.serotonin.json.JsonString
      com.serotonin.json.JsonNumber cannot be cast to com.serotonin.json.JsonString
      com.serotonin.json.JsonNumber cannot be cast to com.serotonin.json.JsonString
      com.serotonin.json.JsonNumber cannot be cast to com.serotonin.json.JsonString
      Data point 'FTP_On-Off': saved
      Data point 'SSH_On_Off': saved
      Data point 'Restart': saved
      Import complete

      Any thoughts on this would be appreciated.

      Thanks,
      Joel.

      Attachment: download link

      1 Reply Last reply Reply Quote 0
      • M Offline
        mlohbihler
        last edited by

        It's a bug. :( But an easy one. :) Fix will be in the next release.

        Best regards,
        Matthew

        1 Reply Last reply Reply Quote 0
        • JoelHaggarJ Offline
          JoelHaggar
          last edited by

          Thanks, I'm impressed with how fast you guys put out new releases.

          Thanks,
          Joel.

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post