question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] LookupItem "Loading..." for customerid

See original GitHub issue

EasyRepro Version

  • Microsoft Dynamics 365 Online Version 8.2 (8.2.x) (DB 8.2.x) online
  • Microsoft Dynamics 365 Online Version 9.0 (9.0.x) (DB 9.0.x) online
  • Microsoft Dynamics 365 Online Version 9.0.2 (9.0.2) (DB 9.0.2) online
  • Microsoft Dynamics 365 Online Version 9.1 (9.1.x) (DB 9.1.x) online

UCI or Classic Web

  • UCI (XrmApp)
  • Classic Web (XrmBrowser)

Online or On Premise

  • Online
  • On Premise

Browser

  • Chrome
  • Firefox
  • IE
  • Edge

While running the default CreateCaseUCI, at the step of setting the customerid, the browser stays at “Loading…” until it times out, instead of displaying the record. If I manually delete the last char and write it again, it finds the record and the test scenario ends correctly. I suspect it’s related to the value being typed too fast by selenium.

Here is what it looks like: 2020-02-19 16_26_33-Window

Code: LookupItem customer = new LookupItem { Name = "customerid", Value = "aaron aina", Index = 0}; xrmApp.Entity.SetValue(customer);

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dfo-elcacommented, Feb 20, 2020

Thanks.

I confirm it’s in the test UCITestCreateCase.

I let you know if I find a fix. I had this selenium speed idea because it can be reproduced also in CRM without using EasyRepro. Just copy/past a name in the LookUp field and it will do the same, but if you type it by hand, at a human pace, it works.

0reactions
jazzyuppalcommented, Aug 9, 2020

Hi,

Also facing this issue, running in Visual Studio 2019. Similar to others, the lookup appears but it just isn’t selected. An exception is generated:

Managed Debugging Assistant 'ContextSwitchDeadlock' Message=Managed Debugging Assistant 'ContextSwitchDeadlock' : 'The CLR has been unable to transition from COM context 0x6e19a8 to COM context 0x6e1a60 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time. To avoid this problem, all single threaded apartment (STA) threads should use pumping wait primitives (such as CoWaitForMultipleHandles) and routinely pump messages during long running operations.'

Code being run was:

xrmApp.Entity.ClearValue(new LookupItem { Name = "customerid" }); xrmApp.Entity.SetValue(new LookupItem { Name = "customerid", Value = "Jas Limited", Index = 0 });

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pop-up Reminders
I have severally pop-ups reminders that notify the users of the field that have no data. The field are so many that need...
Read more >
How to patch a SharePoint Lookup Column
Solved: I can update all other SharPoint fields using the Patch function, but I am unsucessful in udpating lookup columns using a button....
Read more >
Assign lookup result into array with better performance
I would like to save it into a variable array of int, the only method I found is to loop the json value...
Read more >
How to have column lookup latest value in table 2
Solved: I've updated my original post to better reflect the problem. I have two tables, Table 1 that tracks changes in a customer's...
Read more >
SalesPad Desktop Release Notes (2017-2015)
FIXED: Inventory Lookup: Tabs will now properly load if the Alternate Items ... UPDATED: Active Support: Error messages related to sales line items...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found