• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2074
  • Last Modified:

Unterminated string constant on Line 49

Hello Experts,

I need some help with the attached script which is an OnLoad event on the quote entity.

I am trying to get the ChangeInspectionSite function to work as an OnChange event of the customerid field. I am getting the following error when the form loads. I hope you can help. I have been given a deadline of next Wednesday to have everything fixed and I do not have Visual Studio to help with the debugging.

= = = = = = =

The popup alert is:

     There was an error with this field's customized event.

     Error: The value of the property 'PopulateBillToInformation' is null or undefined, not a Function object.

= = = = = = = = = =
Microsoft Dynamics CRM Error Report Contents

   <Message>Unterminated string constant</Message>
   <BrowserUserAgent>Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; Media Center PC 6.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; InfoPath.3; MS-RTC EA 2; .NET4.0C; .NET4.0E; .NET CLR 1.1.4322; MS-RTC LM 8; Microsoft Outlook 14.0.6117)</BrowserUserAgent>
   <ClientName>Outlook Laptop - Online</ClientName>
  • 2
1 Solution
Chinmay PatelEnterprise ArchitectCommented:
Hi Jblanke,

I suggested to use few IDEs available online did you try using any of them?

Chinmay PatelEnterprise ArchitectCommented:
Hi jblanke,

Line 49 and 50, you have entered a blank line, which is not allowed when you are building SOAP calls.

request += "<Execute xmlns=\"http://schemas.microsoft.com/xrm/2011/Contracts/Services\" xmlns:i=

Open in new window

jlblankeAuthor Commented:
Thanks for helping me! The example was exactly what I needed to locate the problems.

I was able to get the script to load successfully. It is hard for me to find many of these typos without Visual Studio. Also, I think the copy/paste between Notepad and CRM is causing some additional line breaks to occur.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now