Comments (2)
I am currently trying to build a similar pipeline and get an error when I try to call the URL with the token:
_ErrorCode=RestSourceCallFailed,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=The HttpStatusCode 401 indicates failure. Request URL: https://****.sharepoint.com/sites/demoa/api/ProjectData/Projects?$select=ProjectId,ProjectActualCost,ProjectActualDuration,ProjectActualFinishDate,ProjectActualStartDate,ProjectActualWork,ProjectCost,ProjectCreatedDate,ProjectCurrency,ProjectDescription,ProjectDuration,ProjectFinishDate,ProjectIdentifier,ProjectLastPublishedDate,ProjectModifiedDate,ProjectName,ProjectPercentCompleted,ProjectPercentWorkCompleted,ProjectStartDate,ProjectStatusDate,ProjectWork Response payload:{"error_description":"Exception of type 'Microsoft.IdentityModel.Tokens.AudienceUriValidationFailedException' was thrown."},Source=Microsoft.DataTransfer.ClientLibrary,'
I think there might be a problem with the scope. Which Scope did u use? I currently have set: scope=user.read%20openid%20profile%20offline_access%20ProjectWebAppReporting.Read and also have the scope granted in the appregistration.
I got the Solution. The Scope must be set to the Sharepoint Site: scope=https://***.sharepoint.com/.default
I also checked out the pagination as the limit is set to 300 response objects but doesnt got any usable state. I think the Problem is that the pagination URL is sent as an relative URL. Did you already did some research on that?
from adf.
Sorry for not replying earlier - and yes, my scope was .default, with the ProjectWebAppReporting.Read and the Graph User.Read as the only required permissions (at least for this app). I hadn't tried doing anything with the pagination - but I think if you just browse to the endpoint it does append the 'next page' link. Not sure if you can strip that out and use it in some way. If I get a chance in the next couple of weeks I'll see if I can get it working. My main aim here was the authentication, but yes, without pagination these recordset sizes aren't going to work well
from adf.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adf.