Linking Spotfire to Sharepoint - sharepoint

I hope you can help. I have a pretty big Excel file stored on my local drive that is linked to my Sharepoint model.
Because this excel file is so large it has taken up a lot of space so I have placed this file and a second file "World Map" in my Sharepoint.
See Pic 1
Pic 1
The current location of the Excel file is here H:\TOV Storage Folder\EFPIA_TOV All_Master_Master.xlsx
and the current World map is stored here H:\WorldMap\World_Countries.shp
What I would like to do is replace these files with their equivalents in Sharepoint but I keep getting the same error when I try to do so.
See Pic 2
The link that I am placing into the OData Connection is this
http://teamspace.merck.com/sites/emea_efpia/Shared%20Documents/Forms/AllItems.aspx?RootFolder=%2Fsites%2Femea%5Fefpia%2FShared%20Documents%2FBET%2FTOV%20Master&FolderCTID=0x012000FA7F4E9565D6274DAF9E871EA008299B&View={B6EF0397-E24C-49DF-92EF-CB7015B60539}
But I keep getting the error pop up in Pic 2.
Can anyone help me solve this issue?
I simply wish to replace the files on my H drive feeding my Spotfire model to the ones in Sharepoint.
Pic 2

I do this a lot with Spotfire; Try the OData link:
http://teamspace.merck.com/sites/emea_efpia/_vti_bin/listdata.svc
You will likely need to include authentication details for your active directory.
You can also try following that link in internet explorer/chrome to see the XML (if you get page not found someone has customised something and it wont work).

Related

Facing Issues with Microsoft Excel

Hi my name is Donald Jhon we have a community of Freelancers doing data entry jobs in various Microsoft products for this we have created a local area network with a central shared space to save the files. from last few days we are facing some issues while saving excel files over shared space the file says 'someone else is working on the file " but in reality the file is not opened by anyone else. i am attaching screen shot of the error so that someone may help me.
good day.

Power BI unable to read excel worksheet with multiple tabs

I have an excel worksheet with 10 tabs.
For each tab, the data is structured as follows:
All tabs follow this same basic structure.
In Power BI, when I go to "Get Data", and then choose the .xlsx file, I get the following error:
Unable to connect
We encountered an error while trying to connect.
Details: "The input couldn't be recognized as a valid Excel document."
This is very frustrating and I don't know how such a simple task cannot be accomplished in Power BI.
Thank you.
Such alert could appear when you try to use Power BI connector on Excel file. It's understandable if the source file is corrupted and can't be opened in Excel. However, it looks strange if Excel opens the file in question and shows nothing wrong.
Based on our experience above is usually means what something is wrong with XML scheme of the Excel workbook.
Mushup trace (Data->New Query->Query Options->Diagnostics->Enable tracing) could give some additional information, but often not enough to find the reason.
We had two main scenarios
XML scheme is not complete
Usually if Excel file was generated by third-party tool. Such tool could generate quite limited XML scheme which is enough to open the file in Excel and to work with it, but not enough for Power BI connector. As an example, trace log shows
[DataFormat.Error] The input couldn't be recognized as a valid Excel document.\r\nStackTrace:\n…
…
[DataFormat.Error] We couldn't find a part named '/xl/sharedStrings.xml' in the Excel package.\r\nStackTrace:\n…
Such case is easy to fix – it's enough to open the file in Excel and save it (without any changes) – Excel is clever enough to fix the scheme. For the routine regular tasks we use poweshell script which does exactly the same in background.
There is the link within Excel file which is not recognizable as valid
Usually if Excel file is synced/kept with some cloud storage. One of the variants, wrong link could appear with copy/paste from another such file. That could be active link in one of the cells; or the link within conditional formatting formula; or even the link which actually isn't used by Excel but kept somewhere inside the scheme. For example, in one of the files I found in Data->Consolidate->All references the link like
'\drive.tresorit.com#7235\Tresors….[file.xlsx]Sheet'!$AC$6:$AC$357
on the file which was deleted long ago and isn't used, but for some strange reason the link was kept within the scheme.
Unfortunately for such case trace log doesn't give enough information to localize the issue, it looks like
[DataFormat.Error] The input couldn't be recognized as a valid Excel document.\r\nStackTrace:\n…
…
nExceptionType: System.UriFormatException, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\r\nMessage: Invalid URI: The hostname could not be parsed.\r\nStackTrace:\n
Perhaps I have not enough knowledge for more straight forward localization of the problem, but the only way is to exclude Excel file parts one by one and check if the issue disappeared. Another way could be to unzip Excel file and check if wookbook.xml or sheetNN.xml have something suspicious inside.

Accessing Excel over SharePoint with Graph API returns invalid URL error

I have a Sharepoint with multiple drives that contains an Excel file (xlsx) of which I'd like to return some data.
I have successfully found the Excel file through lists with a GET:
https://graph.microsoft.com/beta/sites/COMPANY.sharepoint.com:/teams/TEAM:/lists/LONGID/items/LONGID/
Which leads to the Excel file. If I try to start a session by POSTing to excelfile/workbook/createSession with { "persistChanges": false } as body, I get a "Resource not found for the segment 'workbook'" error.
Thinking it was because I was working with a listitem, I have been trying to find the file through the drive afterwards but any which way, I can not access any drives.
https://graph.microsoft.com/beta/sites/COMPANY.sharepoint.com:/teams/TEAM:/drives
Above link returns all the drives. Accessing a drive by going to
drives/LONGID/root
drives/LONGID/root/children
drives/LONGID/items
drive/LONGID/root
drive/LONGID/root/children
drive/LONGID/items
returns a "Url specified is invalid". It's the same for accessing files in the default drive.
Any help would be appreciated!
You have correctly guessed that in the first case you are querying listItem which is not a driveItem. You've gotten very close to figuring out the correct URL on your own.
What you can leverage is the fact that every SharePoint list is a drive. Then, you can do the following:
GET https://graph.microsoft.com/beta/sites/SITE_ID/lists/LIST_ID/drive/items/ITEM_ID/workbook/worksheets.
I use the ID notation for shortness, but the :/path: notation works for sites, lists, and driveItems.
Let me know if this still doesn't work.
Thanks,
Zlatko

How to get data from Sharepoint excel datasource to Power BI desktop?

I want to load an excel which is in Share point to Power Bi Desktop.
I have tried loading the sheet by using the data source SharePoint List but failed as its throwing an error. Please help me by suggesting any other way.
Thank you.
I would use Get Data / Web. It will automatically recognize that the target is an Excel file and generate the M functions to interpret it.
The trick can be getting the true link to the SharePoint file - something you can just paste into a browser's address bar so it will download the file directly.
For SharePoint Online, I use Get a Link / Restricted Link, then delete any trailing query parameters after the file name, typically ?d=blabla
That should also work for SharePoint 2016. From memory it was easier in the earlier versions.
I suggest choosing Sharepoint Folder from the Get Data menu.
Then you need to enter the site's (or subsite) root url (not the direct link to the excel file)
For example, you would connect to.
https://yourcompany.sharepoint.com/training/
Instead of the full address.
https://yourcompany.sharepoint.com/:x:/r/training/_layouts/19/Doc.aspx?sourcedoc=%2asdfasdfasdfasdf%7D&action=default&uid=%7asdfasdfasdf-4662-A7A5-asdfasdf%7D&ListItemId=2&ListId=%7asdfasdfasdfa3443445&env=prod
Then press Edit to reveal all of the documents stored at that root. By clicking the binary link, the query editor will reveal the contents of the file. Then select the tab you're interested in loading by selecting the Table under the data column.
Steps to get the data from sharepoint to Power BI:
Select the File available to share pont
Click on three dots
Go to Open-> Open in app
In app, click on File -> Info -> Copy Path
Open Power BI, New Source-> Web
Add URL, delete (data with and after ?)

SharePoint 2007/2010 issues copying lists with hidden files using MetaVis

I'm working on migrating SharePoint lists (using MetaVis Migrator) and running into issues with files that seem to end in .000 files extension. Near as I can tell this was sometimes a temp file in SharePoint. (I'm not an SP expert)
Anyway, these files seem to be preventing me from migrating/copying lists using MetaVis. Anyone know if you can get rid of these or where they live?
Thanks,
Jes
These extensions look more like items than documents. Try to copy them using item level copy that will let you to select content type in the destination list. You can contact support#metavistech.com so someone will guide you through the process.
Good luck with you migration,
Mark

Resources