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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

JS Error on campaign activity form with custom webresource

(0) ShareShare
ReportReport
Posted on by 60

Hi,

I have a custom webresource that it's used in other custom activity entities forms without problems, but when I add it to the campaign activity form, na error is thrown with the following description:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)

Timestamp: Mon, 25 Mar 2013 12:13:19 UTC

Message: Object expected

Line: 14

Char: 150

Code: 0

URI: http://win-b5tr96ujk2q/_static/_forms/controls/textarea.htc?ver=1407176682

I checked the file where the error occurs, and the file hasn't been modified and the webresource is a HTML page that doesn't invoke any methods of the textarea.htc file.

The error doesn't affect the overall functionality of the webresource or the entity form, but I'd like to deploy the solution without this error.

Thanks in advance.

*This post is locked for comments

I have the same question (0)
  • Gustavo Longo Profile Picture
    on at

    Hi Sergio,

    I suggest you use the IE Developer Tool to throubleshoot this issue (available from F12 key).

    Try to use the section Script and approach of breakpoints, then reproduces the issue and investigates deep in further the issue.

    Moreover, it's possible to use the section Profile and notices a big Picture about the functions and calls related them.

     

    Thank you for using Microsoft Dynamics CRM Communities,

    Dynamics CRM Support Blog

     

    Gustavo Dobkowski Longo

    Support Engineer

    Microsoft Dynamics CRM

  • Sérgio Bruno Pedro Profile Picture
    60 on at

    Hi Gustavo,

    first of all thanks for the reply.

    I have done that kind of troubleshoot, but the conclusions were not "conclusive". The function of the textarea.htc file that is called (Init()), is invoked by an anonymous function, so that is a dead end.

    I believe the error occurs because the web resource has a textarea of its own and there is some JS in the campaign activity form (and not in the other activities), that reacts to every textarea, but since I can't find what function is calling the Init function I can't ensure it.

    I'll try to change the controls in the web resource to see  if it resolves the problema.

    thanks

  • Verified answer
    Ambecki Profile Picture
    on at

    You have right I have the same with textarea.

    To fix this you can add IsNull(o) function to your webresource:

    IsNull(o) {return "undefined" == typeof o || "unknown" == typeof o || null == o}

    or add a reference to global.ashx:

    <SCRIPT type=text/javascript src="/_common/global.ashx"></SCRIPT>

    I like this error: IsNull is null or undefined

    Lol

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans