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

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Script Error when launching AX Client

(0) ShareShare
ReportReport
Posted on by 1,227

We have a client that certain users are getting a "Script Error" error when they launch the AX Client.  This just started occurring and it only happens to certain users.  I have created a test user and mirrored the problem user's AD and AX permissions / roles (no AX roles actually).  It looks to be a role center error but the user is not assigned to one. 

Once they click NO they can continue using the AX client with no issues.

Here is the error:

Script Error

Line: 1412

Char: 294

Error:  Unterminated string constant

Code: 0

URL: http://EPSERVER/sites/dynamicsax/enterprise%20portal/EPDefaultRoleCenter.aspx?---and a lot of misc characters after

Do you want to continue running the scripts on this page?  Yes or No.

*This post is locked for comments

I have the same question (0)
  • Freddy Hubert Profile Picture
    15 on at
    RE: Script Error when launching AX Client

    This is an older thread, but in case someone comes across it, you may want to clear the user's usage data. Do a reset on all the usage data and see if it solves the problem.

    I've checked IE settings plus cleared the .auc and .kti files but it didn't help. Clearing the usage data did the trick.

  • Mark_Edel Profile Picture
    160 on at
    RE: AX 2012 R2 CU7 -- Script Error when launching AX Client

    Hi Ravi and Vilmos,

    Good Day!

    I already suggest to our customer to delete the .auc and .kti files and also reset the IE settings. Until now I did not hear any feedback from them that they still encounter the error. I think the solution provided solves the error. 

    Keep it up guys!

    Thanks,

    Mark

  • Mark_Edel Profile Picture
    160 on at
    RE: AX 2012 R2 CU7 -- Script Error when launching AX Client

    Hi Ravi and Vilmos,

    Thanks for the advise. Will try your recommendation and will give you updates later.

    Thanks and Regards,

    Mark

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at
    RE: AX 2012 R2 CU7 -- Script Error when launching AX Client

    It must be their IE settings. Make scripting less restrictive, and disable script debugging as advised above.

  • Suggested answer
    RM-22040759-0 Profile Picture
    2,014 on at
    RE: AX 2012 R2 CU7 -- Script Error when launching AX Client

    Hello Mark,

    If you are facing issues with a specific user, then its probably cache issue. I would recommend you to delete “.auc” and “.kti” files from user profile (Path :\ appdata\local) and reset IE setting (If the user default page set as role center page ). Please try above recommendation and let me know.

    Best Regards,

    Ravi Theja Madisetty

    https://technoguns.com

  • Mark_Edel Profile Picture
    160 on at
    RE: AX 2012 R2 CU7 -- Script Error when launching AX Client

    Hi All,

    We are also experiencing the error "Script Error when launching AX Client" same with the error of ford_sopris but we are on AX 2012 R3 CU11. We encountered the error in a specific user only. May I know how to resolve the error.

    Regards,

    Mark

  • Suggested answer
    RM-22040759-0 Profile Picture
    2,014 on at
    RE: AX 2012 R2 CU7 -- Script Error when launching AX Client

    Please try to open AX as administrator and provide required permissions to the user id in enterprise portal.

    Regards.,

    Ravi Theja Madisetty

    https://techguns.wordpress.com

  • Anton Tjiptadi Profile Picture
    2,013 on at
    RE: AX 2012 R2 CU7 -- Script Error when launching AX Client

    Hi Ravi,

    Where did you disable script debugging? I did disable it and the script error disappeared if I open from IE, but the problem still persist when I open from AX.

    Regards,

    Anton

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: AX 2012 R2 CU7 -- Script Error when launching AX Client

    The underlying issue is caused by a Line Feed character (&#10) in the HTML code generated in the Work List  when it is included in AX client Home - Role Centre landing page.

    If a user has any approvals pending, AX will populate a list of user pending actions. The list will contain a ‘Subject’ field. The field is defined in the workflow configuration by an administrator. The text in the field should not contain any characters such as Line Feed (&#10) or Carriage Return(&#13).

    Work List

    Workflow-configuration.jpg

    Workflow configuration

    Workflow-configuration.jpg

    HTML code

    <td class="AxWorkflowActionBarMessage">Please review request 022&#10;</td><td class="AxWorkflowActionBarInstruction">

    Solution

    The standard code imposes the constraint.

    The constraint can be bypassed  by making sure configuration doesn’t contain any special characters.

  • Suggested answer
    RM-22040759-0 Profile Picture
    2,014 on at
    RE: AX 2012 R2 CU7 -- Script Error when launching AX Client

    Hi All ,

    Looks my issue got fixed after disabed script debugging opition from IE.

    Regrads.,

    Ravi Theja Madisetty

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Syed Haris Shah Profile Picture

Syed Haris Shah 9

#2
Mea_ Profile Picture

Mea_ 4

#3
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans