You are viewing limited content. For full access, please sign in.

Question

Question

Report download missing date fields

asked on March 15, 2017

We have some users that need to export search results to a csv file. After they set all of their columns up in the Client, they select File --> Download --> Download Report and save it as a csv file. After opening the csv in Excel, none of the date fields are populated. The columns are there, just no data in them.

We tried downloading to an xlsx format but get the following error:

 

Using Laserfiche v10.2.0.839

 

Any ideas?

0 0

Answer

APPROVED ANSWER
replied on March 15, 2017 Show version history

Hi Eric,

We're aware of this issue. SCR 154408 had been filed for it. The workaround for now is to copy the ClosedXML.dll file from C:\Program Files (x86)\Common Files\Laserfiche\Client Helper and paste it into C:\Program Files\Common Files\Laserfiche\Client Helper. Then close and reopen the Windows client and download the report again.

Regards

0 0
replied on May 15, 2018

hi, i have a customer trying to achieve the same objective, and is getting the same error as this article. my customer is on the same version of the LF Client as well. we have tested the workaround solution, but it is still not working. the customer is still getting the same error message even after a reboot. any bright ideas? 

 

Error Code: 6000
Error Message: Could not load file or assembly 'DocumentFormat.OpenXml, Version=2.5.5631.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' ocTþàìäO
Unknown error. [6000]

------------ Technical Details: ------------

LF.exe (10.2.0.839):
    Call Stack: (Current)
        CMainFrame::OnExportListcontents
    Additional Details:
        Exception: Could not load file or assembly 'DocumentFormat.OpenXml, Version=2.5.5631.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' ocTþàìäO (CMainFrame::OnExportListcontents at MainFrm.cpp:5613)
    Call History:
          CLFClientAutomation::ExecuteAutomationCommand (GetWindowInfo)
           GetRepositoryProperties
          CLFClientAutomation::ExecuteAutomationCommand (GetInstanceInfo)
          CLFClientAutomation::ExecuteAutomationCommand (GetWindows)
          CLFClientAutomation::ExecuteAutomationCommand (GetWindowInfo)
           GetRepositoryProperties
         GetOptionString ([Settings]DebugClientHelper)
         GetOptionString ([Settings]ClientHelperTimeout)

0 0
replied on June 4, 2019

HI,

 

Has the issue been addressed on the later versions?

 

Thanks!

0 0
replied on June 4, 2019

This bug is fixed in the 10.4 Laserfiche windows client.

1 0

Replies

replied on August 22, 2018

Has this been fixed in 10.3? We also experience no metadata for date fields in downloaded csv reports. If it's any help, this works in Windows 7, but not Windows 10! Using Excel 2013 in both.

1 0
replied on March 15, 2017

We tried copying the dll but now get a new error. And the exported csv file still does not contain any dates from the metadata fields.

New error:

0 0
replied on March 15, 2017

Try doing the same, but with DocumentFormat.OpenXml.dll

0 0
replied on March 16, 2017

Deschutes County is having the same problem with date field metadata missing when downloading a report in the 10.2 client.  Copied the files from C:\Program Files (x86)\Common Files\Laserfiche\Client Helper to C:\Program Files\Common Files\Laserfiche\Client Helper; closed the client and reopened it but the issue remains.  Then completely shutdown the pc and restarted but still the issue remains.  Not getting the error prompts but still missing all metadata from date fields.

0 0
replied on March 16, 2017

When downloading a report using Excel you are still missing data from date fields?

0 0
replied on March 17, 2017

Yes, that was the case yesterday but since then I restarted the Laserfiche Server service and now the date fields metadata is appearing in the report.  

0 0
replied on July 5, 2017

Having this same issue with one of our clients.  Copied the file, restarted the client, also restarted Laserfiche Server service.  The problem remains that the values don't come over in a csv file, and the error given above occurs when trying to do an excel spreadsheet.

0 0
replied on July 5, 2017

Edit: I went back and also copied DocumentFormat.OpenXml.dll and it is working correctly now.

0 0
replied on December 20, 2017

Hi all,

 

I have the same error.

My soluce is to use workflow to make the rapport.

 

 

First, use the Script SDK's Tool to create your CSV and put the header.

This is my code

 

namespace WorkflowActivity.Scripting.CSVEntête
{
 using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Data.SqlClient;
    using System.Text;
    using Laserfiche.RepositoryAccess;

    /// <summary>
    /// Provides one or more methods that can be run when the workflow scripting activity is performed.
    /// </summary>
    public class Script1 : RAScriptClass102
    {
        /// <summary>
        /// This method is run when the activity is performed.
        /// </summary>
        protected override void Execute()
        {
            // set a path to write to. run the workflow on a schedule and overwrite the file
            string fpath = System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData),@"CSV\\");
                //  This path converts to C:\ProgramData\CSV\
            if(!System.IO.Directory.Exists(fpath))
                System.IO.Directory.CreateDirectory(fpath);
            fpath = System.IO.Path.Combine(fpath, "file.csv");

            // create a token or update one if you added an Assign Tokens activity
            SetTokenValue("csvpath", fpath);

            // best to use full csv unless you are absolutely certain that the values will not have any special characters like semicolon and double quotes
            System.IO.File.WriteAllText(fpath, "\"ID\";\"Nom\";\"Field1\"" + Environment.NewLine);

        }
    }
}

Then, use the search's tool to find all your files.

For each results, pick the fields you want, then add the values to your csv.

 

My second code

namespace WorkflowActivity.Scripting.CSVEnregistrements
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Data.SqlClient;
    using System.Text;
    using Laserfiche.RepositoryAccess;

    /// <summary>
    /// Provides one or more methods that can be run when the workflow scripting activity is performed.
    /// </summary>
    public class Script1 : RAScriptClass102
    {
        /// <summary>
        /// This method is run when the activity is performed.
        /// </summary>
        protected override void Execute()
        {
            // generate the line with full csv


            string s = "\"" + GetTokenValue("PourChaqueResultat_CurrentEntry_ID") + "\"";
            s += ";\"" + FixValue(GetTokenValue("PourChaqueResultat_CurrentEntry_Nom")) + "\"";
            //Here I picked the field1's value
            s += ";\"" + FixValue(GetTokenValue("Champs_Field1")) + "\"";

            System.IO.File.AppendAllText(GetTokenValue("csvpath").ToString(), s + Environment.NewLine);
        }

        private string FixValue(object o)
        {
            if(o == null)
                return "";
            else
                return o.ToString().Replace("\"", "\"\""); // make sure properly escaped
        }
    }
}

 

For information, my GetTokenValue("Champs_Field1") is from the tool  "Get values from fields"

 

 

Hope this is can help.

 

Regards

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.