web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Site access error: Obj...
Power Pages
Unanswered

Site access error: Object reference not set to an instance of an object.

(0) ShareShare
ReportReport
Posted on by 23
Hi All
 
I've just exported a Power Pages site from source environment to target environment using solutions.
The site is in enhanced data model.
As I need to make modifications in the target environment, I imported as an "unmanaged solution" to the target environment.

I've followed exactly the same steps as mentioned in below document: 
https://learn.microsoft.com/en-us/power-pages/configure/power-pages-solutions

However, after I reactivated the website, I failed to access it and the Error message: "Object reference not set to an instance of an object." is shown.

P.S. I have a cloud flow for the site in source environment, but when I checked the reactivated site in target environment, the "cloud flow for this site" is empty.
So I created the same cloud flow manually in target environment.
(I've already added the mentioned cloud flow to the solution when exporting, the same cloud flow is found in target environment after importing, but it is not linked to the site and I cannot click on "Add an existing flow")
I'm not sure if this relates to the access failure to the site in target environment.

I've retried the export / import of solutions for several times but still didn't work.
Could anyone tell me how to deal with this problem?


This is the "cloud flow for this site" in source environment, but I cannot find when checking the site in target environment:



+++Details are as below:
Exception Message
Object reference not set to an instance of an object.

Stack Trace
   at Adxstudio.Xrm.Services.CrmOnlineOrganizationService.ToOrganizationService(CrmConnection connection, Exception error, Boolean resetRootServiceClient) in C:\__w\1\s\Framework\Adxstudio.Xrm\Services\CrmOnlineOrganizationService.cs:line 128
   at Microsoft.Xrm.Client.Services.OrganizationService.InnerOrganizationService.UsingService[TResult](Func`2 action) in C:\__w\1\s\Framework\Microsoft.Xrm.Client\Services\OrganizationService.cs:line 432
   at Adxstudio.Xrm.Services.CachedOrganizationService.InnerExecute(OrganizationRequest request) in C:\__w\1\s\Framework\Adxstudio.Xrm\Services\CachedOrganizationService.cs:line 424
   at Adxstudio.Xrm.Services.OrganizationServiceCache.InnerExecute[TRequest,TResponse,TResult](TRequest query, Func`2 execute, Func`2 selector) in C:\__w\1\s\Framework\Adxstudio.Xrm\Services\OrganizationServiceCache.cs:line 653
   at Microsoft.Xrm.Client.Caching.ObjectCacheProvider.<>c__DisplayClass5_0`1.<Get>b__1(String key) in C:\__w\1\s\Framework\Microsoft.Xrm.Client\Caching\ObjectCacheProvider.cs:line 110
   at Microsoft.Xrm.Client.Threading.LockProvider.<>c__DisplayClass6_0`1.<Get>b__0() in C:\__w\1\s\Framework\Microsoft.Xrm.Client\Threading\LockProvider.cs:line 54
   at Adxstudio.Xrm.Threading.MonitorLockProvider.Lock(String key, Int32 millisecondsTimeout, Action action) in C:\__w\1\s\Framework\Adxstudio.Xrm\Threading\MonitorLockProvider.cs:line 23
   at Microsoft.Xrm.Client.Threading.LockProvider.Get[T](String key, Int32 millisecondsTimeout, Func`2 loadFromCache, Func`2 loadFromService) in C:\__w\1\s\Framework\Microsoft.Xrm.Client\Threading\LockProvider.cs:line 48
   at Adxstudio.Xrm.Services.OrganizationServiceCache.GetCachedResult[TRequest,TResponse,TResult](TRequest query, Func`2 execute, Func`2 selector, String cacheKey, Boolean isAuditableQuery, Int32& cacheMissedMetricValue, Boolean applyVirtualEntityFilter) in C:\__w\1\s\Framework\Adxstudio.Xrm\Services\OrganizationServiceCache.cs:line 0
   at Adxstudio.Xrm.Services.OrganizationServiceCache.LookupAndInsert[TRequest,TResponse,TResult](TRequest query, Func`2 execute, Func`2 selector, String selectorCacheKey, Boolean allowStaleData, Boolean isAuditableQuery) in C:\__w\1\s\Framework\Adxstudio.Xrm\Services\OrganizationServiceCache.cs:line 383
   at Adxstudio.Xrm.Services.OrganizationServiceCache.InnerExecute[TRequest,TResponse,TResult](TRequest request, Func`2 execute, Func`2 selector, String selectorCacheKey) in C:\__w\1\s\Framework\Adxstudio.Xrm\Services\OrganizationServiceCache.cs:line 323
   at Adxstudio.Xrm.Services.ContentMapOrganizationServiceCache.Execute[T](OrganizationRequest request, Func`2 execute, Func`2 selector, String selectorCacheKey) in C:\__w\1\s\Framework\Adxstudio.Xrm\Services\ContentMapOrganizationServiceCache.cs:line 36
   at Adxstudio.Xrm.Services.PortalBusOrganizationServiceCache.Execute[T](OrganizationRequest request, Func`2 execute, Func`2 selector, String selectorCacheKey) in C:\__w\1\s\Framework\Adxstudio.Xrm\Services\PortalBusOrganizationServiceCache.cs:line 44
   at Adxstudio.Xrm.Services.CachedOrganizationService.Execute[T](OrganizationRequest request, Func`2 selector, String selectorCacheKey) in C:\__w\1\s\Framework\Adxstudio.Xrm\Services\CachedOrganizationService.cs:line 367
   at Adxstudio.Xrm.Services.CachedOrganizationService.Execute[T](OrganizationRequest request) in C:\__w\1\s\Framework\Adxstudio.Xrm\Services\CachedOrganizationService.cs:line 358
   at Adxstudio.Xrm.Services.CrmOnlineOrganizationService.<>c__DisplayClass26_0.<Execute>b__0() in C:\__w\1\s\Framework\Adxstudio.Xrm\Services\CrmOnlineOrganizationService.cs:line 286
   at Microsoft.Practices.TransientFaultHandling.RetryPolicy.ExecuteAction[TResult](Func`1 func)
   at Adxstudio.Xrm.Services.OrganizationServiceExtensions.FetchPage(IOrganizationService service, Fetch query, RequestFlag flag, Nullable`1 expiration, String memberName, String sourceFilePath, Int32 sourceLineNumber) in C:\__w\1\s\Framework\Adxstudio.Xrm\Services\OrganizationServiceExtensions.cs:line 548
   at Adxstudio.Xrm.Services.OrganizationServiceExtensions.<>c__DisplayClass10_0.<RetrieveMultiple>b__0(Fetch query) in C:\__w\1\s\Framework\Adxstudio.Xrm\Services\OrganizationServiceExtensions.cs:line 363
   at Adxstudio.Xrm.Services.OrganizationServiceExtensions.<FetchPages>d__14.MoveNext() in C:\__w\1\s\Framework\Adxstudio.Xrm\Services\OrganizationServiceExtensions.cs:line 501
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Adxstudio.Xrm.Services.OrganizationServiceExtensions.RetrieveMultiple(IOrganizationService service, Fetch fetch, RequestFlag flag, Nullable`1 expiration, String memberName, String sourceFilePath, Int32 sourceLineNumber) in C:\__w\1\s\Framework\Adxstudio.Xrm\Services\OrganizationServiceExtensions.cs:line 0
   at Adxstudio.Xrm.PortalSolutions.PortalSolutions.FetchSolutions(IOrganizationService organizationService) in C:\__w\1\s\Framework\Adxstudio.Xrm\PortalSolutions\PortalSolutions.cs:line 112
   at Adxstudio.Xrm.PortalSolutions.PortalSolutions..ctor(CrmDbContext context) in C:\__w\1\s\Framework\Adxstudio.Xrm\PortalSolutions\PortalSolutions.cs:line 47
   at Adxstudio.Xrm.AspNet.Cms.Extensions.ConfigurePortalSolutionsDetails(IAppBuilder app, CrmDbContext context) in C:\__w\1\s\Framework\Adxstudio.Xrm\AspNet\Cms\Extensions.cs:line 864
   at Site.Startup.ConfigurePortal(IAppBuilder app) in C:\__w\1\s\Samples\MasterPortal\App_Start\Startup.cs:line 113
   at Site.Startup.Configuration(IAppBuilder app) in C:\__w\1\s\Samples\MasterPortal\App_Start\Startup.cs:line 39

Categories:
I have the same question (0)
  • Verified answer
    beeeeky223 Profile Picture
    23 on at
    This problem is solved after I changed the "Administration mode" of target environment from "Enable" to "Disable".
    The "Cloud Flow for this site" also comes out after the configuration is changed.
    I can access the site successfully.

    Hope this solution will become a reference for anyone having the similar problem.
    Below document is referred:
    https://learn.microsoft.com/en-us/power-platform/admin/admin-mode#set-administration-mode

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard