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

x
?
Solved

Unterminated string constant on Line 49

Posted on 2012-08-16
3
Medium Priority
?
2,028 Views
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.

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

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

<CrmScriptErrorReport>
  <ReportVersion>1.0</ReportVersion>
  <ScriptErrorDetails>
   <Message>Unterminated string constant</Message>
   <Line>49</Line>
   <URL>/%7B634807354660000000%7D/WebResources/vsc_quote_onload</URL>
   <PageURL>/userdefined/edit.aspx?etc=1084&pagemode=iframe&preloadcache=1345139312319</PageURL>
   <Function></Function>
   <CallStack>
   </CallStack>
  </ScriptErrorDetails>
  <ClientInformation>
   <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>
   <BrowserLanguage>en-us</BrowserLanguage>
   <SystemLanguage>en-us</SystemLanguage>
   <UserLanguage>en-us</UserLanguage>
   <ScreenResolution>1024x768</ScreenResolution>
   <ClientName>Outlook Laptop - Online</ClientName>
   <ClientTime>2012-08-16T13:48:34</ClientTime>
  </ClientInformation>
  <ServerInformation>
    <OrgLanguage>1033</OrgLanguage>
    <OrgCulture>1033</OrgCulture>
    <UserLanguage>1033</UserLanguage>
    <UserCulture>1033</UserCulture>
    <OrgID>{9E325A09-C858-4167-9B55-3E6CBCDD714A}</OrgID>
    <UserID>{6FC9730F-E6D3-E011-B08C-005056980007}</UserID>
    <CRMVersion>5.0.9690.2165</CRMVersion>
  </ServerInformation>
</CrmScriptErrorReport>
line-49-unterminated-constant.txt
0
Comment
Question by:jlblanke
  • 2
3 Comments
 
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?

Regards,
Chinmay.
0
 
LVL 27

Accepted Solution

by:
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


Regards,
Chinmay.
0
 

Author Closing Comment

by:jlblanke
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.
0

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