locked
webServiceOutputs Error in VS RRS feed

  • Question

  • When using the following in an ADF AzureMLBatchExecution pipeline....

    "webServiceOutputs": {"output": "PredictedChurnCustomersBlob"}

    I get the error below - all my JSON files passed validation. Has anyone come across this before?

    System.AggregateException: One or more errors occurred. ---> System.InvalidCastException: Unable to cast object of type 'Newtonsoft.Json.Linq.JObject' to type 'Newtonsoft.Json.Linq.JArray'.
       at Microsoft.WindowsAzure.DataFactoryStudio.DataFactoryObjectModel.ReferencesValidator.GetReferencedTables(List`1 referencedTableList, JObject jsonObject, String filePath)
       at Microsoft.WindowsAzure.DataFactoryStudio.DataFactoryObjectModel.ReferencesValidator.<>c__DisplayClass3.<ExtractSingleFileReferences>b__1(JObject n)
       at Microsoft.WindowsAzure.DataFactoryStudio.DataFactoryObjectModel.ReferencesValidator.WalkNode(JToken node, Action`1 action)
       at Microsoft.WindowsAzure.DataFactoryStudio.DataFactoryObjectModel.ReferencesValidator.WalkNode(JToken node, Action`1 action)
       at Microsoft.WindowsAzure.DataFactoryStudio.DataFactoryObjectModel.ReferencesValidator.WalkNode(JToken node, Action`1 action)
       at Microsoft.WindowsAzure.DataFactoryStudio.DataFactoryObjectModel.ReferencesValidator.WalkNode(JToken node, Action`1 action)
       at Microsoft.WindowsAzure.DataFactoryStudio.DataFactoryObjectModel.ReferencesValidator.WalkNode(JToken node, Action`1 action)
       at Microsoft.WindowsAzure.DataFactoryStudio.DataFactoryObjectModel.ReferencesValidator.ExtractSingleFileReferences(List`1 referencedLinkedServiceList, List`1 referencedDependencyList, List`1 referencedTableList, JObject jsonObject, String filePath)
       at Microsoft.WindowsAzure.DataFactoryStudio.DataFactoryObjectModel.ReferencesValidator.ExtractValidAndReferencesFromFiles(List`1 jsonFileNames, Dictionary`2 validDependencyList, List`1 errorList, IVersion version)
       at Microsoft.WindowsAzure.DataFactoryStudio.DataFactoryObjectModel.ReferencesValidator.ValidateReferences(List`1 jsonFiles, Dictionary`2 dependencyMap, IVersion version)
       at Microsoft.WindowsAzure.DataFactoryStudio.DataFactoryProject.ProjectSystem.ADFCompilerTask.ValidateReferences(List`1 jsonsToCompile)
       at Microsoft.WindowsAzure.DataFactoryStudio.DataFactoryProject.ProjectSystem.ADFCompilerTask.<ExecuteAsync>d__2.MoveNext()
       --- End of inner exception stack trace ---
       at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
       at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
       at Microsoft.VSAuthoring.SDK.BuildSystem.JsonCompilerTask.Execute()
       at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
       at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()
    ---> (Inner Exception #0) System.InvalidCastException: Unable to cast object of type 'Newtonsoft.Json.Linq.JObject' to type 'Newtonsoft.Json.Linq.JArray'.
       at Microsoft.WindowsAzure.DataFactoryStudio.DataFactoryObjectModel.ReferencesValidator.GetReferencedTables(List`1 referencedTableList, JObject jsonObject, String filePath)
       at Microsoft.WindowsAzure.DataFactoryStudio.DataFactoryObjectModel.ReferencesValidator.<>c__DisplayClass3.<ExtractSingleFileReferences>b__1(JObject n)
       at Microsoft.WindowsAzure.DataFactoryStudio.DataFactoryObjectModel.ReferencesValidator.WalkNode(JToken node, Action`1 action)
       at Microsoft.WindowsAzure.DataFactoryStudio.DataFactoryObjectModel.ReferencesValidator.WalkNode(JToken node, Action`1 action)
       at Microsoft.WindowsAzure.DataFactoryStudio.DataFactoryObjectModel.ReferencesValidator.WalkNode(JToken node, Action`1 action)
       at Microsoft.WindowsAzure.DataFactoryStudio.DataFactoryObjectModel.ReferencesValidator.WalkNode(JToken node, Action`1 action)
       at Microsoft.WindowsAzure.DataFactoryStudio.DataFactoryObjectModel.ReferencesValidator.WalkNode(JToken node, Action`1 action)
       at Microsoft.WindowsAzure.DataFactoryStudio.DataFactoryObjectModel.ReferencesValidator.ExtractSingleFileReferences(List`1 referencedLinkedServiceList, List`1 referencedDependencyList, List`1 referencedTableList, JObject jsonObject, String filePath)
       at Microsoft.WindowsAzure.DataFactoryStudio.DataFactoryObjectModel.ReferencesValidator.ExtractValidAndReferencesFromFiles(List`1 jsonFileNames, Dictionary`2 validDependencyList, List`1 errorList, IVersion version)
       at Microsoft.WindowsAzure.DataFactoryStudio.DataFactoryObjectModel.ReferencesValidator.ValidateReferences(List`1 jsonFiles, Dictionary`2 dependencyMap, IVersion version)
       at Microsoft.WindowsAzure.DataFactoryStudio.DataFactoryProject.ProjectSystem.ADFCompilerTask.ValidateReferences(List`1 jsonsToCompile)
       at Microsoft.WindowsAzure.DataFactoryStudio.DataFactoryProject.ProjectSystem.ADFCompilerTask.<ExecuteAsync>d__2.MoveNext()<---


    Tuesday, October 27, 2015 12:47 PM

All replies

  • Hello, can you share some of your JSON please?
    Thursday, November 5, 2015 9:57 PM
    Answerer