• FEATURES
  • PRICING
  • MARKETPLACE
  • CASE STUDIES
  • BLOG
  • Bulk operations for adding containers not working

    Hello,

    I am trying to load storage containers through bulk operations in openspecimen1.1.
    But when I am trying to execute the following command, I am getting the following error.

    C:\madhavi\os11_ws\catissuecore>ant add_bulk_operation_template -DoperationName=
    “addContainer” -DdropdownName=“Create Container” -DcsvFile=“addContainer.csv” -D
    xmlFile=“addContainer.xml”
    Buildfile: C:\madhavi\os11_ws\catissuecore\build.xml
    [taskdef] Could not load definitions from resource tasks.properties. It could
    not be found.

    BUILD FAILED
    Target “add_bulk_operation_template” does not exist in the project “caTissue Sui
    te”.

    Total time: 2 seconds

    C:\madhavi\os11_ws\catissuecore>ant -f add_bulk_operation_template -DoperationNa
    me=“addContainer” -DdropdownName=“Create Container” -DcsvFile=“addContainer.csv”
    -DxmlFile=“addContainer.xml”
    Buildfile: add_bulk_operation_template does not exist!
    Build failed

    C:\madhavi\os11_ws\catissuecore>ant -f deploy.xml add_bulk_operation_template -D
    operationName=“addContainer” -DdropdownName=“Create Container” -DcsvFile=“addCon
    tainer.csv” -DxmlFile=“addContainer.xml”
    Buildfile: C:\madhavi\os11_ws\catissuecore\deploy.xml
    [echo] Setting Global DRIVER and URL Property

    add_bulk_operation_template:
    [echo] Starting to load Bulk Operator Template…

    BUILD FAILED
    C:\madhavi\os11_ws\catissuecore\deploy.xml:4207: C:\madhavi\os11_ws\catissuecore
    \caTissueSuite_Client\lib does not exist.

    Total time: 1 second

    Please help me If I am doing anything wrong.

    Thanks & Regards,
    Madhavi Patnala

    @MADHAVI_LATHA Looks like you are trying to run above command from the source code and not from the installable.

    Try creating installable (ant create_zip) and run below command from it:

    ant add_bulk_operation_template -DoperationName=“addContainer” -DdropdownName=“Create Container” -DcsvFile=“addContainer.csv” -DxmlFile=“addContainer.xml”

    Hi @Suhas_Khot,

    Thank you for your immediate response.

    I tried from installable as you mentioned in the above mail. Then I am getting the following error.

    C:\madhavi\os11_ws\catissuecore\OpenSpecimen_v1.1_Installable>ant add_bulk_opera
    tion_template -DoperationName=“addContainer” -DdropdownName=“Create Container” -
    DcsvFile=“addContainer.csv” -DxmlFile=“addContainer.xml”
    Buildfile: C:\madhavi\os11_ws\catissuecore\OpenSpecimen_v1.1_Installable\build.x
    ml
    [propertyfile] Updating property file: C:\madhavi\os11_ws\catissuecore\OpenSpeci
    men_v1.1_Installable\modules\caTissue\conf\allTokens.properties
    [echo] Setting Global DRIVER and URL Property

    add_bulk_operation_template:
    [echo] Starting to load Bulk Operator Template…
    [copy] Copying 1 file to C:\madhavi\os11_ws\catissuecore\OpenSpecimen_v1.1_
    Installable\BulkOperations\conf
    [echo] …

    [echo]
    [java] log4j:WARN No appenders could be found for logger (edu.wustl.common.
    util.logger.LoggerConfig).
    [java] log4j:WARN Please initialize the log4j system properly.
    [java] INFO 11:31:59,127 (ErrorKey) - Error key name ::bulk.error.incorrec
    t.csv.file
    [java] INFO 11:31:59,132 (AbstractImportBulkOperation) - -----------------
    -------ERROR:BulkOperationException--------------------------------
    [java]
    [java] INFO 11:31:59,140 (AbstractImportBulkOperation) - Error creating CS
    V file reader
    [java]
    [java] INFO 11:31:59,141 (AbstractImportBulkOperation) - -----------------
    -------ERROR:--------------------------------
    [echo]
    [echo] …

    [delete] Deleting directory C:\madhavi\os11_ws\catissuecore\OpenSpecimen_v1.1
    _Installable\BulkOperations
    [move] Moving 1 file to C:\madhavi\os11_ws\catissuecore\OpenSpecimen_v1.1_I
    nstallable\modules\bulk_operations\log

    BUILD SUCCESSFUL
    Total time: 3 seconds

    Am I doing anything wrong again? Kind help appreciated.

    Thanks & Regards,
    Madhavi Latha Patnala

    @MADHAVI_LATHA Looking at the error it says that it was not able to find the addContainer.csv file in the installable. Please check if the addContainer.csv is present in the installable.

    Try putting the full file path (addContainer.csv) in the ant command.

    Also if possible could you please attached the log file present at <INSTALLABLE_HOME>\modules\bulk_operations\log\bulkoperator.log. This could help us get the detail issue causing to load the BO template.