简体   繁体   中英

Using Azure data factory with Odata source from Microsoft Dynamics Marketing

I am having some trouble understanding the URL which I should specify while importing data into Azure Blob storage from the OData feed on Dynamics Marketing(MDM), using Azure Data Factory.

I created a Odata Linked Service to import data and within this, for the path, I specified the location of the Odata URL specified within the OData settings for MDM. I get the below error.

Mashup operation failed. Error message from Mashup execution : ErrorCode=FailedMashupOperation,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message='Type=System.NotSupportedException,Message=The given data source reference cannot test the connection. FailureReason: InvalidDataSourceLocationUrl.,Source=Microsoft.Data.Mashup,',Source=,'.

InvalidDataSourceLocationUrl error code shows it's wrong url.

The 'path' in odata data set should be a relative path, which works together with the root path in OData linked service.

Eg if the odata endpoint your want is:

http: //services.odata.org/odata/odata.svc/Products?$select=Name,%20Description&$top=5

the linked service should be:

{
  "name": "ODataLinkedService",
  "properties": {
    "type": "OData",
    "typeProperties": {
      "url": "http://services.odata.org/OData/OData.svc",
      "authenticationType": "Anonymous"
    }
  }
}

and the dataset:

{
  "name": "ODataDataset",
  "properties": {
    "type": "ODataResource",
    "typeProperties": {
      "path": "Products"
    },
    "linkedServiceName": "ODataLinkedService",
    "structure": [],
    "availability": {
      "frequency": "Hour",
      "interval": 1
    },
    "external": true,
    "policy": {
      "retryInterval": "00:01:00",
      "retryTimeout": "00:10:00",
      "maximumRetry": 3
    }
  }
}

and the query in Pipeline:

"?$select=Name, Description&$top=5"

Referenced by doc : https://docs.microsoft.com/en-us/azure/data-factory/data-factory-odata-connector

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM