Quantcast
Channel: LANDESK User Community : Document List - All Communities
Viewing all articles
Browse latest Browse all 6338

Some users receive 'syntax error, unexpected ':', expecting ',', or '\n', or '}'' when logging in to Web Desk or switching to Web Desk from Self Service

$
0
0

Environment:

This issue affects 7.7.3 and possibly future versions if the scripts on article Setting a dashboard as the system home page in Web Desk also sets it for Self Service have been run or used as part of a trigger on the database.

 

Review Date:

11th December 2014

 

Error Message:

There has been an unexpected error. Click Continue to return to the previous page.

syntax error, unexpected ':', expecting ',', or '\n', or '}'


at Microsoft.Scripting.ErrorSink.Add(SourceUnit source, String message, SourceSpan span, Int32 errorCode, Severity severity)
at Microsoft.Scripting.ErrorCounter.Add(SourceUnit source, String message, SourceSpan span, Int32 errorCode, Severity severity)
at IronRuby.Compiler.Parser.ErrorRecovery()
at IronRuby.Compiler.Parser.Parse()
at IronRuby.Compiler.Parser.Parse(SourceUnit sourceUnit, RubyCompilerOptions options, ErrorSink errorSink)
at IronRuby.Runtime.RubyContext.ParseSourceCode[T](SourceUnit sourceUnit, RubyCompilerOptions options, ErrorSink errorSink)
at IronRuby.Runtime.RubyContext.CompileSourceCode(SourceUnit sourceUnit, CompilerOptions options, ErrorSink errorSink)
at Microsoft.Scripting.SourceUnit.Execute(Scope scope, ErrorSink errorSink)
at Touchpaper.Web.Metadata.CachedDashboardHandler.ToWebDashboard(ICachedPersonalisedDashboard personalisations)
at Touchpaper.Web.Console.Controllers.DashboardController.AddDashboardToUIContext(Boolean isHome, ICachedDashboard cachedDashboard, ICachedPersonalisedDashboard personalisations)
at Touchpaper.Web.Console.Controllers.DashboardController.OpenDashboard(ICachedDashboard cachedDashboard, ICachedPersonalisedDashboard personalisations, Boolean isHome)
at Touchpaper.Web.Console.Controllers.DashboardController.Open(Boolean isHome)
at Touchpaper.Web.Console.Controllers.DashboardController.OpenHomeDashboard()
at lambda_method(Closure , ControllerBase , Object[] )
at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<>c__DisplayClass39.b__33()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.b__49()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.b__49()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.b__49()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.b__49()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.b__36(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<>c__DisplayClass2a.b__20()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.b__22(IAsyncResult asyncResult)

Problem:

Some users report receiving the above error when logging into Web Desk or when switching from Self Service to Web Desk.

 

Cause:

This issue occurs if the scripts on article Setting a dashboard as the system home page in Web Desk also sets it for Self Service have been used to assign a default dashboard to specific roles or user types in the past.  A number of customers also have written triggers based on the SQL statements in these scripts.  The scripts worked fine up until version 7.7.3 of Service Desk when we added an additional client_type for Fuse Dashboards.  The following line in the SQL Scripts can return multiple rows:

 

 

select @DashboardGuid = ui_guid from ui_dashboard where ui_title = @DashboardName and ui_client_type > 1

 

If the last row returned is for a fuse dashboard (ui_Client_type=6) then the default Web Desk dashboard will be set to a fuse dashboard which Web Desk cannot render correctly:

 

Solution / Workaround:

The scripts in article Setting a dashboard as the system home page in Web Desk also sets it for Self Service have been updated to resolve this issue and can be downloaded and re-run to set the dashboards correctly for the users that are receiving the error.  If you have implemented triggers to set the default Web Access dashboards for users based on the scripts on the article then you will need to modify those triggers replacing the following line:

 

select @DashboardGuid = ui_guid from ui_dashboard where ui_title = @DashboardName and ui_client_type > 1

 

with:


select @DashboardGuid = ui_guid from ui_dashboard where ui_title = @DashboardName and ui_client_type = 4


Viewing all articles
Browse latest Browse all 6338

Latest Images

Trending Articles



Latest Images

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