Topic Thread

Error as "Invalid request entity: input_data_references in the decision_optimization field can not be an empty array."

  • 1.  Error as "Invalid request entity: input_data_references in the decision_optimization field can not be an empty array."

    Posted Thu October 07, 2021 05:27 PM
      |   view attached
    While creating a job in the IBM Cloud for the optimization model, I am getting the error as "Invalid request entity: input_data_references in the decision_optimization field can not be an empty array." I am not passing the input data, as it's passed through API to the model.

    In our scenario, From UI when the user clicks the submit button, the model pipeline is invoked with an ID based on selection, which then makes the API call to pull the data. This pulled data will be used as input data to run the model in the pipeline.

    Thus, I need to deploy the model to the cloud and make a call to this deployed model programmatically by passing different IDs to get the different input data to the model.  Initially, to try this I am running a model with default ID and making a call to the database to get the input data and run the optimization model and get the output. Later running the model programmatically. But I am not able to create the job as mentioned above. Could you please suggest how to proceed with this?

    Also If you could provide any useful links related to this scenario for creating and running jobs through IBM Cli or through python programming would help.



    ------------------------------
    Anilkumar Lingaraj Biradar
    ------------------------------