none
Getting an error while Publishing ML Batch Execution JSON Script

    Question

  • HI

    I am getting an error . Invalid JSON Syntax . Any help would be appreciated.

    Thanks

    {
        "name": "ML Batch Execution1",
        "description": "description",
        "type": "AzureMLBatchExecution",
        "linkedServiceName": {
            "name": "AdmissionsML",
            "type": "AzureML"
        },
        "typeProperties": {
            "webServiceInputs": {
                "input1": {
    "LinkedServiceName":{
                        "name": "AdmissionsData",
                        "type": "AzureStorage"
                    },
                    "FilePath":"devcontainer/AdmissionTestData.csv"
                }
              
            },
            "webServiceOutputs": {
                "output1": {
                    "LinkedServiceName":{
                        "name": "AdmissionsData",
                        "type": "AzureStorage"  
                    },
                    "FilePath":"devcontainer/AdmissionsResultSet.csv"
                }     
            },
           { "globalParameters": {
           "input1": { "ConnectionString": "DefaultEndpointsProtocol=https;AccountName=mystorageacct;AccountKey=Dx9WbMIThAvXRQWap/aLnxT9LV5txxw==", "RelativeLocation": "mycontainer/input1datablob.csv" } },
           "Outputs": { "output1": { "ConnectionString": "DefaultEndpointsProtocol=https;AccountName=mystorageacct;AccountKey=Dx9WbMIThAvXRQWap/aLnxT9LV5txxw==", "RelativeLocation": "mycontainer/output1results.csv" } } }
            }
        }

    Monday, June 4, 2018 1:46 PM

Answers

  • I think you have an json format error in typeProperties level next to webserviceOutputs. I tried to resolve the error but please double check your json parameters are still valid.

     
       "name":"ML Batch Execution1",
       "description":"description",
       "type":"AzureMLBatchExecution",
       "linkedServiceName": 
          "name":"AdmissionsML",
          "type":"AzureML"
       },
       "typeProperties": 
          "webServiceInputs": 
             "input1": 
                "LinkedServiceName": 
                   "name":"AdmissionsData",
                   "type":"AzureStorage"
                },
                "FilePath":"devcontainer/AdmissionTestData.csv"
             }
          },
          "webServiceOutputs": 
             "output1": 
                "LinkedServiceName": 
                   "name":"AdmissionsData",
                   "type":"AzureStorage"
                },
                "FilePath":"devcontainer/AdmissionsResultSet.csv"
             }
          },
          "globalParameters": 
             "input1": 
                "ConnectionString":"DefaultEndpointsProtocol=https;AccountName=mystorageacct;AccountKey=Dx9WbMIThAvXRQWap/aLnxT9LV5txxw==",
                "RelativeLocation":"mycontainer/input1datablob.csv"
             },
             "Outputs": 
                "output1": 
                   "ConnectionString":"DefaultEndpointsProtocol=https;AccountName=mystorageacct;AccountKey=Dx9WbMIThAvXRQWap/aLnxT9LV5txxw==",
                   "RelativeLocation":"mycontainer/output1results.csv"
                }
             }
          }
       }
    }

    Monday, June 4, 2018 6:44 PM
    Moderator

All replies

  • Have you tried a json validator?



    • Edited by zl34 Friday, August 3, 2018 1:30 PM
    Monday, June 4, 2018 2:07 PM
  • I think you have an json format error in typeProperties level next to webserviceOutputs. I tried to resolve the error but please double check your json parameters are still valid.

     
       "name":"ML Batch Execution1",
       "description":"description",
       "type":"AzureMLBatchExecution",
       "linkedServiceName": 
          "name":"AdmissionsML",
          "type":"AzureML"
       },
       "typeProperties": 
          "webServiceInputs": 
             "input1": 
                "LinkedServiceName": 
                   "name":"AdmissionsData",
                   "type":"AzureStorage"
                },
                "FilePath":"devcontainer/AdmissionTestData.csv"
             }
          },
          "webServiceOutputs": 
             "output1": 
                "LinkedServiceName": 
                   "name":"AdmissionsData",
                   "type":"AzureStorage"
                },
                "FilePath":"devcontainer/AdmissionsResultSet.csv"
             }
          },
          "globalParameters": 
             "input1": 
                "ConnectionString":"DefaultEndpointsProtocol=https;AccountName=mystorageacct;AccountKey=Dx9WbMIThAvXRQWap/aLnxT9LV5txxw==",
                "RelativeLocation":"mycontainer/input1datablob.csv"
             },
             "Outputs": 
                "output1": 
                   "ConnectionString":"DefaultEndpointsProtocol=https;AccountName=mystorageacct;AccountKey=Dx9WbMIThAvXRQWap/aLnxT9LV5txxw==",
                   "RelativeLocation":"mycontainer/output1results.csv"
                }
             }
          }
       }
    }

    Monday, June 4, 2018 6:44 PM
    Moderator