Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 79901

Getting 404 and blank page after login

$
0
0

I have run this query on my LIVE server As a managed solution which solved my issue of solution import.

======================================================================

declare @AttributeId nvarchar(50), @SolutionId nvarchar(50), @OptionSetId nvarchar(50);

declare AttributeCursor cursor for

select a.AttributeId, a.OptionSetId, e.SolutionId

from Attribute a

join Entity e on a.EntityId = e.EntityId

where (a.PhysicalName = 'community' )

and a.ismanaged = 0 and e.IsManaged = 1

and e.overwritetime =

(

--Get the solution ID of the solution which introduced these attributes

select min(overwritetime)

from Entity e2

where e2.EntityId = a.EntityId AND

(

--Try to get the solution with the lowest overwritetime that is not equal to 0

OverwriteTime <> 0

OR

--If none exist, we know overwritetime = 0 is correct

(OverwriteTime = 0 AND 0 = (SELECT max(overwritetime) from entity e3 where e2.EntityId = e3.EntityId and a.EntityId = e3.EntityId))

)

)

open AttributeCursor

fetch next from AttributeCursor

into @AttributeId, @OptionSetId, @SolutionId

while @@FETCH_STATUS = 0

BEGIN

--Updating AttributePickListValue

update MetadataSchema.AttributePickListValue

set IsManaged = 1, SolutionId = @SolutionId

where OptionSetId = @OptionSetId

--Updating LocalizedLabel

update LocalizedLabel

set IsManaged = 1, SolutionId = @SolutionId

where ObjectId = @AttributeId

--Updating DependencyNodeBase

update dependencynodebase

set BaseSolutionId = @SolutionId,

TopSolutionId = (select solutionId from Attribute

where AttributeId = @AttributeId

and OverwriteTime = 0)

where ObjectId = @AttributeId

--Updating OptionSet

update MetadataSchema.OptionSet

set IsManaged = 1, SolutionId = @SolutionId

where OptionSetId = @OptionSetId

--Updating Attribute

update MetadataSchema.Attribute

set IsManaged = 1, SolutionId = @SolutionId

where AttributeId = @AttributeId

fetch next from AttributeCursor

into @AttributeId, @OptionSetId, @SolutionId

END

CLOSE AttributeCursor;

DEALLOCATE AttributeCursor;

====================================================================

And  after that except live other organization(Managed Solution) like for my dev server(unmanaged Solution) it allow me login but showing blank page with 404 .

Thanks,

Rahul Tiwari


Viewing all articles
Browse latest Browse all 79901

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>