Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
AddDocumentReference: The parameter is incorrect
KenMcCallum
Hi all,
I have a bit of a Strange Issue that seems to be occurring on some machines and not others - though everyone is on the same FileSite version - 8.2.
I have a Word macro that does various things, but it's last step is to add the current (open) document to a folder.
Whilst it works on some machines - others receive the error "[DocumentContents ][AddDocumentReference ]The parameter is incorrect.".
Any ideas on why the parameter would be incorrect - do i need to do something with the document object first?
I have quite extensive logging on this function and whenever i try:
CurDocuments.IsOperationAllowed(imContentsOp.imAddContentsOp).ToString)
The result is always true. The erronous machines have a their regional settings set to French (Paris), however that's the only difference. If anyone has any ideas that'd be much appreciated!
Ken
A cut down version of the code is as follows:
Private Function PerformAddToFolder(ByRef BBImanDoc As IManDocument, ByRef BBImanFolder As IManFolder) As Boolean
If (BBImanDoc Is Nothing) Then Return False
If (BBImanFolder Is Nothing) Then Return False
Dim CurDocuments As IManDocuments
Dim rtnBool As Boolean = False
Try
CurDocuments = BBImanFolder.Contents
CurDocuments.AddDocumentReference(BBImanDoc)
rtnBool = True
Catch ex As Exception
'Handle Error
End Try
Return rtnBool
End Function
Find more posts tagged with
Comments
jny
That's strange. Is there a dms log, too? Can this error be repeated for the same document?
KenMcCallum
Hi Jny, yeah, it's very strange indeed. I have checked the log of the Caching Server concerned in addition to all central worksite servers and unfortunately nothing is output in the log.
So far all new documents experience this error and it can be repeated for the same document.
What the tool does is take document A, append the first page of it to document B, check document B in as a new version and also add it to Folder C. Everything works fine, it's just the add to folder bit that doesn't work; the part I thought would be the least amount of trouble!
Any help would be greatly appreciated!
jny
You mentioned that this happens to all new documents. Would you show me your code to creating these new dox?