I'm getting errors when i have the a duplicated Document Key in my XML file. I have on_document_conflict="unique", which according to ImportEngine.xsd it should automatically rename the document. I was expecting both items to be imported, but have a sequence number on the second one. Can you tell me how I can accomplish this?
Error:
There is a duplicate key sequence '612164-1 01/31/2022' for the 'http://laserfiche.com/namespaces/importengine:folder_entry_name_key' key or unique identity constraint."}
XML Sample:
<?xml version="1.0" encoding="utf-8"?>
<LF:importengine xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:LF="http://laserfiche.com/namespaces/importengine" xsi:schemaLocation="http://laserfiche.com/namespaces/importengine/ImportEngine.xsd" version="1.0">
<LF:toc xmlns:LF="http://laserfiche.com/namespaces/importengine" on_document_conflict="unique" on_folder_conflict="merge">
<LF:folder xmlns:LF="http://laserfiche.com/namespaces/importengine" name="TDA3111.XML">
<LF:childentries xmlns:LF="http://laserfiche.com/namespaces/importengine">
<LF:document name="ABC REAL ESTATE 11111111" template="General Correspondence">
<LF:metadata>
<LF:field_values xmlns:LF="http://laserfiche.com/namespaces/importengine">
<LF:field_value name="Name">ABC REAL ESTATE </LF:field_value>
<LF:field_value name="Account">11111111 </LF:field_value>
<LF:field_value name="Clerk">User1</LF:field_value>
<LF:field_value name="Date">2022-02-03</LF:field_value>
</LF:field_values>
</LF:metadata>
<LF:pages>
<LF:page xmlns:LF="http://laserfiche.com/namespaces/importengine" ocr="false">
<LF:imagepart>
<LF:fileref ref="w:\Ocrff\data\8125\20220211\22416277.tif" />
</LF:imagepart>
</LF:page>
</LF:pages>
</LF:document>
<LF:document name="ABC REAL ESTATE 11111111" template="General Correspondence">
<LF:metadata>
<LF:field_values xmlns:LF="http://laserfiche.com/namespaces/importengine">
<LF:field_value name="Name">ABC REAL ESTATE LLC </LF:field_value>
<LF:field_value name="Account">11111111 </LF:field_value>
<LF:field_value name="Clerk">User1</LF:field_value>
<LF:field_value name="Date">2022-01-27</LF:field_value>
</LF:field_values>
</LF:metadata>
<LF:pages>
<LF:page xmlns:LF="http://laserfiche.com/namespaces/importengine" ocr="false">
<LF:imagepart>
<LF:fileref ref="w:\Ocrff\data\8125\20220211\22416280.tif" />
</LF:imagepart>
</LF:page>
<LF:page xmlns:LF="http://laserfiche.com/namespaces/importengine" ocr="false">
<LF:imagepart>
<LF:fileref ref="w:\Ocrff\data\8125\20220211\22416281.tif" />
</LF:imagepart>
</LF:page>
</LF:pages>
</LF:document>
</LF:childentries>
</LF:folder>
</LF:toc>
</LF:importengine>