web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Incorrect type error when setting field with JS

(0) ShareShare
ReportReport
Posted on by

I upgraded to CRM 2016 on-premise version and encountered strange error with JS and lookup field, which is happening only with systemuser lookup.

I using this code to fill lookup fields on load:

var AttrObj = Xrm.Page.getAttribute(FieldName);

var object = new Array();

object[0] = new Object();

object[0].id = TargetValue.id;

object[0].name = TargetValue.name;

object[0].entityType = TargetValue.logicalName;

AttrObj.setValue(object);

It works fine with any other lookup field on form, but when I use it with systemuser lookup i getting error:

<CrmScriptErrorReport>
  <ReportVersion>1.0</ReportVersion>
  <ScriptErrorDetails>
   <Message>Несоответствие типа</Message>
   <Line>27700</Line>
   <URL>/_common/global.ashx?ver=74826930</URL>
   <PageURL>/form/page.aspx?lcid=1049&themeId=f499443d-2082-4938-8842-e7ee62de9a23&tstamp=14089636&updateTimeStamp=636002073331012524&userts=131092579137235927&ver=74826930#_CreateFromId=%7b5AB5BBA6-3F26-E611-8105-00155D003606%7d&_CreateFromType=10008&etc=10010&pagemode=iframe&theme=Outlook15White&counter=1464784374369</PageURL>
   <Function>anonymousr:Несоответствие типа</Function>
   <FunctionRaw>TypeError: Несоответствие типа</FunctionRaw>
   <CallStack>
    <Function>anonymousr:Несоответствие типа</Function>
   </CallStack>
  </ScriptErrorDetails>
  <ClientInformation>
   <BrowserUserAgent>Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729; InfoPath.3; rv:11.0) like Gecko</BrowserUserAgent>
   <BrowserLanguage>ru-RU</BrowserLanguage>
   <SystemLanguage>ru-RU</SystemLanguage>
   <UserLanguage>ru-RU</UserLanguage>
   <ScreenResolution>1920x1080</ScreenResolution>
   <ClientName>Web</ClientName>
   <ClienState>Online</ClienState>
   <ClientTime>2016-06-01T15:33:11</ClientTime>
  </ClientInformation>
  <ServerInformation>
    <OrgLanguage>1049</OrgLanguage>
    <OrgCulture>1049</OrgCulture>
    <UserLanguage>1049</UserLanguage>
    <UserCulture>1049</UserCulture>
    <OrgID>{9415923D-E723-E611-8102-00155D003606}</OrgID>
    <UserID>{FABD678D-A084-E511-8141-00155DC8A002}</UserID>
    <CRMVersion>8.0.0.1088</CRMVersion>
  </ServerInformation>
</CrmScriptErrorReport>

Несоответствие типа = Incorrect type

In IE debugger i see error in "global.ashx, line: 27700, column: 647587", which is:

$v_0.set_status(this.$0_0.GetStatus(sipId,elementId));

Any thoughts?

This line looks for me like it's do something with lync status.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    I installed SP1 update and issue was resolved.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans