Forum Discussion
Connecting to a SharePoint List Office 365 error
- 10 years ago
I changed the ApiVersion from 15 to 14 in the Query Advanced Editor, and it works now =)
let
Source = SharePoint.Tables("https://###.sharepoint.com/teams/Team020/", [ApiVersion = 14]),
ProjectList = Source{[Name="ProjectList"]}[Content]
in
ProjectList
let
origem = OData.Feed("http://xxxxxxxx/_api/Web/Lists(guid'FEF2602C-661B-4268-8056-1CC347B21489')/Items?$select=Accomplishments,ADDepartmentCPMO")
in
origem
Give me this error
DataSource.Error: Microsoft.Mashup.Engine1.Library.Resources.HttpResource: Request failed:
OData Version: 3 and 4, Error: The remote server returned an error: (400) Bad Request. (The expression "Web/Lists(guid'FEF2602C-661B-4268-8056-1CC347B21489')/Items" is not valid.)
OData Version: 4, Error: The remote server returned an error: (400) Bad Request. (The expression "Web/Lists(guid'FEF2602C-661B-4268-8056-1CC347B21489')/Items" is not valid.)
OData Version: 3, Error: The remote server returned an error: (400) Bad Request. (The expression "Web/Lists(guid'FEF2602C-661B-4268-8056-1CC347B21489')/Items" is not valid.)
Details:
DataSourceKind=OData
DataSourcePath=http://xxxx/_api/Web/Li%E2%80%8Bsts(guid'FEF2602C-661B-4268-8056-1CC347B21489')/Items
SPRequestGuid=5714d39d-8fd8-b0bc-319d-ee537d33ffb1, 5714d39d-4fe3-b0bc-319d-e42451efe2a8, 5714d39d-0fee-b0bc-319d-eecf29d902df
- djeepy19 years agoAdvocate I
You get a HTTP 400 error that indicates your request is incorrect (HTTP 400 Bad Request).
In error stack, I noticed :
[..]DataSourcePath=http ://xxxx/_api/Web/Li%E2%80%8Bsts[..]
%E2, %80 and %8B are inserted in your URL. Can you check by typing your URL in a web browser ?
Jean-Pierre