When try to import solution get the next message:
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: solution With Id = e25cd1e4-54ff-4bdc-890b-31b1d8c3c720 Does Not ExistDetail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
<ErrorCode>-2147220969</ErrorCode>
<ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>solution With Id = e25cd1e4-54ff-4bdc-890b-31b1d8c3c720 Does Not Exist</Message>
<Timestamp>2012-08-09T10:45:33.7307214Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>
To solve this issue please open SQL Management and run the command
DECLARE @SolID NVARCHAR(MAX)
SET @SolID = 'e25cd1e4-54ff-4bdc-890b-31b1d8c3c720'
SELECT
t.name AS table_name,
SCHEMA_NAME(schema_id) AS schema_name,
c.name AS column_name,
'SELECT * FROM ' + t.name + ' WHERE ' + c.name + ' = ''' + @SolID + '''' as Query
FROM sys.tables AS t
INNER JOIN sys.columns c ON t.OBJECT_ID = c.OBJECT_ID
WHERE c.name LIKE '%SolutionId%'
ORDER BY schema_name, table_name;
after find the record remove the record from database and try to import the solution again.
enjoy,
Rami Heleg
No comments:
Post a Comment