Hi,
When i tried to fetch version of a document from live link i encountered an exception showing that "LLUnknownFieldException: LLValue unknown field name: FileAttributes".
private int ConcreteFetchVersion(int VolumeID, int NodeID, int VersionID, BinaryWriter outputStream, int tryNumber)
{
int status;
private LAPI_DOCUMENTS _documents;
private LLSession _llsession;
try
{
lock (_llsession)
{
lock (_documents)
{
status = _documents.FetchVersion(VolumeID, NodeID, VersionID, outputStream);
}
}
return status;
}
catch (LLUnknownFieldException llUnknownFieldException)
{
LogERError("Error in Fetch Version of item '{0}', version '{1}'",
objectId, versionId, llUnknownFieldException);
if (string.Compare(llUnknownFieldException.getMessage(),
"LLValue unknown field name: FileAttributes", true) == 0)
{
errorMessage = "File not available";
}
throw;
}
catch (Exception ex)
{
Log.WriteLine(LogLevel.Low, LogName,
"Failed retrieving Fetch Version; VolumeID : {0}, NodeID : {1}, VersionID : {2}", VolumeID, NodeID,VersionID, ex);
throw;
}
}
Any suggestions and improvement with be much appreciated. I could not identify here the root cause of the issue, and how to process it further. Thanks in advance.