Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Error copying a document from a database to other
ManoloMadrid
HI
I'm tryng to copy a document from a database to other and for that I'm trying to copy the attributes from the original document to a new blanck document. But when I try to copy the Type I get the error:
[NRTDocument][SetAttributeValueByID]The object is from a diffetrent database
I've tryed using the getAttributebyID method and directly copying the Type property and I get the same result.
There is a way of doing this ????
Thanks in advance
Find more posts tagged with
Comments
Migrateduser
Are you setting the value with the string Alias of the Type, or are you trying to set it to the type object (which won't work if it is in a different database)?
Also, make sure the Type string value (and all other validated values) exist and are enabled (where appropriate) in both databases.
dopey
For the object-based fields, you may want to do a search, although then you'd have to write custom code for each field (type, class, etc.). Using the string alias and SetAttributeByID would be a good idea, as pointed out.
ManoloMadrid
Thanks for your answer, I'm afraid that I'll have to write some code but I've tested and it works.