Failed to get the document information (LO 26315)
Hi,
I have to create an Xcelsius dashboard where I use a Live Office connection based on a WebI-report. The WebI is created on top of a BEx Query.
I need to pass 12 parameters to the WebI-report in orde to get the correct data.
Everything works fine in design-time, but when I want to preview the dashboard, I get the error: Failed to get the document information (LO 26315).
After investigating the issue, I've noticed that everything works fine when the parameters I have to pass, are only created in the WebI-report. But in my case it is a BEx variable that causes the error.
There is no possible way that I can recreate the BEx variable in the Universe (There are restricted key figures, calculated key figures and cell restrictions in the BEx query).
My question: is there a way to pass a parameter from an Xcelsius dashboard to a WebI-report via a Live Office connection to a BEx variable?
Lieven
Fred,
on the SAP Notes Search page on sdn.sap.com, you can enter the note number in a text field at the right side of the page, just above the Search Option part.
Just enter Note 1357924 in that text field and press the blue icon with the arrows next to it. Thiw ill show the corresponding note.
Lieven
Similar Messages
-
Cannot access external data , Failed to get the document information.
Hi All,
In my dashboard there are live office connections which has optional prompts defined in SAP BI. I have bound the cells to these prompts in live office object properties.
There are no errors while refreshing the LO connections from excel sheet.
But when i run that dashboard and give BLANK value for that prompt then it throws the error :
Cannot access external data , Failed to get the document information. (LO 26315).
Reply highly appreciated.
Thanks & Regards,
DJHi Hardik,
I am building a similar solution as yours connecting webi reports to Bex queries and reading the webi data through live office into the dashboards. I am using almost similar versions as yours - BW 7.1 SP5, BO 4.1 SP4, Dashboards and Live Office SP4 versions. I am facing issues setting up the live office connections itself. I create the Live office connections within an excel and when I try to import this excel spreadsheet into my dashboard designer, it runs forever and crashes.
Could you please list out the steps you performed to get the Dashboard to preview live office data? Do you have OLAP connections for BW cubes and created WebI reports using these connections or You created a Universe on top of the Bex Queries?
It would be great if you could share the steps performed.
With respect to your issue, check if the report engine service is running. Do you have any error message details apart from this error?
Thanks.
Regards,
Rohini. -
How to get the "Document Info" in illustrator
In illustrator using "Document Info" we can get the file information. Like that how to get the document information using script. Anyone please help me.
Regards,
PrabudassI think sample code in the SDK contains a 'skeleton' plugin, I'd start with that. It should also provide a list of suites that get automatically loaded, I think it's in Suites.h. Just make sure AIDocumentSuite is in the list, and if it's not, just follow the examples in that file to add it. That should end up with a global variable called 'sDocument', which has all the suite functions as methods.
Then it's something like:
AIDocumentSetup setup;
AIErr error = sDocument->GetDocumentSetup(&setup);
// check error to make sure it's kNoErr
Then you just have to inspect the setup struct for (hopefully) the answers you're looking for. -
Hello,
When implementing a VDI solution, I'm getting an error on our virtualization host server. The error is:
Remote Desktop Virtualization Host failed to get redirection authentication information from the virtual machine [VDI-PC].
Hresult 0x8000FFFF
Event ID 8467, Severity: Warning, Source: Microsoft-Windows-TerminalServices\TSV\VmHostAgent
This error happens every time a user or admin connects to a VDI desktop. This is a fresh install of Remote Desktop Services on completely fresh servers. This is in testing and we have not ever had it working before without the error.
Topolgy: Server2012 R2, Windows 7
Srv-RDCB1: Is the connection broker and Web Access server. It is Virtualized thru Hyper=V.
Srv-RDVH1: Is the virtualization host. It is a physical server. It also has a separated hyper-v role (for RDS VDI deployment).
Everything seems to be functional other than this error in the log, and I haven't found any information on what this could mean.
Any help is greatly appreciated, thanks!Hello. I have this trouble too.
All roles on one server.
Deployment type - Quick start
Deployment Scenario Virtual mashine-based desktop deplyment
Reinstall all roles 2 times
Warning TerminalServices-TSV-VmHostAgent
8467 Orchestration
Remote Desktop Virtualization Host failed to get redirection authentication information from the virtual machine [per-0] .
Hresult: 0x8000FFFF
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-TerminalServices-TSV-VmHostAgent" Guid="{92618A87-2F6A-4B75-9AE2-E77BE7EAF43C}"
/>
<EventID>8467</EventID>
<Version>0</Version>
<Level>3</Level>
<Task>22</Task>
<Opcode>14</Opcode>
<Keywords>0x4000000000000000</Keywords>
<TimeCreated
SystemTime="2014-11-11T13:24:45.579138000Z" />
<EventRecordID>1655</EventRecordID>
<Correlation
ActivityID="{F4200EF7-FEDD-4CAD-9F5D-6219A5F30000}" />
<Execution ProcessID="3164" ThreadID="13164" />
<Channel>Microsoft-Windows-TerminalServices-TSV-VmHostAgent/Operational</Channel>
<Computer>blade2.vzfei.local</Computer>
<Security UserID="S-1-5-20" />
</System>
<UserData>
<EventXML xmlns="Event_NS">
<param1>per-0</param1>
<param2>0x8000ffff</param2>
</EventXML>
</UserData>
</Event>
In RD Gateway Manager, right-click on the RD RAP and click Properties. On Network Resources tab select
“Allow users to connect to any network resource”.
not work. -
Failed to get the linked token information
Greetings,
I have run command line that executes a vbscript that is giving the following error:
failed to get the linked token information. It may not be available. Error 1312
The script works perfectly and returns a code of zero. The script is running under another account but all that works fine too. I could just ignore that error but I'm curious as to why it is being generated.
Thanks
David ZError 1312:
C:\DeploymentShare\Scripts>err 1312
# for decimal 1312 / hex 0x520 :
ERROR_NO_SUCH_LOGON_SESSION winerror.h
# A specified logon session does not exist. It may already
# have been terminated.
Are you accessing any network resources that require credentials?
(I find it funny/suspicious when scripters claim upfront: "The script works perfectly..." :^)
Keith Garner - Principal Consultant [owner] -
http://DeploymentLive.com -
Error: "The document information panel was unable to load"
Hello,
I have created a custom document content type that uses a specified word template for a sharepoint document library for contracts and offers, and added a few custom columns in the document library as well. The word template launches succesfully when creating a new item in the document library, but the problem arises when I add custom columns to the word template content type. When the document loads in Word, I get the following error: "The Document Information Panel was unable to load. The document will continue to open. For more information, contact your system administrator." And in details:
"Document Information Panel cannot create a new, blank form.
Document Information Panel cannot open the form. To fix this problem, contact your system administrator.
Form template: http://servername/sitename/proppanel.xsn
The following DataObject either cannot be created or cannot be initialized: list_033AA217-8906-447E-A604-A300F51D4030
Document Information Panel cannot add the following object to the DataObjects collection: list_033AA217-8906-447E-A604-A300F51D4030
list_033AA217-8906-447E-A604-A300F51D4030 could not be added to the DataObjects collection.
The following item already exists in the collection: list_033AA217-8906-447E-A604-A300F51D4030"
Interestingly enough, I have two web applications running on the same server that I have tried to implement this on, and on the other it works flawlessly, meaning that the Document Information Panel launches successfully and I can edit the columns associated with that content type and store the values in a document library. I have also tried to save the DIP template from the working web application and use it as the default DIP template on the other application, but that doesn't work either.
I have also tried to browse through all options and configurations in the application settings in CA and SSP, but to no avail. Any suggestions about what might be causing this problem or how to fix it would be greatly appreciated.
- Sebastian ErikssonHi All,
I have the same problem with my DIP in already two of my document libraries. Please see below:
Document Information Panel cannot create a new, blank form.
Document Information Panel cannot open the form. To fix this problem, contact your system administrator.
Form template: http://servername/sitename/proppanel.xsn
The following DataObject either cannot be created or cannot be initialized: list_295E77CD-1C08-4DDC-A188-F86107F9BF60
Document Information Panel cannot add the following object to the DataObjects collection: list_295E77CD-1C08-4DDC-A188-F86107F9BF60
list_295E77CD-1C08-4DDC-A188-F86107F9BF60 could not be added to the DataObjects collection.
The following item already exists in the collection: list_295E77CD-1C08-4DDC-A188-F86107F9BF60
I have made the same thing that Kirikou has suggested and I was able to recreate the broken library. The problem is that Kirikou's way has failed on my Share Point staging installation:
[COMException (0x80020009): Exception occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION))]
Microsoft.SharePoint.Library.SPRequestInternalClass.RenderViewAsHtml(String bstrUrl, String bstrListName, String bstrViewID, String bstrViewXml, String bstrQualifier, ISPDataCallback pDataCallback, Boolean& pbSharedList) +0
Microsoft.SharePoint.Library.SPRequest.RenderViewAsHtml(String bstrUrl, String bstrListName, String bstrViewID, String bstrViewXml, String bstrQualifier, ISPDataCallback pDataCallback, Boolean& pbSharedList) +125
[SPException: Exception occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION))]
Microsoft.SharePoint.Library.SPRequest.RenderViewAsHtml(String bstrUrl, String bstrListName, String bstrViewID, String bstrViewXml, String bstrQualifier, ISPDataCallback pDataCallback, Boolean& pbSharedList) +166
Microsoft.SharePoint.WebPartPages.ListViewWebPart.RenderView() +4239
Microsoft.SharePoint.WebPartPages.ListViewWebPart.EnsureData(Int32 token) +658
Microsoft.SharePoint.WebPartPages.SharePointDataProvider.Execute() +254
Microsoft.SharePoint.WebPartPages.SPWebPartManager.ActivateV2ConnectionsAndSharePointDataFetch() +139
Microsoft.SharePoint.WebPartPages.SPWebPartManager.ActivateConnections() +85
System.Web.UI.WebControls.WebParts.WebPartManager.OnPageLoadComplete(Object sender, EventArgs e) +52
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Page.OnLoadComplete(EventArgs e) +2063076
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1875
I will be very appreciated if somebody knows what is the reason for this problem.
Best regards,
Yordan Nikolov -
The Document Information Panel was unable to load. The document will continue to open ?
I am using Sharepoint 2010; DIP in microsoft word all the while is working fine, not sure why suddenly it came out the following error when save word doc into sharepoint.
ERROR MESSAGE
===========
"The Document Information Panel was unable to load. The document will continue to open.
The form contains schema validation errors.
Content for element 'documentManagement' is incomplete according to the DTD/Schema. "
How to troubleshoot? Recently I added lookup column and a workflow into the library, but I did the same thing in another library which never appear to have any issue on it.The lookup column is creating the problem , you can find powerscript solution to fix this issue , please check this -
Fix through Powershell
http://blogs.msdn.com/b/tehnoonr/archive/2012/05/17/sharepoint-2010-document-information-panel-fails-to-load-when-office-documents-are-opened-in-a-library-that-contains-lookup-columns.aspx
Fix through Code
https://social.msdn.microsoft.com/Forums/office/en-US/2a4d6d10-d1d5-4d6a-a22b-62dfb6b60685/lookup-field-creation-and-document-information-panel?forum=sharepointdevelopmentlegacy
or try this -
https://social.technet.microsoft.com/Forums/office/en-US/2552fbc8-da24-4d2b-84f6-d39c4d58b137/the-document-information-panel-was-unable-to-load-the-document-will-continue-to-open-for-more?forum=sharepointgeneralprevious
1. Open this location- C:\Program
Files\Microsoft Web Designer Tools\Office12\1033\IPEDINTL.DLL
2. copy IPEDINTL.DLL
3. paste it here- C:\Program Files\Microsoft
Office\Office12\1033\IPEDINTL.DLL
4. Close all the applications that are presently
open as well as all the browsers
5. Open the sharepoint site in a new browser
and check the results !!
Thanks
Ganesh Jat [My Blog |
LinkedIn | Twitter ]
Please click 'Mark As Answer' if a post solves your problem or 'Vote As Helpful' if it was useful. -
Hi Guys,
I am creating the library using object model with custom content type. When i am opening document from custom content type, the meta data fields are not displaying in the document and throwing below error.
The document information panel was unable to load. the document will continue to open. For more information, contact your system adminsitrator.
Document Information Panel cannot open a new form.
The form contains schema validation errors.
Content for element '{http://schemas.microsoft.com/office/2006/metadata/propertiesRoot}properties' is incomplete according to the DTD/Schema.
Expecting: {http://schemas.microsoft.com/office/2006/metadata/properties}properties.
But after saving the document, then meta data is enabled.
Thanks in advance for suggested solutions.
thanks
Santhosh GHi,
For a better troubleshooting, I suggest to do as follows:
1. Please try to update the Location column's schema by following the steps below.
1) Go to Site Settings -> "Site Columns"
2) Click on "Location", after the page is opened. Don't modify any settings, click "OK" to forcibly update the field's schema.
2. Re-edit the document information panel template to see if the issue still occurs.
Please go to the Library setting > click the corresponding content type(need to enable managed of content types in Advanced settings) > click Document Information Panel settings.
3. Here are some similar links about your issue, please take some time to look at them:
http://social.msdn.microsoft.com/Forums/en-US/sharepointcustomizationlegacy/thread/243b4852-3f17-4a3a-b6d7-187d65a5f088/
http://blogs.msdn.com/b/raresm/archive/2010/03/30/document-information-panel-cannot-open-the-form.aspx
https://joranmarkx.wordpress.com/2012/02/10/sharepoint-document-information-panel-cannot-create-a-new-blank-form/
If the issue still occurs, please check if the command below can help(change the site URL and the library name in the code):
Apply-Fix -siteUrl "http://your site URL "
function Apply-Fix($siteUrl)
clear
Add-PSSnapin "Microsoft.SharePoint.Powershell" -ErrorAction SilentlyContinue # -EA 0
[Environment]::CurrentDirectory=(Get-Location -PSProvider FileSystem).ProviderPath
foreach ($spwTarget in (Get-SPSite $siteUrl).RootWeb.Webs) {
Write-Host "Checking Web: " $spwTarget.Url
$list = $spwTarget.Lists["your library name"]
$fields = $list.fields
foreach($field in $fields)
if($field.SourceId -eq '{$ListId:your library name;}')
$schemaxml = $field.SchemaXML
$schemaxmldata = [xml]$schemaxml
$schemaxmldata.Field.SetAttribute("SourceID", $list.ID)
$schemaxml = $schemaxmldata.get_InnerXml()
$field.SchemaXML = $schemaxml
$field.Update()
Write-Host "Fixed" $field.Title "field in the library"
Write-Host "Done."
More information:
SharePoint 2010: Creating a Custom Content Type using Visual Studio
http://www.codeproject.com/Articles/410880/SharePoint-Creating-a-Custom-Content-Type-usi
Thanks,
Dennis Guo
TechNet Community 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].
Dennis Guo
TechNet Community Support -
The Document Information Panel was unable to load.
Platform: SharePoint 2013, Office 2013.
Background: When you open an Office document from SharePoint users get this error:
The Document Information Panel was unable to load. The document will continue to load. For more information, contact your system administrator."
"The form cannot be opened. To fix this problem, contact the form designer. Form template:
http://<site address>/../proppanel.xsn. The XML Schema for the form template has an invalid value for the following attribute: location."
I tried running this fix: http://www.cb-net.co.uk/microsoft-articles/2063-sharepoint-2010-templates-and-document-information-panel-errors, but it kept saying that it couldn’t see the url that
I specified (I did check this carefully); think it might only apply to SharePoint 2010 – perhaps the shell syntax is different in 2013.
Can anyone help me out?Hi Alex,
According to your description, my understanding is that the error occurred when opening a document from SharePoint.
Is this document information panel customized?
I recommend to re-edit the document information panel template to see if the issue still occurs.
Please go to the Library setting > click the corresponding content type(need to enable managed of content types in Advanced settings) > click Document Information Panel settings.
If the issue still occurs, please check if the command below can help(change the site URL and the library name in the code):
Apply-Fix -siteUrl "http://your site URL "
function Apply-Fix($siteUrl)
clear
Add-PSSnapin "Microsoft.SharePoint.Powershell" -ErrorAction SilentlyContinue # -EA 0
[Environment]::CurrentDirectory=(Get-Location -PSProvider FileSystem).ProviderPath
foreach ($spwTarget in (Get-SPSite $siteUrl).RootWeb.Webs) {
Write-Host "Checking Web: " $spwTarget.Url
$list = $spwTarget.Lists["your library name"]
$fields = $list.fields
foreach($field in $fields)
if($field.SourceId -eq '{$ListId:your library name;}')
$schemaxml = $field.SchemaXML
$schemaxmldata = [xml]$schemaxml
$schemaxmldata.Field.SetAttribute("SourceID", $list.ID)
$schemaxml = $schemaxmldata.get_InnerXml()
$field.SchemaXML = $schemaxml
$field.Update()
Write-Host "Fixed" $field.Title "field in the library"
Write-Host "Done."
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
The Document Information Panel Was unable to load. Please Help
Hello all,
I just recently created my own custom Document Panel in InfoPath. I uploaded it into a custom content type. I applied this to a document library and it is the standard document panel for creating a new document within that document library. When I click
"New document" I get this error..
The Document Information Panel was unable to load. THe document will continue to open. For more information, contact your system administrator.
Details:
Document Information Panel cannot open a new form.
The form cannot be opened. To fix this problem, contact the form designer.
Form template: http://Mysite/_cts/DIPTestContentType/Myfirstform.xsn
The SOAP response indicates that an error occurred on the server:
Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.
<detail><errorstring xmlns="http://schemas.microsoft.com/sharepoint/soap/">No item exists at http://Mysite/My DIP Test.docx. It may have been deleted or renamed by another user.</errorstring><errorcode xmlns="(html
for the error code..had to delete it because my body text cannot contain images or links until my account is verified but it is a link to Microsoft support)
...It appears that it is not locating the custom Document Panel.
Could anyone point me in the right direction?
ThanksHi Alex,
According to your description, my understanding is that the error occurred when opening a document from SharePoint.
Is this document information panel customized?
I recommend to re-edit the document information panel template to see if the issue still occurs.
Please go to the Library setting > click the corresponding content type(need to enable managed of content types in Advanced settings) > click Document Information Panel settings.
If the issue still occurs, please check if the command below can help(change the site URL and the library name in the code):
Apply-Fix -siteUrl "http://your site URL "
function Apply-Fix($siteUrl)
clear
Add-PSSnapin "Microsoft.SharePoint.Powershell" -ErrorAction SilentlyContinue # -EA 0
[Environment]::CurrentDirectory=(Get-Location -PSProvider FileSystem).ProviderPath
foreach ($spwTarget in (Get-SPSite $siteUrl).RootWeb.Webs) {
Write-Host "Checking Web: " $spwTarget.Url
$list = $spwTarget.Lists["your library name"]
$fields = $list.fields
foreach($field in $fields)
if($field.SourceId -eq '{$ListId:your library name;}')
$schemaxml = $field.SchemaXML
$schemaxmldata = [xml]$schemaxml
$schemaxmldata.Field.SetAttribute("SourceID", $list.ID)
$schemaxml = $schemaxmldata.get_InnerXml()
$field.SchemaXML = $schemaxml
$field.Update()
Write-Host "Fixed" $field.Title "field in the library"
Write-Host "Done."
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
Catastrophic failure -- The Document Information Panel was unable to load
I have a content type that has a document template and a custom document information panel associstaed with it. For most users, these work without issues.
Some users are reporting, however, that they receive the following series of messages when trying to create a new document from the content type:
You are currently working offline.
Here, the user can choose either Try to Connect or Stay Offline.
If the user clicks Try to Connect, the following error message is displayed:
Clicking OK results in the document loading. The DIP loads, but two fields that pull values from a SharePoint list are blank.
Again, this happens for only a handful of users, so it seems like it's an issue with either their local PC or their connection to SharePoint.
So far, I have tried the following:
Repair Office 2010 installation
Removed all locally cached versions of both the document template (.dotx) and the custom DIP (.xsn)
Verified user permissions for the SharePoint site and the SharePoint lookup list
Based on some other posts I've seen, checked to make sure that InfoPath is installed and that IPEDINTL.DLL
is present at
C:\Program Files\Microsoft Office\Office14\1033Hi,
According to your post, my understanding is that the Document Information Panel was unable to load.
I recommend to go to the
Document Type Advanced Settings, click Edit template, go to
File, click on Inspect, click on Remove All behind
Custom XML Data.
Here is a similar blog for your reference:
Document Information Panel | Joran Markx
If your list contains lookup columns, you can refer to:
SharePoint:
Document Information Panel fails to load when office documents are opened in a library that contains lookup columns
Document Information Panel cannot open the form
Thanks,
Linda Li
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]
Linda Li
TechNet Community Support -
Getting the document ID of an uploaded document
Hello All,
Perhaps someone out there can help with this assumingly simple task of getting the document id of a file that was uploaded.
Back ground:
I have a separate system which retains records of transactions. Paperwork is often received as a part of these transactions and my intention is to store those documents into SharePoint. I want to store the document id on the record to facilitate easy retrieval
of the document. No need to search by meta tags or the like; I will have the specific document id which will point to the document.
Environment:
I currently have SharePoint 2013 online. The program that creates and maintains the records is an in-house VB.Net application running on 4.5 framework. The document repository is defined as a record center and contains several content types and meta tags
(columns) already defined. Again the application is written in VB.
Goal:
Upload a given document, get the document id, and store that id to the record.
What I have done:
I have created a function that will take a given file name and proceed to upload the document to the given SharePoint list. It then proceeds to update the meta tags with information that will help find it using alternative methods. I have also spend hours
upon hours researching every corn of every forum to find an answer. But to no avail.
The problem:
I cannot find how to get the document id of the document that I uploaded. Either it is so easy that no-one has bothered to post how it is done. Or it is not doable. I say this because I can find absolutely no reference to how to get the document id. There
is lots of references on how to get the name, the url, the meta tags, etc... But NO example on getting the document id. Very frustrating. Below is the code that I am using. Can someone suggest how I can go about getting the document id. Please treat me like
I am a noob and spell it out. Sample code would be great! I have already burnt way too much time on this seemingly simple task. I would greatly appreciate any help.
Thanks
Mike
Imports Microsoft.VisualBasic
Public Class Class1
Private mVarTitle As String
Private mVarStockCode As String
Public Property DocTitle() As String
Get
Return mVarTitle
End Get
Set(value As String)
mvartitle = value
End Set
End Property
Public Property StockCode() As String
Get
Return mVarStockCode
End Get
Set(value As String)
mVarStockCode = value
End Set
End Property
Public Function UploadFile(FileName As String, Path As String, ListName As String, ContentType As String)
'For each record, copy the file from knowledgetree to the local directory and then upload it with the metatags.
Dim mKTFile As String = String.Empty
Dim mFileName As String = String.Empty
Dim mSource As String = String.Empty
Dim mTarget As String = String.Empty
Dim mTitle As String = String.Empty
Dim mStockCode As String = String.Empty
Dim mDocId As String = String.Empty
Dim mCTid As String = String.Empty
Dim mBaseKTFolder As String = "\\<computerName>\c$\Program Files\ktdms\documents\"
mFileName = FileName
mKTFile = Path
mTitle = mVarTitle
mStockCode = mVarStockCode
mKTFile = Replace(mKTFile, "/", "\")
mSource = mBaseKTFolder & mKTFile
mTarget = ".\temp\" & mFileName
UpdateStatus("uploading " & lrows.ToString)
' Copy the file to a new folder and rename it.
My.Computer.FileSystem.CopyFile(
mSource,
mTarget,
Microsoft.VisualBasic.FileIO.UIOption.AllDialogs,
Microsoft.VisualBasic.FileIO.UICancelOption.DoNothing)
Dim mpassword As New System.Security.SecureString()
Dim mp As String = "<adminPassword>"
For k = 1 To Len(mp)
mpassword.AppendChar(Mid(mp, k, 1))
Next
Dim mycred As New Microsoft.SharePoint.Client.SharePointOnlineCredentials("<AdminUserId>", mpassword)
Dim url As String = "https://<SharePoint URL>/sites/rms"
Dim listTitle As String = ListName
Using clientContext = New ClientContext(url)
clientContext.Credentials = mycred
Using fs = New System.IO.FileStream(mTarget, System.IO.FileMode.Open)
Dim fi = New System.IO.FileInfo(mTarget)
Dim list = clientContext.Web.Lists.GetByTitle(listTitle)
clientContext.Load(list.RootFolder)
clientContext.ExecuteQuery()
Dim fileUrl = [String].Format("{0}/{1}", list.RootFolder.ServerRelativeUrl, fi.Name)
fileUrl = Replace(fileUrl, "#", " ")
Microsoft.SharePoint.Client.File.SaveBinaryDirect(clientContext, fileUrl, fs, True)
Dim web As Web = clientContext.Web
Dim newFile As Microsoft.SharePoint.Client.File = web.GetFileByServerRelativeUrl(fileUrl)
clientContext.Load(newFile)
clientContext.ExecuteQuery()
'*****this section finds the content type and sets
Dim contentTypeColl As ContentTypeCollection = clientContext.Web.ContentTypes
clientContext.Load(contentTypeColl)
clientContext.ExecuteQuery()
mCTid = String.Empty
'/ Display the content type names that are available in the website
For Each ct As ContentType In contentTypeColl
If ct.Name = ContentType Then
mCTid = ct.Id.StringValue
End If
Next
'***************End content type find.
newFile.ListItemAllFields("ContentTypeId") = mCTid
newFile.ListItemAllFields("Title") = mTitle
newFile.ListItemAllFields("StockCode") = mStockCode
'******This is the section where I have tried to get the uploaded document Id.
'******None of these statements work.
mDocId = newFile.ListItemAllFields("Document ID").ToString
mDocId = newFile.ListItemAllFields("_dlc_DocId").ToString
mDocId = newFile.ListItemAllFields("DocID").ToString
newFile.ListItemAllFields.Update()
clientContext.Load(newFile)
clientContext.ExecuteQuery()
End Using
End Using
' Delete the file .
My.Computer.FileSystem.DeleteFile(mTarget)
UploadFile = mDocId
End Function
End ClassThanks Micheal for confirming SharePoint version.
Is your VB code working with SharePoint 2010 Client Object model? It would give the idea that there is some poroblem in SharePoint 2013 CSOM.
By the way, I tried the below code in C# and I was able to print the Document ID and it worked for me.
using (ClientContext clientContext = new ClientContext("http://<<Server Name>>:2425/sites/test/"))
Web site = clientContext.Web;
// Change your document library name
List docLib = site.Lists.GetByTitle("tester");
clientContext.Load(docLib);
CamlQuery caml = new CamlQuery();
ListItemCollection items = docLib.GetItems(caml);
clientContext.Load(items);
clientContext.ExecuteQuery();
// Iterate through all items in the document library
foreach (ListItem item in items)
Console.WriteLine("File Name:: " + item.FieldValues["Title"]);
Console.WriteLine("Document Id : " + item.FieldValues["_dlc_DocId"]);
Console.ReadLine();
Output:
File Name:: Remove_URL
Document Id : TEST-1-1
File Name:: Request
Document Id : TEST-1-2
Please check that your code is working with SP2010 or not?
Thanks
Ashish
Ashish Gupta Click "Vote As Helpful"! if you think that post is helpful in responding your question click "Mark As Answer, if you think that this is your answer for your question. -
How to get the document details of a Workflow Request?
We are using listRequests method of RequestManager class for getting workflow requests. This method returns collection of request information. But how we can get details of document, which has to be approved, through that request id?
Hi,
Hope u got the solution. If not, you can get the Document Item like this.
// Its the method call of previous link nickw-ocs has provided
Vector fileNames = getTargetDocumentsFromFolder(request1);
for (int j = 0 ;j<fileNames.size() ;j++ )
AttributeRequest[] pathar = new AttributeRequest[]
WSF.newAttributeRequest(Attributes.PATH),
WSF.newAttributeRequest(Attributes.PARENT_FOLDER)
FileManager filemanager = session.getFileManager();
// Resolve the file path based on folder ,document name
// combination.
String fileName = (String)fileNames.get(j);
System.out.println("Item id : "+item.getId()+" File Name : "+fileNames.get(j));
Item targetItem = filemanager.resolveRelativePath(item.getId(), fileName,
pathar);
// here you got the Document Item. So, you can do what ever u want, like read the docuemnt, update categories etc..
if (targetItem != null)
targetdocuments.add(targetItem);
} -
Report Generator has failed, please send the following information to your
Hi I am trying to generate a report from Designer. I am getting the following error
Report Generator has failed, please send the following information to your support person
Assertion failure at crrma_bld_orapp at crrm.cpp:459
What should I do to get a report from Designer.
Thanks in advance,
Archnadanie,
please contact oracle support. this will most likely go beyond the scope of what we can do here in the forum.
thanks,
ph. -
BO XI 3.1 : Active Directory Authentication failed to get the Active Directory groups
Dear all
In our environment, there are 2 domain (domain A and B); it works well all the time. Today, all the user belong to domain A are not logi n; for user in domain B, all of them can log in but BO server response is very slowly. and there is error message popup when opening Webi report for domain B user. Below are the error message:
" Active Directory Authentication failed to get the Active Directory groups for the account with ID:XXXX; pls make sure this account is valid and belongs to an accessible domain"
Anyone has encountered similar issue?
BO version: BO XI 3.1 SP5
Authenticate: Windows AD
Thanks and RegardsPlease get in touch with your AD team and verify if there are any changes applied to the domain controller and there are no network issues.
Also since this is a multi domain, make sure you have 2 way transitive forest trust as mentioned in SAP Note : 1323391 and FQDN for Directory servers are maintained in registry as per 1199995
http://service.sap.com/sap/support/notes/1323391
http://service.sap.com/sap/support/notes/1199995
-Ambarish-
Maybe you are looking for
-
Since going up to Lion I am having problems with my HP Officejet 7500A printer. It is on the network wirrelessly. After every page I have to turn the printer off and back on again because my mac cant find the printer on the network. The windows me
-
[HELP] Windows 7 Boot Camp Boot Problem?
Hi, I have a problem when booting windows 7 after installing it using bootcamp. Here is what i did: 1) Used Boot Camp assistant to "Install Windows 7 or later version" (Last tick box option) - This also partitioned my drive. 2) While Windows 7 was in
-
Screen Saver Switching Color Profile
It seems that lately, the blurry screen saver, when activated, has been changing my screen's color profile. I cannot figure out why. What happens is if it is left running long enough, when I turn it off, my screen get's washed out and kinda "bluish."
-
Save a slide show so it plays from a dvd on regular tv
I want to know the quickest method for creating a slideshow in aperture, with music and then saving it in a format that can be burned to a dvd and played on a standard dvd player on regular tv
-
Help! My externals won't mount!
HELP! Neither of my external hard drives, both AC powered, suddenly won't mount. I've swapped all the cables and ports but no joy - it can only be the mac. Any idea?! Maybe I haven't mounted them since the last software/ security update, I can't reme