Topic
  • 1 reply
  • Latest Post - ‏2016-06-26T11:15:28Z by Queber
MSathish
MSathish
1 Post

Pinned topic File not retrived in GetCachedFile() method

‏2011-09-13T08:30:19Z |
Hi ALL

We are using the Filenet IDMobjects to retrive the document from filenet. After the successful login we were using the IDM generic object GetObject() to retrive the document, we were passing the storageId as one of the parameter to GetObject() method.
In next step, GetCachedFile() method is called to retrive the document. We need only one document so '0' is passed as the parameter to GetCachedFile().
Once the file is retrived the varible tempFilePath should have the filepath(IDM/cache location) as the value.

Issue:

Sometimes GetCachedFile() method is not returning any values and the variable tempFilePath contains null.
we are not getting any errors at GetcahchedFile() line, actually we are not getting the filepath.

since tempFilePath value is null its not satisfied in the IF condition and moving to ELSE condition.

Pasted somepart of code which we are using:

idmLibObj.Refresh(IDMObjects.idmLibraryRefresh.idmLibraryRefreshAll);
IDMObjects.IFnDocumentDual idmDocObj;
idmDocObj = (IDMObjects.Document)idmLibObj.GetObject(IDMObjects.idmObjectType.idmObjTypeDocument, storageId, Missing.Value, Missing.Value, Missing.Value);
if(page == 1)
{
string tempFilePath = idmDocObj.GetCachedFile(0, "", Missing.Value);
if (File.Exists(tempFilePath))
{

}
else
{
throw ex;
}
}

Very often we are facing this issue. Please help us with any solutions

regards
Sathish Kumar Mohan
  • Queber
    Queber
    1 Post

    Re: File not retrived in GetCachedFile() method

    ‏2016-06-26T11:15:28Z  

    If you are looking immigration lawyers in Miami you have come to the right place. Our immigration attorneys are especilizan in everything related to immigration in the city of Miami as processing temporary visas, residency petitions and citizenship and naturalization services. C. Marcela Rodriguez, Esq. Is specialized in Comparative Law at the University of Miami and currently works exclusively in the area of ​​Immigration and Naturalization Law. Marcela came to the United States on a student visa (F1) then asked for a work visa (H1B) and after a few years handled his permanent residence. For each of these legal processes Marcela sought help and advice from immigration lawyers in Miami. This experience as an immigrant in the United States was what led her to become interested in the area of ​​immigration law. Marcela is a member of the New York State Bar Association (NYSBA), the Association of Immigration Lawyers (AILA) and the American Bar Association (ABA) and has experience in Family and Employment Petitions Visas Nonimmigrant, Processes naturalization and Labor Certification (PERM) and VAWA cases. Our goal is not only to provide outstanding legal advice and representation, but also to support both petitioner and beneficiary, through the long and complex process of immigration in Miami. Perhaps the service of our legal practice more value for our customers and our community is the first consultation Free (by phone). This consultation is offered to new clients only for the purpose of discussing a case; Family Petition or Citizenship. During this first consultation your expectations should be: Our immigration attorney will study his case and would offer an honest and professional assessment of your chances of success; If you decide to hire the legal services lawyer, then the lawyer would argue his case extensively and formulaic precise objectives to achieve the desired strategy. OUR LAWYER IN MIAMI immigration: Born in Peru, Marcela C. Rodriguez studied law at the Pontificia Universidad Catolica del Peru, earning the titles of Bachelor of Law and Lawyer of the prestigious university. His specialty was in Consumer Law, working very successfully as a member of the management team Users telecommunications regulatory body in Peru, Osiptel, for more than five years. Abogados inmigración en Miami