microsoft / PubSec-Info-Assistant

Information Assistant, built with Azure OpenAI Service, Industry Accelerator
MIT License
260 stars 512 forks source link

SharePoint feature issue #739

Open ravikhunt opened 3 weeks ago

ravikhunt commented 3 weeks ago

Getting this below error "For Each SharepointSite" -> Unable to initialize operation details for swagger based operation - Get_blobcontent(V2). Error details - Incomplete information for operation 'Get_blobcontent(V2)'

"Get blob content (V2)" -> Unable to initialize operation details for swagger based operation - Get_blobcontent(V2). Error details - Incomplete information for operation 'Get_blobcontent(V2)'

"List folder" -> Unable to initialize operation details for swagger based operation - List_folder. Error details - Incomplete information for operation 'List_folder'

and many steps are just going into "Skipped" State

Here is the example of env try with two different formate

Main URL - https://{mysharepoint.com}/sites/test/Shared Documents/Forms/AllItems.aspx?FolderCTUD=xyz&id=xyz"

1)
export SHAREPOINT_TO_SYNC='[ { "url": "https://{mysharepoint.com}", "folder": "sites/test/Shared Documents/Forms/AllItems.aspx?FolderCTUD=xyz&id=xyz" } ]'

2)
export SHAREPOINT_TO_SYNC='[ { "url": "https://{mysharepoint.com}/sites/test", "folder": "/Shared Documents/Forms/AllItems.aspx?FolderCTUD=xyz&id=xyz" } ]'

And also try the Document Library

export SHAREPOINT_TO_SYNC='[ { "url": "https://{mysharepoint.com}/sites/test", "folder": "/Shared Documents/Forms/AllItems.aspx" }, { "url": "https://{mysharepoint.com}", "folder": "/sites/test/Shared Documents/Forms/AllItems.aspx" } ]' Can someone guide me here if doing something wrong or something? I followed all the steps which are mentioned in the documentation like authorizing the SharePoint online and run manually etc

KronemeyerJoshua commented 2 weeks ago

Hello,

The SharePoint configuration should look like this export SHAREPOINT_TO_SYNC='[ { "url": "https://{mysharepoint.com}/sites/test", "folder": "/Shared Documents/Forms" } ]'

It does not ingest singular files, but all files within a folder and it's sub-folders.

Our current pipeline also does not officially support aspx files. https://github.com/microsoft/PubSec-Info-Assistant/blob/main/docs/features/sharepoint.md#document-support

The unable to initialize... errors are a bug with Logic App Preview Designer, they are purely cosmetic and do not impact the SharePoint ingestion process. Switch to the Generally Available Designer and these errors will go away. https://github.com/microsoft/PubSec-Info-Assistant/blob/main/docs/knownissues.md#there-are-errors-in-the-sharepoint-logic-app-designer