Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
get(name) not implemented for this datatype
Ajay_Verma
Hi,I am posting a question I am following LAPI Calls1. CreateObjectEx <- this creats the document in livelink2. CreateVersion <- Add a file related to the Node created by CreateObjecEX. I am getting the following Error when creating the version ;get(name) not implemented for this datatype Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: com.opentext.api.LLIllegalOperationException: get(name) not implemented for this datatypeSource Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [LLIllegalOperationException: get(name) not implemented for this datatype] com.opentext.api.LLInstance.get(String name) +46 com.opentext.api.LLValue.toValue(String name) +9 com.opentext.api.LLConnect.unMarshall(String argName) +26 com.opentext.api.LAPI_DOCUMENTS.CreateVersion(Int32 VolumeID, Int32 NodeID, String FilePath, LLValue versionInfo) +112 AccessLAPI.AccessLL.Insert(Int32 pintNodeId, Dictionary`2 pcolMetadata, String pstrFile) in \\edm-goa-file-5\user$\AJAY.VERMA\Visual Studio 2005\Projects\AccessLAPI\csAccessLL.cs:1440 BridgeProfile.btnSaveLivelink_Click(Object sender, EventArgs e) +1672 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102 I know Other users must have come accross the same problem. I am attaching the file, which contains the code and Log file with the error. Please help, Ajay Verma
Find more posts tagged with
Comments
Carsten_Kulms
I think the specified file is not existent or not readable by the LAPI application (e.g. insufficient permissions).Then it may happen that the CreateVersion function is called without the required "FileAttributes" parameter (which is constructed internally by the LAPI client library) and then you will see exactly that error.[Btw: I guessed that you use a LES version <= 9.5, correct? However, nearly the same error will occurr also with later versions.]
Frewini_Atakiti
Hi,You could get the error when you are trying to add a document that is not present in the local file system or from wherever you are trying to add.I can explain a bit more below.I guess you have a piece of code as below.doc.CreateVersion(volumeID, objectID, "c:\\temp\\tlistd.txt", versionInfo) != 0)In the above code if the name of the file that you are trying to upload, if not present in the specified directory. In this case c:\temp\tlistd.txt has to be present in that location.And do not forget to put the "\\" there.Hope this helps.Please let me know if this would solve your issue.Thanks,Sunu Easow
Kyle_Swidrovich
Hello Ajay,As others have mentioned, that message will be thrown if the referenced file cannot be opened.The reason why the odd error message is received is due to a bug that allows the incomplete request to make its way to the Livelink server (which the server then mishandles).For future reference, I have entered a bug for this issue with the reference number #LPO-557.Thank you for bringing this to our attention.