Functional
Breadcrumbs

File Upload

To create objects by uploading an Excel file, the user must download the template with all the attributes of the selected object type and fill it in with the metadata of the objects they want to register, then upload the completed file. The created objects can also be automatically sent for validation.

Object creation via Excel is available for the object types for which the user has creation permission.

Both the downloaded and uploaded Excel file must have the .xlsx extension. The downloaded file may be renamed and, when editing it, it is necessary to keep the same cell format as when the Excel was downloaded, or alternatively set the cells to Text type to avoid conversions to numbers in scientific format. 

https://lh7-rt.googleusercontent.com/docsz/AD_4nXd5vaqhToS0yPW2hnrjVlSeP7sPf472K9kQjR53-zTALpXoVDN7EaF7zjw7pZ-mZsIfR4b5EQFQK-qcuTUmGuj5Nm9v-ssa_SngUQKkuM2VUGa5HluXYOD11iHxI-ABFbYykzAVpg?key=eE4OxRa9KEXEmq0Gh5OpzA

Once the file has been uploaded, Anjana will check whether it corresponds to the chosen subtype and, if not, will display an error message.

https://lh7-rt.googleusercontent.com/docsz/AD_4nXcT17ikAh9AiRiERBGa_aNMDXaJieSXF1JT46eTfRyZKuQ1zdMRhu1nIiM-6IdLkxi_dtf5jSRLxyzPRzmk0UJGqDtbUivSdPvWkZYfAALZ5MWkOMD-SuA2sy8cAS_rDkPjDEzGfw?key=eE4OxRa9KEXEmq0Gh5OpzA

If the file is correct, when the user clicks Create object, a window will appear with an auto-generated name for the Import job that is about to begin. This name is editable so that the user can specify a different name for it.

https://lh7-rt.googleusercontent.com/docsz/AD_4nXeQpMkaIefaN4z4UeZoz2AzqOnvdRAvRILUxUc18VdpR8oP_SW45ZwsJT2Bwo-gOXA2AVzyFu1X6-7lYtxtpzSePdTpx4CCSwnnUJjEAZVg6lsHTVdCnlG-myQwtUvpE7ZEsyjCKQ?key=eE4OxRa9KEXEmq0Gh5OpzA

Upon confirmation, a message will appear with a link to access the details of the import job. 

https://lh7-rt.googleusercontent.com/docsz/AD_4nXcHzIw3x70DPL43Z77Jye3QBmpPIluTXjGAi6fNlv7LkRuhJkIT9s0lmZJZ1Oeve_S9eyx3O3r5QSNAmfdmoeVodjvfvFGZYCzr8MOxC1ysjTF3ZACLPdBi1wavPJpc1XZ1iZUXEA?key=eE4OxRa9KEXEmq0Gh5OpzA
https://lh7-rt.googleusercontent.com/docsz/AD_4nXcCEt_p61iqoan4wgq21jWynbegncxmg7Bp7wjO6BUaKhoXnqv3syPMBpeOkBleqNNpBwxJmv3AxB89w3F2Q7gN1_ltXvArVzrvOr1_LTYCXx1dXJp7Q4UyWz7CGvKTH8ZQF28Deg?key=eE4OxRa9KEXEmq0Gh5OpzA

Further details about jobs can be found in the Jobs section of the User Guide.

Since the same file can include objects that will be created in Anjana and others that will be directly submitted for validation, the checks for both types of objects differ:

  • for an object that is only created in Anjana and for which no validation workflow is triggered, the following is checked:

    • that the PK attributes of its template are filled in

    • that the attribute values are of the correct type

      • if the attribute is of type Entity or array of Entities, that their status is Approved

This is because the remaining attributes can be edited later and their validations will therefore be checked at a later stage. 

  • for an object that, in addition to being created in Anjana, is submitted for validation, the following is checked:

    • that the PK attributes of its template are filled in

    • that the attribute values are of the correct type

    • that the mandatory attributes of its template are filled in

    • that the values comply with the validations configured for the attributes

Anjana will additionally check that the name of each object does not exceed 255 characters and, if it does, will display a message to the user in Jobs indicating this.

image-20251030-081906.png

Excel template

The downloaded template consists of an Excel file with several tabs. The first contains the Readme with instructions on how to fill in the attribute values.

https://lh7-rt.googleusercontent.com/docsz/AD_4nXetG6cbJrdLBBQ1H6CCj23PhuRri22Ln7dtgmecSB3k6ZhQEPGZdq7cJVly-Y1xKF5VpWeGwilz4mFW0xEwAcHca1emSiTelvA7bzEofhnaNPHjbh-2AD_sfl0seImKiX7el8Ps?key=eE4OxRa9KEXEmq0Gh5OpzA

The next tab is where the metadata of the objects to be registered will be entered (in the case of creating datasets, the dataset metadata is included along with an additional tab for dataset fields). 

In this tab, each column corresponds to a template attribute, indicating which menu and section it belongs to and its type.

For Reference Metadata attributes of type text, icon, text and icon, taxonomy, user, or organisational unit, the list of possible values is included.

https://lh7-rt.googleusercontent.com/docsz/AD_4nXfKNU0XN7VOKTNVP_IKUVLHo4Wr0chIdXiJ-epNxux-2VLznrIPbq6Y0hlaiHbD3lZsBsrG0vsSS-sXIUXwwaNcUKUV8VqhUkMuKJfdoi68rYQISuwsh_zeTrEhDupuuCsy8ij4PA?key=eE4OxRa9KEXEmq0Gh5OpzA

Some attributes appear highlighted with a different font colour or background colour depending on the template configuration. Instructions about this colour coding and other relevant information on how to complete the object metadata are set out in the Readme tab. Example:

https://lh7-rt.googleusercontent.com/docsz/AD_4nXfX3dXvbndlZhbhnvrW1ZzdEk-Pg-Hr168-Nxg3deaDo3wNwM5Fja37v0OPFwr_P-kYzNW-iSkRL7UnKYKkbCzlodJ9mtZvBt53Q6KIZZ_eBqcUxeivgmtS_eh8PJMzcNzJ6dNzZg?key=eE4OxRa9KEXEmq0Gh5OpzA

In addition, the Excel file can indicate whether the user wants to submit each object for validation after creating it in Anjana, using two additional columns in the Excel file that must be completed for each object to be catalogued:

https://lh7-rt.googleusercontent.com/docsz/AD_4nXebdFby6V_AbWyPz_t53eYM6jxr5mdMgQL92nDj9COgpaDUpc80UaQxjxC58YvfnllbHv_mxjrnDlpLD4BmbAaqn0j-9hgcbbC28kMcBLYMHb6bTdIhYh_MbvXt_2bDupKraG1K?key=eE4OxRa9KEXEmq0Gh5OpzA
  • Submit for validation: flag that indicates whether the created object is automatically submitted for validation or not

    • if “Submit for validation”=true, the validation workflow is triggered and the object is left in pending status 

    • otherwise, the object is created but remains in draft status to be completed later (flag=false, null or any value other than true)

  • Role: 

    • if “Submit for validation”=true, the role with which the user triggers the validation workflow

    • otherwise, the role does not apply

LIMITATIONS:

  • To avoid loss of processing performance and overloading the machine, it is recommended not to upload templates with more than 5,000 objects. Therefore, when importing datasets with dataset fields, the total number of entities in the Excel file (both datasets and dataset fields) must not exceed 5,000. If more than 5,000 entities or relationships need to be imported, this must be done using separate Excel files.

  • The template is downloaded in .xlsx format, which allows 1,048,576 rows. If this limit is exceeded, the spreadsheet itself will remove any elements beyond that number when saving the file. 

  • The maximum file size allowed for upload is 10 MB; this limit can be changed through configuration.

  • Using LibreOffice, Google Sheets, OneDrive Excel, or any tool other than Microsoft Excel to edit the Excel file to be imported into Anjana may cause formatting errors. Some examples are:

https://lh7-rt.googleusercontent.com/docsz/AD_4nXcEo_f5SleWAuQ0mkNVisVJNQRBqkU0kQDVon4E5DCnQO1UIsH2yucEXK8JD6QWDa5IrDd3zqkALG3-seoO18Kr0SBinel3L6LIHOyE8tzmmc-tfsJOv__9jWmehjMA33ZDXpfpkg?key=eE4OxRa9KEXEmq0Gh5OpzA

NOTES

  • Template attributes of type UPLOAD_FILE and ARRAY_UPLOAD_FILE are not included in the Excel file because MinIO/S3 interaction is required to obtain an ARI (internal identifier) to associate with the field. This means that an object whose template identifies those fields as mandatory can never be submitted directly from Excel, as it must first be edited through the portal.

  • Attributes with INHERITABLE validation are not included in the downloaded Excel template since their value is calculated internally by Anjana.