OneNote fails to open when using "Open in app" from Teams

%3CLINGO-SUB%20id%3D%22lingo-sub-1862503%22%20slang%3D%22en-US%22%3EOneNote%20fails%20to%20open%20when%20using%20%22Open%20in%20app%22%20from%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1862503%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CEM%3EA%20first-time%20poster...%20be%20kind%20%3A)%3C%2Fimg%3E%26nbsp%3B%26nbsp%3BI%E2%80%99ve%20searched%20the%20posts%20and%20haven%E2%80%99t%20found%20a%20similar%20complaint%2C%20so%20here%20it%20goes%E2%80%A6%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20Teams%20(web%20or%20app)%2C%20a%20OneNote%20file%20stored%20in%20a%20Teams%20channel%20can%20be%20opened%20successfully%20using%20the%20%E2%80%9CEdit%20in%20Teams%E2%80%9D%20or%20%E2%80%9COpen%20in%20browser%E2%80%9D%20feature%20of%20Teams.%26nbsp%3B%20However%2C%20when%20attempting%20to%20open%20the%20same%20OneNote%20file%20with%20the%20%22Open%20in%20app%22%20feature%20of%20Teams%2C%20the%20default%20OneNote%20app%20(modern%20or%20desktop)%20pops%20warning%2Ferror%20messages%20and%20fails%20to%20open%20the%20notebook.%26nbsp%3B%3C%2FP%3E%3CUL%3E%3CLI%3EOneNote%202009%20(aka%20OneNote%20desktop)%20first%20shows%20a%20Security%20Notice%20message%20indicating%20the%20%E2%80%9Clocation%20may%20be%20unsafe%E2%80%9D.%26nbsp%3B%20Clicking%20Yes%20to%20continue%20then%20shows%20an%20error%20stating%20%E2%80%9CWe%20can%E2%80%99t%20open%20that%20location%E2%80%9D.%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Teams%20and%20OneNote%20failure%20-%20OneNote%20Desktop.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F231992iA8FA8943FB6F6287%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Teams%20and%20OneNote%20failure%20-%20OneNote%20Desktop.jpg%22%20alt%3D%22Teams%20and%20OneNote%20failure%20-%20OneNote%20Desktop.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CUL%3E%3CLI%3EOneNote%20for%20Windows%2010%20(aka%20OneNote%20modern)%20shows%20an%20error%20stating%20%E2%80%9CSorry%2C%20we%20can%E2%80%99t%20open%20the%20notes%20that%20you%20were%20looking%20for%E2%80%9D.%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Teams%20and%20OneNote%20failure%20-%20OneNote%20Modern.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F231993iCC3668847EA9769A%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Teams%20and%20OneNote%20failure%20-%20OneNote%20Modern.jpg%22%20alt%3D%22Teams%20and%20OneNote%20failure%20-%20OneNote%20Modern.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%E2%80%99ve%20reproduced%20the%20issue%E2%80%A6%3C%2FP%3E%3CUL%3E%3CLI%3Eacross%20Windows%2010%20PC's%3C%2FLI%3E%3CLI%3Eacross%20M365%20Tenants%3C%2FLI%3E%3CLI%3Ewith%20both%20versions%20of%20OneNote%20(modern%20and%20desktop)%3C%2FLI%3E%3CLI%3Ewith%20various%20M365%20users%20(licensed%2C%20unlicensed%2C%20and%20guests)%26nbsp%3B%3C%2FLI%3E%3CLI%3Eand%20across%20Teams%20clients%20(web%20and%20app)%3C%2FLI%3E%3C%2FUL%3E%3CP%3EI%E2%80%99m%20pretty%20sure%20this%20has%20worked%20fine%20in%20the%20past%2C%20but%20I%20can%E2%80%99t%20provide%20a%20specific%20date%20when%20I%20think%20it%20last%20worked%20correctly.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CU%3EWorks%20from%20SharePoint%3C%2FU%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EWhen%20using%20%22Open%20in%20app%22%20from%20SharePoint%2C%20the%20same%20OneNote%20file%20opens%20successfully%20with%20either%20OneNote%20app%20as%20the%20default%20in%20Windows.%26nbsp%3B%20OneNote%20desktop%20still%20warns%20%E2%80%9Cthe%20location%20may%20be%20unsafe%E2%80%9D%20but%20clicking%20Yes%20to%20continue%20opens%20the%20notebook%20successfully.%26nbsp%3B%20OneNote%20modern%20opens%20the%20notebook%20successfully%2C%20showing%20no%20error%20or%20warning.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CU%3EWorks%20with%20other%20Office%20files%3C%2FU%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EWord%2C%20Excel%2C%20and%20PowerPoint%20files%20all%20open%20successfully%20in%20their%20respective%20apps%20using%20the%20%E2%80%9COpen%20in%20app%E2%80%9D%20feature%20of%20Teams%20(web%20and%20app).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CU%3EA%20%E2%80%9CTail%E2%80%9D%20of%20Two%20URLs%3C%2FU%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EIf%20OneNote%20desktop%20is%20the%20default%20app%20in%20Windows%20for%20the%20%22onenote%3A%22%20URL%2C%20the%20Security%20Notice%20warning%20message%20provides%20the%20actual%20URL%20passed%20to%20OneNote.%20%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Teams%20and%20OneNote%20failure%20-%20Security%20Notice.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F231967i4352D2C4A0862C34%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Teams%20and%20OneNote%20failure%20-%20Security%20Notice.jpg%22%20alt%3D%22Teams%20and%20OneNote%20failure%20-%20Security%20Notice.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThe%20Security%20Notice%20shows%20that%20the%20%3CA%20href%3D%22onenote%3A%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eonenote%3A%3C%2FA%3E%20URLs%20used%20by%20the%20%22Open%20in%20app%22%20feature%20in%20SharePoint%20versus%20Teams%20are%20identical%20except%20that%20Teams%20adds%20additional%20%22junk%22%20to%20the%20end%20of%20the%20URL.%26nbsp%3B%20This%20%E2%80%9Cjunk%E2%80%9D%20seems%20to%20cause%20the%20failure.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20example%20above%20shows%20an%20attempt%20to%20%E2%80%9COpen%20in%20app%E2%80%9D%20the%20%E2%80%9Ctest%20beta%20notebook%E2%80%9D%20OneNote%20file%20from%20the%20General%20channel%20of%20the%20Beta%20Team.%26nbsp%3B%20The%20extra%20%E2%80%9Cjunk%E2%80%9D%20is%20shown%20below%20in%20%3CFONT%20color%3D%22%23FF0000%22%3Ered%3C%2FFONT%3E%20at%20the%20end%20of%20the%20Teams%20URL%20(second%20bullet).%3C%2FP%3E%3CUL%3E%3CLI%3ESharePoint%20%3D%20onenote%3Ahttps%3A%2F%2F%3CTENANT%3E.sharepoint.com%2Fsites%2FBetaTeam%2FShared%20Documents%2FGeneral%2Ftest%20beta%20notebook%3C%2FTENANT%3E%3C%2FLI%3E%3CLI%3ETeams%20%3D%20onenote%3Ahttps%3A%2F%2F%3CTENANT%3E.sharepoint.com%2Fsites%2FBetaTeam%2FShared%20Documents%2FGeneral%2Ftest%20beta%20notebook%3CFONT%20color%3D%22%23FF0000%22%3E%7Cf%7Ctdd7c600f-a1ed-4df3-bb90-eb4ae1258079%3C%2FFONT%3E%3C%2FTENANT%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CU%3EPost-Failure%2C%20OneNote%20lists%20the%20notebook%3C%2FU%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EInterestingly%2C%20after%20failing%2C%20the%20OneNote%20file%20is%20listed%20in%20both%20versions%20of%20OneNote%20as%20an%20additional%20notebook%20to%20open%20%E2%80%93%20and%20will%20open%20successfully%20if%20you%20try%20to%20open%20it%20directly%20from%20OneNote%E2%80%99s%20list%20of%20additional%20notebooks.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1862503%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1864493%22%20slang%3D%22en-US%22%3ERe%3A%20OneNote%20fails%20to%20open%20when%20using%20%22Open%20in%20app%22%20from%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1864493%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F860392%22%20target%3D%22_blank%22%3E%40nduncan%3C%2FA%3E%26nbsp%3BI%20can%20confirm%20the%20same%20issue%2C%20I%20would%20suggest%20getting%20you%20admin%20to%20open%20a%20support%20ticket.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI've%20never%20actually%20tried%20that%20with%20OneNote%2C%20I%20typically%20add%20a%20tab%20to%20my%20Teams%20for%20the%20notebook%2C%20and%20the%20'Open%20in%20App'%20option%20there%20seems%20to%20work%20fine.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

 

A first-time poster... be kind :)  I’ve searched the posts and haven’t found a similar complaint, so here it goes…

 

In Teams (web or app), a OneNote file stored in a Teams channel can be opened successfully using the “Edit in Teams” or “Open in browser” feature of Teams.  However, when attempting to open the same OneNote file with the "Open in app" feature of Teams, the default OneNote app (modern or desktop) pops warning/error messages and fails to open the notebook. 

  • OneNote 2009 (aka OneNote desktop) first shows a Security Notice message indicating the “location may be unsafe”.  Clicking Yes to continue then shows an error stating “We can’t open that location”.

Teams and OneNote failure - OneNote Desktop.jpg

 

 

  • OneNote for Windows 10 (aka OneNote modern) shows an error stating “Sorry, we can’t open the notes that you were looking for”.

Teams and OneNote failure - OneNote Modern.jpg

 

 

We’ve reproduced the issue…

  • across Windows 10 PC's
  • across M365 Tenants
  • with both versions of OneNote (modern and desktop)
  • with various M365 users (licensed, unlicensed, and guests) 
  • and across Teams clients (web and app)

I’m pretty sure this has worked fine in the past, but I can’t provide a specific date when I think it last worked correctly.

 

Works from SharePoint

When using "Open in app" from SharePoint, the same OneNote file opens successfully with either OneNote app as the default in Windows.  OneNote desktop still warns “the location may be unsafe” but clicking Yes to continue opens the notebook successfully.  OneNote modern opens the notebook successfully, showing no error or warning.

 

Works with other Office files

Word, Excel, and PowerPoint files all open successfully in their respective apps using the “Open in app” feature of Teams (web and app).

 

A “Tail” of Two URLs

If OneNote desktop is the default app in Windows for the "onenote:" URL, the Security Notice warning message provides the actual URL passed to OneNote.  

Teams and OneNote failure - Security Notice.jpg

The Security Notice shows that the onenote: URLs used by the "Open in app" feature in SharePoint versus Teams are identical except that Teams adds additional "junk" to the end of the URL.  This “junk” seems to cause the failure. 

 

The example above shows an attempt to “Open in app” the “test beta notebook” OneNote file from the General channel of the Beta Team.  The extra “junk” is shown below in red at the end of the Teams URL (second bullet).

  • SharePoint = onenote:https://<tenant>.sharepoint.com/sites/BetaTeam/Shared Documents/General/test beta notebook
  • Teams = onenote:https://<tenant>.sharepoint.com/sites/BetaTeam/Shared Documents/General/test beta notebook|f|tdd7c600f-a1ed-4df3-bb90-eb4ae1258079

 

Post-Failure, OneNote lists the notebook

Interestingly, after failing, the OneNote file is listed in both versions of OneNote as an additional notebook to open – and will open successfully if you try to open it directly from OneNote’s list of additional notebooks.

 

2 Replies
Highlighted

@nduncan I can confirm the same issue, I would suggest getting you admin to open a support ticket.

 

I've never actually tried that with OneNote, I typically add a tab to my Teams for the notebook, and the 'Open in App' option there seems to work fine.

Highlighted

@Steven Collier  - thanks for confirming its not just me. :)

 

I do have an open ticket with support, but nothing conclusive so far.

 

And yes, using the tab approach in Teams for a OneNote is a workaround we're implementing, thanks.

 

n