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

DataFile Date Source: No template


  • Hi all,
    I am kicking off the data file data source using the sample multiColumnCsv.csv and multiColumnCsvImporter.java provided by Mango.

    Somehow I am unable to save this data source as the template is empty(left hand side of the below pic). I can see both csv and java files are displayed on the compile template view(right hand side of the below pic), It seem confusing to me as it states the compiler is not found but yet the java file is shown. Without the java file may have caused the empty template.
    0_1568473098532_TemplateRequiredValue.jpg

    So I did tried to upload the multiColumnCsvImporter.java file manually but no success. This is road block for me to move forward. It should be a simple step but I cant see my own mistake.

    Any help is appreciated and thank you in advanced.
    Mango core: 3.6.4
    dataFile: 3.6.1
    google chrome version 76


  • With the latest mango you are running, you should be using the csv upload/download function in the main UI.
    Have you tried it?


  • @cwangv
    Thank you for your suggestion.

    I am not sure whether you are refer to the bulk data point edit in MangoUI where you can download/upload csv to create/update the datapoints.

    However i want to import point values from files via the data file data source. Usually I got the file from the third party system and require to load it into the mango so that I can do more work on it.

    In fact I did try to look into the new MangoUI but I think not all the data source types are supported yet. That is the reason I continue to use the old MangoUI.


  • @desmond
    the feature is no longer supported. see below:
    0_1568545249105_Screen Shot 2019-09-15 at 9.00.23 pm.png


  • Hi Desmond,

    Somehow I am unable to save this data source as the template is empty(left hand side of the below pic). I can see both csv and java files are displayed on the compile template view(right hand side of the below pic), It seem confusing to me as it states the compiler is not found but yet the java file is shown. Without the java file may have caused the empty template.

    The output about compiler not found suggests you are running on a JRE and not a JDK of Java. Java is a compiled language, so the .java files are the source and .class files are compiled. The data file data source provides that tool to do the compilation for you, which would then put the appropriate .class file into the Mango/web/modules/dataFile/web/templates/* directory, and then it would be available to use as a template for that type of data on the data source. The compiled and source files will move to the filestore in an upcoming version.

    You can either install a JDK or compile the class elsewhere and place it into the templates directory. javac is the executable for the compiler. If you've set JAVA_HOME to a JDK (and not the jre directory inside it) that should solve the compiler not found issue.

    cwangv,

    He was not talking about data point templates, although you are right that they are being deprecated. The word 'template' shows up quite a bit in Mango currently, such as in the data file data source, FTL files, and the Template Configuration Import (which is uses annotated JSON to generate FTL, which then turns back to JSON).


  • Bingo! The mystery finally revealed! It was my own mistake to set JRE instead of JDK unintentionally after upgrading to jdk 1.8.0_221.

    Thank you @phildunlap for your detail information and update. This is really a valuable lesson for me.

    Thank you@cwangv for your sharing. You made me feel eager to head over to this forum whenever I need help or support to create solution together.


  • Certainly! Thanks for the kind words, we do try to keep this a helpful place!