OneDrive / samples

Contains samples, scenarios, and guidance for integrating with OneDrive and SharePoint drives, drive items, and files.
MIT License
58 stars 59 forks source link

UnableToDetermineOneDriveLocation #60

Closed schnoberts1 closed 10 months ago

schnoberts1 commented 1 year ago

Hi,

I guess this could be less a bug request and more a request for insights. I want to point the javascript (basic) one drive file picker at another users OneDrive (content of which is shared). I can access the relevant URL via the browser (e.g. https://blah-my.sharepoint.com/personal/user_domain_name/_layouts/15/filepicker.aspx?. However, this doesn't seem to work as well via the file picker API. Note: the user which has permissions to access this OneDrive doesn't have their own OneDrive.

I tried putting the user section of the URL in baseurl, I also tried it in the entry point in the query config.

In each case I get UnableToDetermineOneDriveLocation. I can't find any documentation via google or learn.microsoft.com for this error.

Note: I can do what I am trying to achieve above using .NET Core and C# and the app registrations are the same in the appropriate places so I am assuming there is missing config magic or the picker doesn't support this type of access.

nicolasiscoding commented 1 year ago

Hey @schnoberts1 I just had a similar issue. Patrick went in and added some nice examples but tagging this for reference (if this is helpful)

https://github.com/OneDrive/samples/issues/53

schnoberts1 commented 1 year ago

Thanks @nicolasiscoding . I will take a look.

JCrew0 commented 10 months ago

@schnoberts1 @nicolasiscoding We've updated our error code reporting in this scenario, which will rollout later this week. Can you try again sometime next week?

nicolasiscoding commented 10 months ago

We ended up writing our own implementation using the graph api due to issues with docsets. For my next client onboarding, will give this a whirl.

On Tue, Jan 2, 2024 at 7:15 PM Justin Carway @.***> wrote:

@schnoberts1 https://github.com/schnoberts1 @nicolasiscoding https://github.com/nicolasiscoding We've updated our error code reporting in this scenario, which will rollout later this week. Can you try again sometime next week?

— Reply to this email directly, view it on GitHub https://github.com/OneDrive/samples/issues/60#issuecomment-1874711664, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACHLNTVBGTEYZRMBD36OZKLYMSPJNAVCNFSM6AAAAAA6NJFSPWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZUG4YTCNRWGQ . You are receiving this because you were mentioned.Message ID: @.***>

JCrew0 commented 10 months ago

Closing for now, please mention me and/or re-open if this is not fixed.