cancel
Showing results for 
Search instead for 
Did you mean: 

Error on site acp creation(export)

liuk88
Champ in-the-making
Champ in-the-making
Hi all, i tried to do an acp of a site(i did before for other sites and worked) but i had a problem.
For this site, when i try to create the acp(export it), i get this message:
"A system error happened during the operation: A namespace prefix is not registered for uri urn:schemas-microsoft-com".
I searched on internet but i didn't find useful and clear posts.
Any suggestions?
Thanks
3 REPLIES 3

yogeshpj
Star Contributor
Star Contributor
Try to export only children under the site folder rather then exporting it including site folder.
The error which you have mentioned does not seem to be related to export functionality.

mrogers
Star Contributor
Star Contributor
The problem is that the export tool is dependent upon prefixes (Its one of the reasons it needs to be replaced.)    And it can't export nodes with a namespace that does not exist.

Somehow your data has "schemas-microsoft-com"  which is unknown.   I've seen that before,  can't now remember what was creating that junk.      

stefan2
Champ on-the-rise
Champ on-the-rise
A solution for this problem, which I have also encountered, is to remove the properties from the conflicting node using the javascript console:


var query = "@\\{urn\\:schemas-microsoft-com\\:\\}Win32LastAccessTime:\"*\"";
logger.log(query);
try{ 
   var docs = search.luceneSearch(query);
   for (i = 0 ; i < docs.length ; i++){
       var node = docs;
      logger.log(node.name);
      try{
           logger.log(node.properties);
           if (node.properties["{urn:schemas-microsoft-com:}Win32LastAccessTime"]){
              logger.log("removing…");
              delete node.properties["{urn:schemas-microsoft-com:}Win32LastAccessTime"];
              delete node.properties["{urn:schemas-microsoft-com:}Win32CreationTime"];
              delete node.properties["{urn:schemas-microsoft-com:}Win32LastModifiedTime"];
              delete node.properties["{urn:schemas-microsoft-com:}Win32FileAttributes"];
              node.save();
            logger.log(node.properties);
         }   

      } catch (e) { logger.log(e);}
   }
}catch (e) {
logger.log(e);

}