Hi Erwin,
Which repository are you connected to and which CMIS binding are you using?
You get a "Property 'gu:letterCharacteristic' doesn't exist!" error
message if either the repository returns incorrect type definitions or
if you try to connect to a CMIS 1.1 endpoint. (DotCMIS does not support
CMIS 1.1, yet).
Can you download this document with the CMIS Workbench?
- Florian
> Hello,
>
>
>
> Using DotCMIS 0.7 version and trying to download a document using
>
> IObjectId _oid =
> session.CreateObjectId(co["cmis:objectId"].FirstValue.ToString());
>
> IDocument cmdoc = session.GetObject(_oid) as
> IDocument;
>
> IContentStream retdoc = cmdoc.GetContentStream();
>
>
>
>
>
> I get an error on the GetObject (_oid) on resolving the object to an
> IDocument I get an CMISRuntimeException:
>
>
>
> Property 'gu:letterCharacteristic' doesn't exist!
>
>
>
> at DotCMIS.Client.Impl.ObjectFactory.ConvertProperty(IObjectType
> objectType, IPropertyData pd)
>
> at DotCMIS.Client.Impl.ObjectFactory.ConvertProperties(IObjectType
> objectType, IProperties properties)
>
> at DotCMIS.Client.Impl.AbstractCmisObject.Initialize(ISession
> session, IObjectType objectType, IObjectData objectData,
> IOperationContext context)
>
> at DotCMIS.Client.Impl.Document..ctor(ISession session, IObjectType
> objectType, IObjectData objectData, IOperationContext context)
>
> at DotCMIS.Client.Impl.ObjectFactory.ConvertObject(IObjectData
> objectData, IOperationContext context)
>
> at DotCMIS.Client.Impl.Session.GetObject(String objectId,
> IOperationContext context)
>
> at DotCMIS.Client.Impl.Session.GetObject(IObjectId objectId,
> IOperationContext context)
>
> at DotCMIS.Client.Impl.Session.GetObject(IObjectId objectId)
>
>
>
>
>
> The object has extended properties (found this out on using the
> CMisWorkbech).
>
>
>
> I'm only interested in getting the actual stream and not the properties
> so I tried to do the same with
> session.GetContentStream(_oid);
>
>
>
> but then the stream is empty :
>
>
>
> [DotCMIS.Data.Impl.ContentStream]: {DotCMIS.Data.Impl.ContentStream}
>
> FileName: null
>
> Length: null
>
> MimeType: "application/pdf"
>
> Stream: {System.IO.BufferedStream}
>
>
>
> How can i resolve this quickly ?
>
> Thanks in advance,
>
> Erwin Moll
>
>