stsadm –o export command and receiving a "Failed to compare two elements in the array."
select w.fullurl,* from features f
inner join sites s
on s.id=f.siteid
inner join webs w
on w.id=f.webid
where w.fullurl like 'sites/XX/YY%'
Compare the results to a master guids list I found at
http://thorprojects.com/blog/archive/2007/05/16/652.aspx
This error is usually the result of a problem with Enterprise Features or custom features not matching up with features installed with the standard version of the product. The SQL statement above will list all the features in the site collection. Ultimately the problem is usually due to the fact that the Enterprise PID had been used on the source Server and the Standard PID had been used on the destination Server.