We are encountering an error when upgraded to 2020R2, specifically from 2020R1 (Build 20.109.0032) to 2020R2 (Build 20.204.0032).
Upon successful login, the user is taken to the Default page (ScreenID = 00000000) and receives the error "Object reference not set to an instance of an object." popup message. When dismissed, the page renders its Welcome information, but the left-hand Workspaces and menu items (Finance, Sales Orders, Receivables, etc.) have disappeared, instead showing a spinning icon. Quick Search at page top offers no menu items when searched.
The user can manually enter any page (eg. ScreenID=SO301000) directly into the Address URL and reach the page content, but again initially gets the error and has no workspace menus.
There is nothing in the Trace to give clues. However, the browser's Web Console give details as shown below:
XHRGEThttp://localhost/AcumaticaERP/(W(1))/frameset/sitemap
[HTTP/1.1 500 Internal Server Error 912ms]
Message "An error has occurred."
ExceptionMessage "Object reference not set to an instance of an object."
ExceptionType "System.NullReferenceException"
StackTrace " at PX.Web.UI.Frameset.Services.AccessProvider.ApplyRestrictionsForCurrentUser(Screen screen)\r\n at PX.Web.UI.Frameset.Services.SiteMapRepository.<>c__DisplayClass21_0.<GetSiteMapImpl>b__10(Screen s)\r\n at AutoMapper.Mapper.AutoMapper.IMapper.Map(Object source, Type sourceType, Type destinationType, Action`1 opts)\r\n at AutoMapper.Mapper.AutoMapper.IMapper.Map[TDestination](Object source, Action`1 opts)\r\n at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()\r\n at System.Li…HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__3.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__15.MoveNext()"
If I place a breakpoint in VS2019 at the beginning of Page_Init() of PageTitle.ascx.cs, the error occurs first, then the breakpoint is reached:
protected void Page_Init(object sender, EventArgs e)
{
var lifetimeScope = this.Context.GetLifetimeScope(); <-- set a breakpoint here
if (lifetimeScope != null)
{
screenRepository = lifetimeScope.Resolve<IScreenRepository>();
}
else
....
A similar upgrade of a demo website and database with Sales Demo data works just fine.
We conducted a SQL Schema Compare of the two databases and opted to Update the differences, which were all examples of moving away from the NoteID column allowing NULL in many tables.
The schemas are now the same, the website upgrades are the same, so now I suspect it is the data... somewhere... causing a lack of workspace and menus.
The call to PX.Web.UI.Frameset.Services.AccessProvider.ApplyRestrictionsForCurrentUser() seems to be the issue but is data-related in my case. It's as if AccessProvider of screenRepository isn't available yet in a different control upstream from use of PageTitle.ascx?
Where can I look next to try to resolve?
Thank you.
Related
SELECT [r_MUIUserScreenRelevance].[UserID] AS [MUIUserScreenRelevance_UserID], [r_MUIUserScreenRelevance].[NodeID] AS [MUIUserScreenRelevance_NodeID], [r_MUIUserScreenRelevance].[Relevance] AS [MUIUserScreenRelevance_Relevance]
FROM [MUIUserScreenRelevance] [r_MUIUserScreenRelevance]
WHERE [r_MUIUserScreenRelevance].[UserID] = CONVERT(UNIQUEIDENTIFIER, 'b5344897-037e-4d58-b5c3-1bdfd0f47bf9') AND ( [r_MUIUserScreenRelevance].[CompanyID] = 2)
ORDER BY [r_MUIUserScreenRelevance].[UserID], [r_MUIUserScreenRelevance].[NodeID] OPTION(OPTIMIZE FOR UNKNOWN)
at Serilog.Core.Logger.Write(LogEventLevel level, Exception exception, String messageTemplate, Object[] propertyValues)
at Serilog.Core.Logger.Information[T](String messageTemplate, T propertyValue)
An error has occurred during your processing. You need to review the Trace log and most likely will find the error on one of the trace items. Alternatively, switch on the Request Profiler and reprocess what you tried on the above. What changes were made that caused this - I find retracing your steps on each change made backwards will point you in the right direction.
SharePoint 2013 search crawls getting stuck for one content source with index count around 300K. When I kick off crawls the success count grows pretty steadily and performance is not an issue. The small content source with 5-7K index would finish fine. This is started recently. The problem I suspect is, search process never commits the transaction. Here is the ULS error.
mssearch.exe (0x0FA8) 0x39D0 SharePoint Server Search Crawler:Gatherer Plugin ac6s7 High ManagedSqlSession caught a SqlException executing the following command: 'proc_MSS_CommitTransactions'. Connection string was: 'Data Source=XXXXX;Initial Catalog=SSA_CrawlStoreDB;Integrated Security=True;Enlist=False;Pooling=True;Min Pool Size=0;Max Pool Size=100;Connect Timeout=15;Application Name=SharePoint[OWSTIMER][1][SSA_CrawlStoreDB]' Original exception message: 'Arithmetic overflow error for data type smallint, value = 32768. Duplicate key was ignored.' Stack trace ' at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParser...
Detailed error posted on my blog
http://nitrohn.blogspot.com/2016/10/sharepoint-2013-search-crawl.html
Any ideas how to fix?
I've created a Site Workflow of SharePoint 2013 Workflow type in O365 subsite of a site collection.
I use Call HTTP web service in workflow: screenshot of my workflow
http://www.image-share.com/ijpg-2992-17.html
To parse JSON results I need to use Variable:Index (Integer).
I've tried d/results/([%Variable: Index%])/Title as it is recommended in numerous blog posts (example).
But Workflow gets Suspened with the following error:
RequestorId: 8c3e172b-5da7-75d9-0000-000000000000. Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.FormatException: The DynamicValue property 'd/results/([%Variable: Index%])/Title' was incorrectly formatted. at Microsoft.Activities.Dynamic.DynamicValueBuilder.PathSegmentFactory.Parse(String segmentText, String fullPathName) at Microsoft.Activities.Dynamic.DynamicValueBuilder.PathSegmentFactory.Create(String segment, PathSegment next, String path) at Microsoft.Activities.Dynamic.DynamicValueBuilder.PathSegmentFactory.Create(String path) at Microsoft.Activities.GetDynamicValueProperty1.Execute(CodeActivityContext context) at System.Activities.CodeActivity1.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation) Exception from activity GetDynamicValueProperty Stage 2 Sequence Flowchart Sequence Email30Days.WorkflowXaml_3f207548_d246_4058_82b3_34acf1933b6f
If I use the same but with number (not variable) d/results/(0)/Title it works.
Please, let me know What I'm missing.
It seems there was a glitch in SharePoint Designer. When I opened SPD the next time, it started to resolve [%Variable: Index%] just fine.
I've also tried to add slash in the end of string "d/results/(<index>)/" (like in the following article) before I noticed the first time Index began to resolve, however I never added slash at the ending furthemore.
Just FYI to whoever has similar issue, I noticed that in SPD - likely due to some quirk in copying text into string builder window from the web - if I type text manually or paste it, it doesn't seem to recognize it (same error occurs during workflow execution). But if you type into the window:
d/results(
then click Add or Change Lookups button and reference your variable, then finish typing the text:
)/YourPropertyName
then it all works well.
I was trying to display some sort of booking system in orchard and I found a set of tutorials that allow you to set queries to display on different dates...
So ive went through all the 18 tutorials for orchard CMS 1.6 displaying a calendar on screen
http://www.youtube.com/watch?v=Iv7rA-viyTw
and my calendar doesnt appear on screen? ive tried changing the widget of it (which selects dates on the calendar) and nothing appears, im logged in as authentic user, (as it is set to show-when creating the widget)
The only thing I can think of (which shouldnt be a problem but worth mentioning - in tutorial 13 where you edit template. when I tried to select a query none where appearing from the drop down list, I created a query as in the tutorials but still none appeared on the content page.) - this threw an error when trying to create a 'calendar widget' so I commented the code causing this in calendarWidgetDriver.cshtml.
//if (part.QueryId <= 0)
//{
// updater.AddModelError("QueryId", T("You must select a query."));
//}
But this only matters when you want to display a query on a date. surely it shouldnt matter for displaying the entire calendar. I realise this is a bit of a jump for a large Q. but im hoping on the off chance someone has encountered the same problem.
If so I would be glad to know.
thank you all
I have tried contacting the owner but as of yet no word so thought I would try here....
EDIT 1...
Logs
2013-08-21 10:06:37,658 [32] Orchard.Environment.Extensions.ExtensionManager - No suitable loader found for extension "FoodPodBootstrapTheme"
2013-08-21 10:07:06,130 [32] Orchard.ContentManagement.Drivers.Coordinators.ContentPartDriverCoordinator - ArgumentException thrown from IContentPartDriver by UMACS.FoodPod.Drivers.CalendarWidgetDriver
System.ArgumentException: queryId
at Orchard.Projections.Services.ProjectionManager.GetContentItems(Int32 queryId, Int32 skip, Int32 count)
at UMACS.FoodPod.Services.CalendarService.GetCalendarEvents(CalendarWidgetPart part)
at UMACS.FoodPod.Drivers.CalendarWidgetDriver.<>c__DisplayClass3.<Display>b__2()
at Orchard.ContentManagement.Drivers.ContentPartDriver`1.<>c__DisplayClassf.<ContentShape>b__e(BuildShapeContext ctx) in C:\WORK\Orchard1.6.1\Orchard.Source\src\Orchard\ContentManagement\Drivers\ContentPartDriver.cs:line 130
at Orchard.ContentManagement.Drivers.ContentPartDriver`1.<>c__DisplayClass15.<ContentShapeImplementation>b__14(BuildShapeContext ctx) in C:\WORK\ Orchard1.6.1\Orchard.Source\src\Orchard\ContentManagement\Drivers\ContentPartDriver.cs:line 139
at Orchard.ContentManagement.Drivers.ContentShapeResult.ApplyImplementation(BuildShapeContext context, String displayType) in C:\WORK\ Orchard1.6.1\Orchard.Source\src\Orchard\ContentManagement\Drivers\ContentShapeResult.cs:line 39
at Orchard.ContentManagement.Drivers.ContentShapeResult.Apply(BuildDisplayContext context) in C:\WORK\ Orchard1.6.1\Orchard.Source\src\Orchard\ContentManagement\Drivers\ContentShapeResult.cs:line 21
at Orchard.ContentManagement.Drivers.Coordinators.ContentPartDriverCoordinator.<>c__DisplayClassa.<BuildDisplay>b__9(IContentPartDriver driver) in C:\WORK \Orchard1.6.1\Orchard.Source\src\Orchard\ContentManagement\Drivers\Coordinators\ContentPartDriverCoordinator.cs:line 49
at Orchard.InvokeExtensions.Invoke[TEvents](IEnumerable`1 events, Action`1 dispatch, ILogger logger) in C:\WORK\Orchard1.6.1\Orchard.Source\src\Orchard\InvokeExtensions.cs:line 17
EDIT 2
following the advice Ron gives at 7.40 of this video:
http://www.youtube.com/watch?v=jOSxGj2gOpY using 'Sources' from F12, he is able to view calendarWidget from inside localhost, i do not have this view able for me. What could i be missing?
The loader error means that Orchard cannot find the FoodPodBootstrapTheme.dll.
When i read ...
No suitable loader found for extension "FoodPodBootstrapTheme"
... i assume it is a project located in ...
src\Orchard.Web\Themes\FoodPodBootstrapTheme
You have most likely added this project to your src\Orchard.sln file in Visual Studio manually and therefore the project is not configured for building correctly.
I had the same error multiple times and this is what helped me to get rid of the error:
Fix theme build dependencies
Open src\Orchard.sln in Visual Studio
Right click on the FoodPodBootstrapTheme node and select Build Dependencies > Project Dependencies
now make sure Depends on contains a tick in checkbox Themes (Themes\Themes)
Fix Orchard.Web build dependencies
Open src\Orchard.sln in Visual Studio
Right click on the Orchard.Web node and select Build Dependencies > Project Dependencies
now make sure Depends on contains a tick in checkbox FoodPodBootstrapTheme
I tried to use the SharePoint Guidance library and i got this error.
Someone has a answer or propositions?
Thanks
Error is :
One or more error occurred while writing messages into the log.\r\nThe error while writing to the EventLog was:An exception has occurred.
ExceptionType: 'LoggingException'
ExceptionMessage: 'The Category 'Custom Error/DUET' was not found in the diagnostic categories collections.'
StackTrace: ' at Microsoft.Practices.SharePoint.Common.Logging.DiagnosticsService.GetCategory(String categoryName)
at Microsoft.Practices.SharePoint.Common.Logging.DiagnosticsService.LogTrace(String message, Int32 eventId, TraceSeverity severity, String categoryName)
at Microsoft.Practices.SharePoint.Common.Logging.TraceLogger.Trace(String message, Int32 eventId, TraceSeverity severity, String category)
at Microsoft.Practices.SharePoint.Common.Logging.SharePointLogger.WriteToDeveloperTrace(String message, Int32 eventId, TraceSeverity severity, String category)'
Source: 'Microsoft.Practices.SharePoint.Common'
TargetSite: 'Microsoft.SharePoint.Administration.SPDiagnosticsCategory GetCategory(System.String)'
\r\n Orginal logged message was: An error occurred while writing tot the Trace Log, trace message:kaka Error in Constant recovery
ExceptionType: 'Exception'
ExceptionMessage: 'testing sohail'
StackTrace: ''
Source: ''
TargetSite: ''
What the others have said is correct. You will want to create and register your category when you deploy your code onto your sharepoint environment. I created my logging by doing the following:
I created a farm solution that would deploy all the logging logic on the farm
On the feature activation code, I checked to see if my logging category existed. If not, I create it
When I remove my solution, I deleted my custom category (this is optional)
Here's a link that describes how to created and register your category:
http://msmvps.com/blogs/sundar_narasiman/archive/2012/06/20/how-to-implement-logging-in-sharepoint-2010-part-2.aspx