Import Documents into SharePoint 2013
I am migrating to SharePoint from another system.I want to import my documents to a SharePoint document library. I know how to import into this library, but the problem is with user rights. I have to many documents to import so, the process has to be automatically.
I have also the metadata for the documents. The old system allows me to export the user rights for every document in a file. It can be CSV, excel etc, so the file format is not a problem. Is there any way I can import these user rights into SharePoint?
Not really, there's loads of examples on how to upload files and how to set properties but to put all that together to create a custom import process isn't that easy. It's also a potentially pretty steep learning curve if you're not familiar with PowerShell.
If you search for PowerShell permissions and SharePoint you can get a good few examples. This thread has a few nuggets:
http://social.technet.microsoft.com/Forums/sharepoint/en-US/349151cc-a941-48c5-bc37-9247297e6e8f/manage-item-permission-via-powershell
Similar Messages
-
Unable to import Thesaurus in SharePoint 2013 - Failed to start the flow
I am having issue with importing Thesaurus into SharePoint 2013. I have tried with seed file on local and remote server without success. On ULS stack, it lists "Cannot start flow. The admin service is unavailable". But if
I retrieve status of search topology, it lists admin components (running on two app server) are active. Any idea how this could be resolved or direction I can head to?
This is what I have tried :
PS C:\Users\user> $sa = Get-SPEnterpriseSearchServiceApplication
PS C:\Users\user> Import-SPEnterpriseSearchThesaurus -SearchApplication $sa -FileName \\server_name\testThesaurus.csv
+ CategoryInfo : ResourceUnavailable: (Microsoft.Offic...aurusDictionary:ImportThesaurusDictionary) [Import-SPEnterpriseSearchThesaurus],
InvalidOperationException
+ FullyQualifiedErrorId : Microsoft.Office.Server.Search.Cmdlet.ImportThesaurusDictionary
On ULS I get the following entries:
CtsConnection.StartFlow: Failed to start the flow: Microsoft.ThesaurusDeployment. Exception: System.ServiceModel.FaultException: Cannot start flow. The admin service is unavailable. Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown
at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.Ceres.ContentEngine.Services.ContentIntegrationEngine.IContentIntegrationEngineManagementAgent.ExecuteFlow(String name, FlowEvaluationConfig config)
at Microsoft.Ceres.ContentEngine.ComponentClient.CtsConnection.StartFlow(String flowName, IDictionary`2 parameters)
MK SinHi,
Please check if it is related to the primary search host controller, make sure it is enabled for the farm, then check results again.
$searchApp = Get-SPEnterpriseSearchServiceApplication
Get-SPEnterpriseSearchLinguisticComponentsStatus -SearchApplication $searchApp
Get-SPEnterpriseSearchHostcontroller
Import-SPEnterpriseSearchThesaurus -SearchApplication $searchApp -Filename \\sp\custom_thesaurus.csv
Thanks
Daniel Yang
TechNet Community Support -
How to import column values into SharePoint 2013 Term Store Using Powershell(CSOM)
Hi,
I do have SharePoint 2013 list with more than 500 items in it.Now I am trying to import column values into SharePoint 2013 Term Set A using Powershell scripts.
I am new to Powershell(csom) and can anybody help me out to accomplish this task?
Any help would be greately appreciated.
Thank you,
AA.
AA.Hi
check this doc
http://wellytonian.com/2012/10/sharepoint-2010-2013-term-store-importer-using-csv/
Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you. -
Word Viewer will not open documents from Sharepoint 2013 in IE11
I've run into an issue while trying to open documents from SharePoint 2013 after upgrading to IE11. My organization uses Word Viewer with the compatibility pack and all other Word documents (local files, intranet hosted) will open with no problems. When
trying to open a Word document from SharePoint the Word Viewer will open, but the file does not. We have verified that all Windows Updates are installed. We have tried opening SharePoint in Compatibility View and Enterprise Mode. We have re-downloaded the
latest version of Word Viewer and reinstalled it along with the compatibility pack. If we open the SharePoint site in Explorer view and then open a Word document it will open in Word Viewer with no problem. Excel and PowerPoint documents open from SharePoint
with no problem. This is only affecting Word documents with Word Viewer. When using the full version of Word the documents open fine. Within SharePoint we have tried activating the site collection feature "Open Document In Client Applications by Default"
but it made no difference. We're completely at a loss how to make this work as there doesn't seem to be much information specifically pertaining to issues with Word Viewer.Hi Victoria.
1. The PCs do not have Microsoft Office installed, nor are we using the Office Web Apps. "Word Viewer" means the Microsoft Word Viewer application available here (http://www.microsoft.com/en-us/download/details.aspx?id=4) that is available
free for read-only viewing of Word documents.
2. There are no errors when I open Word docs in Word Viewer. The Word Viewer application launches after clicking a Word document link in Sharepoint, but there is no file open in it. When that happens the IE11 Sharepoint window on the taskbar is flashing
yellow, but when I click back to it there are no messages or alerts to click on.
3. This issue does occur with all Word documents (.doc, .docx) in SharePoint. However, it does not occur when opening Word documents in the Word Viewer when they are local files or through IE11 from a non-SharePoint website like our local intranet.
Those files will open with no problem in Word Viewer.
4. I will try to get a screenshot, but we are working on creating images for deployment and I don't currently have a machine configured the same way. I'll work on reconfiguring one and post a screenshot.
Thank you for your help! -
Hi,
I want to hide(not disable) the "Save As" and "Exit" options in the File Menu of Excel Documents in SharePoint 2013.When I make changes in the excelribbon.css file of xlviewer.aspx,all the options under File menu are getting hidden but
I want to hide only these two options while retaining the others.
Kindly suggest me a method to achieve this.
Looking forward to your reply at the earliest.
Thanks in advance.
Regards,
SanjanaHi Sanjana,
To hide the “Save As” and “Exit” options in xlviewer.aspx page in SharePoint, I recommend to use the code below(however it is not recommended):
<style>
div.cui-menusection li.cui-menusection-items:nth-child(2)
display:none !important;
div#m_excelWebRenderer_ewaCtl_menuJewelSaveAs{
display:none !important;
div#m_excelWebRenderer_ewaCtl_msJewelSecondary{
display:none !important;
</style>
As “:nth-child()” selector is supported in IE 9 and later versions, please use IE 9 or later versions’ IE browser.
http://www.w3schools.com/cssref/sel_nth-child.asp
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
Upload 100 GB data into sharepoint 2013 site
Hi Team,
I want to upload 100GB data into sharepoint 2013 site for performance testing.
I have the 5 document libraries.
I want to upload the 10GB data to each document library in the site using powershell.
Is it possible or not? Can you explain the detailed stepsThis should not be a problem, but you can't do it in 1 go as the default upload size per document = 50 MB (see
https://msdn.microsoft.com/en-us/library/ff487972.aspx). I've created a tool that uploads documents in chunks, maybe you can use that (read the article as you'll need to increase some settings):
https://gallery.technet.microsoft.com/office/The-Migration-Dragon-for-628acae0 Maybe that's an option for you too.
Kind regards,
Margriet Bruggeman
Lois & Clark IT Services
web site: http://www.loisandclark.eu
blog: http://www.sharepointdragons.com -
Saving/Opening documents to SharePoint 2013 from within Office 2010 applications
I was hoping that Office 2010 would work nicely together in terms of saving to and opening documents from SharePoint 2013. Alas, I was disappointed and somewhat surprised to see that opening/saving documents in SharePoint from within Office still
involves copying, pasting and hacking the URL of the document library in the Save or Open dialogue box. I was fully expecting that Office 2010 would have display some sort of SharePoint navigation so you could view your sites and document libraries in a similar
way to folders. A mature document management system this ain't!
Anyone have any advice on how to improve the Open/Save to/from SharePoint experience in Office 2010? I'm open to the idea of Office add-ins whether third party or official Microsoft.
Thanks in advanceThanks for the reply, but that's from within SharePoint, not Office?
An example scenario: I create a new document or receive a document, I'm in the document, and I want to publish the document to a document library in SharePoint. At the moment I would have to save the document, load up SharePoint, navigate to the document
library and then go through the upload process.
I should really be able to, from within Word, select File - Save to SharePoint (say) and then be able to navigate to the document library I want to publish to. Really basic DMS stuff that I'm surprised isn't there!
Similar thing to opening a document. I should be able to Open from SharePoint, navigate to the document library via some sort of navigation box, and open it.
Thoughts appreciated. -
Sorry, we couldn't open...Error opening office documents from SharePoint 2013 in the desktop applications
One of our Managers encounters the error 'A problem occurred while accessing the Office document cache. Do you want to repair this problem?'
Then When he says yes it give a warning that the cache will be backed up and replaced
Then it says 'A new office document Cache has been created...'
Then it loads this cache with an error
Then After all that the next time he tries to open the document it says is encountered "Sorry, we couldn't open 'URL."
We have Reinstalled office 2013 on the users PC repaired the cache numerous times
Followed - http://office.microsoft.com/en-gb/word-help/manually-rename-the-office-document-cache-HA101848838.aspx
Updated Lync to 2013 leaving Access as the only office 2010 application (required for legacy systems access)
Repair installed office 2010 and office 2013 again
The SharePoint site has been added to the trusted sites list and the set up assistant run from office 365
And the issue remains the Same all other users including some who also have Access 2010 for legacy systems access have no Issues OS is windows 7 32 Bit browser is IE 9
Office 365 said
Reply by Rachel Zhang MSFT Support
Hi Alex,
From your description, I notice that the issue is related to Office client. We would like to help you, but I’m sorry that our forum does not focus on this scenario and has limited resources regarding it. However, we have a dedicated support forum where
the support engineers will help you with the issues about Office client:
Microsoft Office Community:
http://answers.microsoft.com/en-us/office/forum/office_2013_release?tm=1365567547805
Feel free to sign in to the Office community and click Participate->Ask a Question to post the question with the relevant information.
Microsoft Office Community:
Feel free to sign in to the Office community and click to post the question with the relevant information.
Office team said
Hello Alex,
Thank you for posting your query in Microsoft Office Community.Check if other excel works fine
Do you have any script\macro in excel file
Check if all application pool on all servers are running
both office and IE should be same build (64 or 32 bit)
what is the error message in ULS log and Event viewer
If this helped you resolve your issue, please mark it Answered -
Hi,
I found a thread in this forum With an answere to a similiar question here:
http://social.technet.microsoft.com/Forums/en-US/28bc1e27-4a65-4c61-9b3e-cb9dad17f779/office-web-apps-preview-sharepoint-2010-documents-in-sharepoint-2013-search-results?forum=sharepointsearch&prof=required
...With the answere:
"OWA uses an access token to talk to SharePoint 2013. It cannot use this when talking to 2010. In order to work with 2010, you have to create a custom display template that converts the file url to an openurl link. "
BUT...
may anyone give more information how to do this?
Links to articles? Links to description and samples?
jikHi,
According to your description, my understanding is that you want to preview documents from SharePoint 2010 in search results in SharePoint 2013.
Per my knowledge, the Office Web Apps is configured to work with SharePoint 2013, so it will not work with documents in SharePoint 2010.
I recommend to configure Office Web Apps to work with SharePoint 2010
and make sure that documents can be previewed in SharePoint 2010 using Office Web Apps to see if the documents can be previewed in SharePoint 2013 search result.
http://technet.microsoft.com/en-us/library/ff431687(v=office.14).aspx
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
Multiple File Attachment Column in Document Library (SharePoint 2013)
Hi All,
As per default, i will have only one column to attach documents in Document Library . But i need to add multiple column for documents attachment in same row.
e.g. See below column
1)Project Name 2) Attachment 1 3) Attachment 2 4)Attachment 3 5)Attachment 4
Kindly help me for creating such column (Hope there should be any coding requirements)Hi Vrij,
According to your issue what my understanding that if you need multi-document attachment is required then
then its not possible by default because As we had known, the Upload Multiple Documents option is deprecated in SharePoint Server 2013.
To work around this issue, my suggestion is do one of the following to upload documents to the SharePoint Server 2013 document library:
Use the Windows Explorer view
Use the SharePoint Server 2013 drag-and-drop functionality
http://www.learningsharepoint.com/2012/11/29/how-to-upload-multiple-documents-in-sharepoint-2013/
If you still want to use this function, there are some third-part software's you can have a look at.
http://www.office365experts.be/en/products/office-365-bulk-uploader
http://www.sharepointadd-ons.com/sharepoint-2013-multiple-file-uploader
Please mark the Answer and vote me if you think that it will you help about approach in multiple-doc upload -
Word 2013 slow to open documents from SharePoint 2013
Hi all,
Word 2013 running on a Windows 8.1 client is take 2 or more minutes to open a document from SharePoint 2013. Excel takes less then 10 seconds from the same site in SharePoint.
I have remove all proxy configuration from IE, clear the Auto Detect Settings. Added the URL's to the intranet zone and disabled all IE addons. I have also performed a reset on IE, reinstall of Office and tried a number of workstations. All have the same
issue. The document just take forever to open.
Checking with Fiddler, I can see 3 requests hit the SharePoint server then nothing... after a few minutes the document opens.
Any ideas?
Cheers
CraigHi Craig,
For troubleshooting your issue, please take steps as below:
1.Open IE, go to "Tools > Internet Options > Connections > Lan Settings" and uncheck "Auto Detect Proxy".
2.From the File tab in Word application, select Options and then click on Advanced and then in the Display section of the dialog, check the box for
Disable hardware graphics acceleration.
3.Edit the registry at HKEY_CLASSES_ROOT\Word.Document.12\shell\Open and deleting the ddeexec key.
Also please have a look at the article:
https://msdn.microsoft.com/en-us/library/office/jj230106.aspx?f=255&MSPPError=-2147217396
Reference:
http://sharepoint.stackexchange.com/questions/19390/what-is-slowing-the-opening-of-office-documents/9203
http://answers.microsoft.com/en-us/office/forum/office_2013_release-word/office-2013-products-slow-to-open/baf311b0-6a47-498b-9836-39e0c8b94c46?page=1
Best Regards,
Eric
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Remote upload into sharepoint 2013 document library (cloud based)
We have a sharepoint 2013 in the cloud.
Is it possible to have some kind of service (windows or web based) that can access a document library on said cloud server and put files into said document library?
I don't think we have a lot of behind the scenes access to the cloud instance of 2013.Hi,
As I said above, we could use the Client Object Model to upload the files without the user having to go to SharePoint in the browser first and logging in.
We can use the credentials in the code as below, the code would copy files to SharePoint online, it worked well in my environment, you can check whether it works.
public static void CopyDocuments(string srcUrl, string srcLibrary, string destUrl, string destLibrary)
// set up the src client
ClientContext srcContext = new ClientContext(srcUrl);
SecureString passWord1 = new SecureString();
foreach (char c in "Password01!".ToCharArray()) passWord1.AppendChar(c);
srcContext.Credentials = new SharePointOnlineCredentials("[email protected]", passWord1);
Web srcWeb = srcContext.Web;
List srcList = srcWeb.Lists.GetByTitle(srcLibrary);
ListItemCollection itemColl = srcList.GetItems(new CamlQuery());
srcContext.Load(itemColl);
srcContext.ExecuteQuery();
// set up the destination context
ClientContext destContext = new ClientContext(destUrl);
SecureString passWord = new SecureString();
foreach (char c in "Password01!".ToCharArray()) passWord.AppendChar(c);
destContext.Credentials = new SharePointOnlineCredentials("[email protected]", passWord);
// get the destination list
Web destWeb = destContext.Web;
destContext.Load(destWeb);
destContext.ExecuteQuery();
foreach (var doc in itemColl)
try
//if (doc.FileSystemObjectType == FileSystemObjectType.File) //Field or Property "FileAttachement not found."
// get the file
File file = doc.File;
srcContext.Load(file);
srcContext.ExecuteQuery();
// build destination url
string nLocation = destWeb.ServerRelativeUrl.TrimEnd('/') + "/" + destLibrary.Replace(" ", "") + "/" + file.Name;
// read the file, copy the content to new file at new location
FileInformation fileInfo = File.OpenBinaryDirect(srcContext, file.ServerRelativeUrl);
File.SaveBinaryDirect(destContext, nLocation, fileInfo.Stream, true);
catch (Exception ex)
http://blog.blumshapiro.com/blog/2012/08/22/sharepoint-2010-using-the-client-object-model-to-move-files-and-folders-across-site-collections-and-subsites/
Thanks,
Jason
Forum Support Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected].
Jason Guo
TechNet Community Support -
hi ,
i am trying to upload multiple document files into sharepoint list item. I followed below link for implementaion.
http://techfindings-prem.blogspot.in/search/label/jquery.multifilejs
It was working for sharepoint hosted app.
This complete code is written within content edito web part.
It was working when i was in root site collection with below change (hard coded the root level url) in code in "UploadFile" function.
var scriptbase = "http://servername" + "/_layouts/15/";
console.log(' File size:' + bytes.length);
$.getScript(scriptbase + "SP.RequestExecutor.js", function () {
var createitem = new SP.RequestExecutor("http://servername");
createitem.executeAsync({
url: "http://servername/sites/cpg/" + "/_api/web/lists/GetByTitle('SalesRecord')/items(" + attachmentitemid + ")/AttachmentFiles/add(FileName='"
+ fileName + "')",
method: "POST",
binaryStringRequestBody: true,
body: binary,
success: fsucc,
error: ferr,
state: "Update"
function fsucc(data) {
//alert( data.statusText + "\n\n" + data.responseText);
console.log(data + ' uploaded successfully');
deferred.resolve(data);
function ferr(data) {
//alert( data.statusText + "\n\n" + data.responseText);
console.log(fileName + "not uploaded error");
deferred.reject(data);
But the issue came in picture when i was working with the other site collection instead of root one. The url was like below.
"http://servername/sites/cpg/". This time i need to be there within "cpg" site collection.
Now if i hard code the url as i did above my code gets break here while come to below line
$.getScript(scriptbase + "SP.RequestExecutor.js", function () {
I am getting error when i used below code:
var scriptbase = "http://servername" + "/_layouts/15/";
$.getScript(scriptbase + "SP.RequestExecutor.js", function () {
var createitem = new SP.RequestExecutor("http://servername");
createitem.executeAsync({
url: "http://servername/sites/cpg/" + "/_api/web/lists/GetByTitle('SalesRecord')/items(" + attachmentitemid + ")/AttachmentFiles/add(FileName='"
+ fileName + "')",
method: "POST",
binaryStringRequestBody: true,
body: binary,
success: fsucc,
error: ferr,
state: "Update"
function fsucc(data) {
//alert( data.statusText + "\n\n" + data.responseText);
console.log(data + ' uploaded successfully');
deferred.resolve(data);
function ferr(data) {
//alert( data.statusText + "\n\n" + data.responseText);
console.log(fileName + "not uploaded error");
deferred.reject(data);
Please hekp in this case. This complete code is written within content edito web part.
Regards:
Sanjay JoshiHi,
According to your post, my understanding is that you have an issue about upload multiple documents files into library vai REST API.
As you have said, you have used the hard code url in your code.
How about use the _spPageContextInfo.webAbsoluteUrl method to get the url?
I have used this method to get the url, then use the code in the article you have pasted within a content editor web part to upload the files.
You can replace the hard code url with the _spPageContextInfo.webAbsoluteUrl method, then check whether it works.
Thanks,
Jason
Jason Guo
TechNet Community Support -
My clients have an Office365 installation with SharePoint 2013.
When I navigate to the site in IE and click on a checked-in document, it opens in Microsoft Word with a message
Server document To modify this document you must check it out
with a Check Out button alongside.
However, if I navigate with Firefox or Chrome and click on the same link, it just downloads the document to the browser's default download location. If I then open the document in Word, there is no
Server document warning and it is entirely writeable and it's also lost its link to the document library.
Is the work-around for this that one cannot use Firefox or Chrome with SharePoint, or is there some setting in these browsers that will bypass the download and load the document directly into Word?
Thanks
EdwardDoes anyone have a better fix for this? We are attempting to launch support for a second browser - Chrome - but because of the issue with Office 2010 on the clients, the protocol handler from Chrome fails to connect the requested document directly
to the MS Office app, but rather downloads the file. IE Tab is not an option because it then defeats the purpose of having Chrome altogether since it simply uses IE8's engine. IE8's performance with large lists on SharePoint 2013 as well as the
HTML5-based functionality is simply dreadful which is the primary driver for an alternative browser.
We are aware installing Office 2013 on a machine fixes it, but that is not an option due to the current licensing.
Hope for Chrome 31? Firefox seems to work fine in our testing, but the organization wants to go Chrome instead of FF. -
Unable to edit documents in Sharepoint 2013
Hi,
unable to edit documents in SP2013.while editing getting the following error.Please guide me on this.
Thanks In advanceHi,
According to your post, my understanding is that only
one user could not edit documents in SP2013 with OWA.
You can use compatibility mode to check whether it works.
Open IE->Tools->Compatibility View Settings
You can also add the site into Trusted sites.
Open the
IE->Internet Options->Security->Sites->add the site into the Websites, then check whether it works.
What's more, you can also use other browsers to check whether it works, such as Firefox, Chrome, Internet Explorer 10.
Check whether the user has permission to the documents.
Here is a link you can use as a reference:
http://blogs.architectingconnectedsystems.com/blogs/cjg/archive/2012/07/26/Getting-Office-Web-Apps-2013-and-SharePoint-2013-Working-_2D00_-fixing_3A00_-Sorry_2C00_-you-don_2700_t-have-a-license-to-edit-documents-with-Word-Web-App.-Please-get-in-touch-with-your-helpdesk_2E00_.aspx
If the issue still exists, please feel free to let me know.
Best Regards,
Lisa Chen
Maybe you are looking for
-
Importing apple loops -why do some in a folder work and some dont?
im trying to drag and drop all my sample cds i have on my external drives into the apple loop browser in logic, some are folders in folders in folders as most cds are..why is it that when i drag the whole sample cd folder and drag it in that quite of
-
iOS 7 problems with ford sync. Skip track button no longer works.
-
How do I remove a font from FM 9
How can I remove a specific font from FM 9? I've looked in the system fonts and the font (Adobe Garamond) is not available there. The problem is when we open up some of our reports this font gets used instead of plain Garamond. While working in Fra
-
Help - about a week ago I have been unable to select any thing in any of my favourites listings. When I click on the favourites tab, and then go to bookmarks then take my cursor down my list of favourite sites to select the one I want, I get like a g
-
I delete iPhoto from my mac how can i reinstall it?
i cant seem to reinstall iphoto onto my mac help!