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

Question

Question

Document is not saved with template when IA is reading from XML file

asked on December 27, 2016

Hi all,

I am using ImportAgent utility to read from XML file. Here is the extract for the XML file.

<LF:document name="Application Form" template="Metadata Sheet">
<LF:metadata>
          <LF:field_values>
            <LF:field_value name="Customer Name">Test</LF:field_value>
            <LF:field_value name="Customer ID">123456</LF:field_value>
            <LF:field_value name="Test_CreationDate">%(FileCreated)</LF:field_value>
          </LF:field_values>
</LF:metadata>
        <LF:electronic_document content_type="application/msword" extension="doc" >
          <LF:fileref ref="C:\Users\Administrator\Documents\New Documents\ Company Application Form.doc" />
        </LF:electronic_document>
</LF:document>

In Import Agent profile, I have placed the monitored folder in the path (C:\Users\Administrator\Documents\New Documents) and I did not configure the Fields section. But, when the document is saved to the repository, no template has been assigned to it. Thanks to advise why the template has not been assigned to the electronic document.

0 0

Replies

replied on December 27, 2016

Hi Sheila,

Could you please check Windows Event Log to check if there is any entry to indicate what occurs when importing the XML? And is there any other conflict entries in the repository, for example, the same name as the imported electronic documen?

0 0
replied on December 27, 2016

Hi Sheila,

I couldn't reproduce the issue where the template and none of the fields got assigned to the imported document. However, for date fields, you need to specify the date value in the XML using the ISO 8601 format like 2017-12-27.

Using your example, I was able to observe an issue where the Test_CreationDate field remained blank after import. I don't believe tokens resolves to that ISO format so that's one issue.

As for your specific issue, please check the application event log on both the Import Agent and Laserfiche Server computers as Huazhen suggested to see why the template and other fields didn't get assigned.

Regards

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

Sign in to reply to this post.