Change the Universal Id of a document

Hello,

I am currently using the DXL Export and Import. ( C & C++ APis).

I could the transfer all the documents of a database to another using the DXL. The UNID of the original Note is stored in the .xml file for Import, but it is not stored as UNID of the new document. i know that the unids can be same for the DB Replicas.

Can we not change the UNID of a document using C or C++ API. I have a part of code here:

UNID* pnewUNID = NULL;

LNDocument* pDoc= new LNDocument();

pDoc->Open();

pnewUNID= pDoc->GetUniversalID();

pnewUNID->File.Innards[0]=poldUNID->File.Innards[0];

pnewUNID->File.Innards[1]=poldUNID->File.Innards[1];

pnewUNID->Note.Innards[0]=poldUNID->Note.Innards[0];

pnewUNID->Note.Innards[1]=poldUNID->Note.Innards[1];

Could any one let me know if there is a way to modify / update the Document with another UNID. It would be nice any partial code is given.

Thanks!.

Sreenivas.

Subject: Change the Universal Id of a document.

You asked the same question in December 2003, and several people replied. The answer is no different. You cannot change a document’s universal ID after it is saved in the database. If you create a new document, you can set its universal ID before you save it in the database. Then you can use your DXL to update the document.

Subject: RE: Change the Universal Id of a document.

Hi Rod,

Sorry for this repetition.( i wanted to include some code). Ya i got it your point. If any thing different comes up, i shall post them.

Sreenivas.