cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bnixon
Level: Powered On

OneNote (business) connector - Unable to parse site ids from OneNote API

I am using Flow in a Office 365 Government G3 tentant and having problems using the OneNote (business) connector to Get sections in notebook, which returns with BadGateway, Status Code 502, and Body below:

{
  "error": {
    "code": 502,
    "message": "Unable to parse site ids from OneNote API. Code: 500, Response:",
    "source": "flow-apim-msmanaged-na-westus2-01.azure-apim.net",
    "path": "choose[4]\\when[1]\\choose[2]\\when[1]",
    "clientRequestId": "3ce57d0e-e10e-413a-9d1d-c6be0e784f0b"
  }
}

I tried to debug using a new flow, with just Get pages for specific section. The dropbox for Notebook Key populates with all my Notebooks, however when I select any Notebook, the dropbox for Notebook section shows "Could not retrieve values. Unable to parse site ids from OneNote API. Code: 500, Response:"

20 REPLIES 20
Community Support Team
Community Support Team

Re: OneNote (business) connector - Unable to parse site ids from OneNote API

Hi @bnixon,

 

I have tested it on my side and it works well.Annotation 2019-08-09 105750.png

 

You can check the connection you used whether correct, you can recreate your connection of OneNote connector, and try it again.

Annotation 2019-08-09 110019.png

Please have a try, I hope it can help you.

 

Best Regards,

Community Support Team _ Lin Tu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

bnixon
Level: Powered On

Re: OneNote (business) connector - Unable to parse site ids from OneNote API

I am still having the issue described. I created a new flow, which I assume recreates the OneNote connection, or is there another way?

 

Here's the peek code for the Get Sections in a Notebook, which is one of the actions that fails (I redacted host and user with XXXXX and YYYYY):

{
    "inputs": {
        "host": {
            "connection": {
                "name": "@json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$connections']['shared_onenote_1']['connectionId']"
            }
        },
        "method": "get",
        "path": "/notebooks/notebookKey/sections",
        "queries": {
            "notebookKey": "Test|$|https://XXXXX-my.sharepoint.com/personal/YYYYY/Documents/Notebooks/People/Test"
        },
        "authentication": {
            "type": "Raw",
            "value": "@json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$ConnectionKey']"
        }
    },
    "metadata": {
        "flowSystemMetadata": {
            "swaggerOperationId": "GetSectionsInNotebook"
        }
    }
}
Community Support Team
Community Support Team

Re: OneNote (business) connector - Unable to parse site ids from OneNote API

Hi @bnixon,

 

I noticed that the notebookKey is your code that is not similar to mine.

My code is /Notebooks/Notebook Name, but your code is /Notebooks/Notebook Name/Section Name.

Your action is Get the section in notebooks, right? You can check the notebookKey whether correct.

{
    "inputs": {
        "host": {
            "connection": {
                "name": "@json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$connections']['shared_onenote_1']['connectionId']"
            }
        },
        "method": "get",
        "path": "/notebooks/notebookKey/sections",
        "queries": {
            "notebookKey": "Test|$|https://XXXXX-my.sharepoint.com/personal/YYYYY/Documents/Notebooks/People/Test"
        },
        "authentication": {
            "type": "Raw",
            "value": "@json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$ConnectionKey']"
        }
    },
    "metadata": {
        "flowSystemMetadata": {
            "swaggerOperationId": "GetSectionsInNotebook"
        }
    }
} 

 

Best Regards,

Community Support Team _ Lin Tu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

bnixon
Level: Powered On

Re: OneNote (business) connector - Unable to parse site ids from OneNote API

The notebookKey is being populated based on the Notebook name I select  in "Get sections in Notebook"

 

The Notebook is physically in my OneDrive at that location:

https://XXXXX-my.sharepoint.com/personal/YYYYY/Documents/Notebooks/People/Test

i.e. the Notebook name is "Test" and it is a "People" folder within the "Notebooks" folder. I am able to open the Test Notebook using that exact URL, so I believe the path and key is correct.

 

I decided to try using the Microsoft Graph API to see if I can get to the Notebook and sections, and that is failing as well, i.e. when I try "https://graph.microsoft.com/v1.0/me/onenote/notebooks" in Graph Explorer, I get:

{
    "error": {
        "code": "UnknownError",
        "message": "",
        "innerError": {
            "request-id": "3088b795-4e07-434a-8565-00d7b69eb74a",
            "date": "2019-08-16T21:33:14"
        }
    }
}

So, I wonder if the OneNote (business) connector is fully supported in O365 G3 or if there are additional permissions or configuration required.

 

At a prior company, using O365 Business (not Government), all of this worked.

Community Support Team
Community Support Team

Re: OneNote (business) connector - Unable to parse site ids from OneNote API

Hi @bnixon,

 

It's not a permission issue, cause it has no error message that "Please check your account info and/or permissions and try again".

 

Could you please share your action configuration?

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

bnixon
Level: Powered On

Re: OneNote (business) connector - Unable to parse site ids from OneNote API

How do I see (or share) my action configuration?

 

I am not doing anything special in setting up the flow.

 

For example, I create a new blank flow, add a "Get pages for a specific section" Step, select my Notebook Key, and then then cannot select a Notebook section.

 

Flow Issue.PNG

JGosnell
Level: Powered On

Re: OneNote (business) connector - Unable to parse site ids from OneNote API

I am having the same issue while using the Meeting Capture app template in Power Apps.  I too am using a goverment license GCC.

 

Any help would be greatly appreciated.

Community Support Team
Community Support Team

Re: OneNote (business) connector - Unable to parse site ids from OneNote API

Hi @bnixon,

 

Sorry for late, there are some issue happened on the OneNote connector currently. And some features have been solved.

Do you still have the issue?

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

JGosnell
Level: Powered On

Re: OneNote (business) connector - Unable to parse site ids from OneNote API

Yes, this issue is still occurring.  The Error message that I receive is:

 

OneNote(Business).GetSectionslnNotebook failed: {"error": {"code": 502, "message": "Unable to parse site ids from OneNote API. Code: 500, Response:", "source": "power-apis-usgov001-public.azure-apihub.us", "path": "choose[4]\\when[1]\\choose[2]\\when ^ [1]", "clientRequestld": "60c8cb53-9b60-4839-8a19-b19e0c22fb60"}}

 

 

bnixon
Level: Powered On

Re: OneNote (business) connector - Unable to parse site ids from OneNote API

Yes, I can confirm this issue is still occuring in Flow with the OneNote (business) connector.

 

Also (perhaps related), the Graph APIs related to OneNote also do not work in the Graph Explorer, but other APIs (such as GET my email, profile, photo, etc..) do work.

 

Seems like OneNote for business isn't properly configured to work with Flow, PowerApps, Graph, etc.. for G3 O365.

Yocomd
Level: Powered On

Re: OneNote (business) connector - Unable to parse site ids from OneNote API

Adding my voice to the mix.  We are also seeing the same issue in our Government tenant.  Specifically with the Meeting Capture template, as well.

Yocomd
Level: Powered On

Re: OneNote (business) connector - Unable to parse site ids from OneNote API

Is there currently an open issue to address this problem?

JGosnell
Level: Powered On

Re: OneNote (business) connector - Unable to parse site ids from OneNote API

Still waiting for an update @v-litu-msft - can you let us know when we can expect this to be resolved for the Government clients?

Community Support Team
Community Support Team

Re: OneNote (business) connector - Unable to parse site ids from OneNote API

Hi @bnixon,

 

This issue may be caused by the Government G3 tenant, our test environment is business, so there's no way to reproduce it.

You could click the contact support to Ask for further help.Annotation 2019-09-04 164853.png

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

JGosnell
Level: Powered On

Re: OneNote (business) connector - Unable to parse site ids from OneNote API

My apologies for being direct, but isn't this thread a way to contact Microsoft about the problem?

 

How can we get this moved up the food chain to get it fixed for the G3 tenant? 

 

Clearly, this is an 'across the board' sort of issue.  @v-litu-msft is there a specific G3 contact name/email you could provide to allow us to work with them directly?

Yeiner
Level: Powered On

Re: OneNote (business) connector - Unable to parse site ids from OneNote API

we are working on a fix for this, however, we don't have an ETA yet

bnixon
Level: Powered On

Re: OneNote (business) connector - Unable to parse site ids from OneNote API

Any new updates?

 

I tried again and am getting a bit more info in an error message. See below:

Flow Issue 2.PNG

Could not retrieve values. Unable to parse site ids from OneNote API. Code: 403, Response: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> <title>403 - Forbidden: Access is denied.</title> <style type="text/css"> <!-- body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;} fieldset{padding:0 15px 10px 15px;} h1{font-size:2.4em;margin:0;color:#FFF;} h2{font-size:1.7em;margin:0;color:#CC0000;} h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;} #header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF; background-color:#555555;} #content{margin:0 0 0 2%;position:relative;} .content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;} --> </style> </head> <body> <div id="header"><h1>Server Error</h1></div> <div id="content"><div class="content-container"><fieldset><h2>403 - Forbidden: Access is denied.</h2><h3>You do not have permission to view this directory or page using the credentials that you supplied.</h3></fieldset></div> </div> </body> </html>
Enter custom value
'Notebook section' is required.

JGosnell
Level: Powered On

Re: OneNote (business) connector - Unable to parse site ids from OneNote API

I am also experiencing the same error!

 

Can we get an ETA on the fix please?  This toold is something that we really want to implement, but can't go forward if we can't get it to work right.

Yeiner
Level: Powered On

Re: OneNote (business) connector - Unable to parse site ids from OneNote API

Hello All,

 

We are actively working on this, however, there is no ETA yet.

 

I will keep you posted

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Users Online
Currently online: 331 members 6,014 guests
Please welcome our newest community members: