[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Unterminated string constant on Line 49

Posted on 2012-08-16
Medium Priority
Last Modified: 2012-08-17
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>
Question by:jlblanke
  • 2
LVL 27

Expert Comment

by:Chinmay Patel
ID: 38302530
Hi Jblanke,

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

LVL 27

Accepted Solution

Chinmay Patel earned 2000 total points
ID: 38303567
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


Author Closing Comment

ID: 38305605
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.

Featured Post

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a walkthrough guide I wrote whilst upgrading my on-premise MS Dynamics CRM 3.0 deployment to 4.0. This covers the actual installation of the product to a working level for my system, I ran into a lot of issues that the steps below fixed so h…
For cloud, the “train has left the station” and in the Microsoft ERP & CRM world, that means the next generation of enterprise software from Microsoft is here: Dynamics 365 is Microsoft’s new integrated business solution that unifies CRM and ERP fun…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month18 days, 20 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question