• 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.

     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
jlblanke
Asked:
jlblanke
  • 2
1 Solution
 
Chinmay PatelEnterprise ArchitectCommented:
Hi Jblanke,

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

Regards,
Chinmay.
0
 
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


Regards,
Chinmay.
0
 
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.
0
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