Microsoft Developer Network > Forenhomepage > SharePoint - Business Data Catalog > Unterminated String Constant when using BDC Webparts
Stellen Sie eine FrageStellen Sie eine Frage
 

Vorgeschlagene AntwortUnterminated String Constant when using BDC Webparts

  • Freitag, 23. Januar 2009 12:09Uzma Micropoint TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     

    Hello,

    I've imported an application to use with BDC.

    Trust Delagation enabled, permissions set. On my server I am able to get to a stage where there is some sort of connection, however the result is "There are no items to show".

    There is a Javascript error which may be throwing this off. I've reset the site to use the default.master template in case there is a fault with my own, but have no joy.

    Error is: Unterminated String Constant.

     

    Does anyone know why this is happening or if there is a fix?

    Thank you!

    Uzma

Alle Antworten

  • Freitag, 23. Januar 2009 12:32Uzma Micropoint TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     

    OK - here's the deal.

    I can connect sucessfully to the CRM data using my SharePoint admin account only on my MOSS server.

    When I log out of the server and go to the site which has CRM data, I get "Unable to connec to CRM data".

    This is the ONLY account which can retrieve data, I've tested my own account on the box and despite being a farm administrator, I have the same above problem.

    In summary

    MOSS Admin account has been given CRM permissions to be members of teams and read data

    MOSS Server

    1) MOSS Admin account can log into List Web Part for CRM 4.0 and view information.

    2) MOSS Admin account can log view BDC Data List Webpart and account details given.

    3) I cannot log in as myself and view any data, have unable to connect to CRM data

    Client PC

    MOSS Admin Account cannot log into List Web Part - Unable to connect to CRM data.

    Same thing with my own account.

    Clearly there is a permission issue here. Have NTLM authentication only, when I enable Kerobos, I keep getting log in prompts. In my current set up CLEARLY it's working for a log in account, how can I fix it for all others but without elevating permissions?

    Advice will be very greatful!!

  • Donnerstag, 5. Februar 2009 14:10Alexandra Ribeiro TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     
    Hello Uzma,

    Did you ever solved your problem? I'm experiencing the exact same problem, and checked permissions everywhere (SQL database, BDC, application...) and they seem ok to me.

    Thank you in advance.

    Cheers,
    Alexandra Ribeiro
    Alexandra Ribeiro
  • Freitag, 15. Mai 2009 18:03Ben0jam0in TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     
    Found the answer to I think a similar issue when loading CRM 4. It was that the onload Jscript had an error and was causing the Jscript not to load at all. 

    At first it seemed like a security or permissions error but the crm user setup (Crm Main Screen -> Tools -> Options -> Privacy (Tab)) was set to: never send an error report to MS about MS Dyn CRM. this was suppressing the error for some users but not others depending on the setting.

    To debug with Visuial Studio: add 'debugger;' in the Jscript and set IE to not disable script debugging ( IE -> Tools -> Internet Options -> Advanced (Tab): Disable script debugging not checked) then open the webpage in question. If you do not get a prompt to debug then your script is not even loading and you will have to copy paste into a VS Jscript window to spot check and possibly have to remove or comment out sections to find out where the error is.

    I got lucky and spotted the error was that one of the VAR strings had a CRLF in the middle. It would not have been easy to find in the CRM Edit window.

    Good Luck,
    -Benj
  • Donnerstag, 25. Juni 2009 14:25Alvin.Su TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     
    Hi, did you manage to solve it? I am facing the same problem. Thanks

    Alvin
  • Donnerstag, 2. Juli 2009 09:14Manishrao Patil TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     
    Hi,

    For BDC always enable Single Sign On and another thing is specify "revert to self" in metadata file (.xml) so that the data becomes flowing between CRM and SharePoint.

    I think this should resolve your problem.
    Manish Patil http://patilmanishrao.wordpress.com Posting is provided "AS IS" with no warranties, and confers no rights.
  • Mittwoch, 15. Juli 2009 13:24Ravi Vajaria TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     Vorgeschlagene Antwort

    One of these two approaches should help you resolving the security issue:

    1. Ensure that you are using Kerberos authentication (configuration in SharePoint central admin as well as in the domain controller. This is a great post that I always use as referene - http://blogs.msdn.com/martinkearn/archive/2007/04/27/configuring-kerberos-for-sharepoint-2007-part-2-excel-services-and-sql-analysis-services.aspx

    Kerberos will ensure that BDC queries CRM as the user you're logged in, hence hat you get from CRM is per CRM security, which makes sense.

    2. Configure BDC Application Definition file to connect to CRM as an account which is the Identity account of SharePoint Application Pool. Use "RevertToSelf" instead of "PassThrough"


    As for the JavaScript Error, change the type descriptors in the methods to remove new line character / spaces. Yes, lots of change in CRM Applicatio Defination file. For example-

    Change following:

    <LocalizedDisplayName LCID="1033">

    Contact ID

      </LocalizedDisplayName>

     

    To:

     

      <LocalizedDisplayName LCID="1033">Contact ID</LocalizedDisplayName>

     

    • BearbeitetRavi Vajaria Mittwoch, 15. Juli 2009 13:26JavaScript question unanswered
    • Als Antwort vorgeschlagenRavi Vajaria Mittwoch, 15. Juli 2009 13:25
    • BearbeitetRavi Vajaria Montag, 20. Juli 2009 17:10Adding solution for JavaScript Error
    •