Issue after upgrade v14 to v15 - Linked Fields don't fetch data anymore

After the upgrade from v14 to v15 there are no ‘drop-down selections’ anymore.

Like when I want to assign something to an employee there should be a list of employees to choose from, but now it is empty. Also when I start typing there is no way I can add a name.

this is happening in all fields that used to have this functionality. Looking for a solution I was pointed in the direction of the search index, and I’ve rebuild the index by using this command:

bench --site [mysitename.com] build-search-index

This runs, but no changes are happening and thus ERPNext becomes unusable.

Hi @pedro_vde:

What means “drop-down selections”? Multiselect table? Link field?

I’m not really sure how to describe the functionality. Sorry for that. I’m trying to explain it…

There are a lot of fields in ERPNext that give a drop-down list of possible values.

Some examples:

When you want to assign a DocType to an employee the names of the available employees appear when you click on the assign to field.

Another:
When you want to make a purchase order and want to fill in the supplier, the name of the supplier should appear when you start typing…

And so on…

In my case none of these appear. And it is also not possible to fill in the fields.

So I presume I’m talking about the Linked Fields

Hi @pedro_vde:

Yes, these are “Link” fields … but it’s so strange it’s failing everywhere … Maybe some kind of “dirty” old customization overriding link funcionality?

Please, check browser console, check for errors there.

When I click on a Linked Field the console outputs this:

request.js:298 TypeError: Cannot read properties of undefined (reading 'reduce')
    at _a5.merge_duplicates (link.js:439:18)
    at Object.callback (link.js:292:22)
    at Object.callback [as success_callback] (request.js:85:16)
    at 200 (request.js:128:34)
    at Object.<anonymous> (request.js:294:6)
    at fire (jquery.js:3500:31)
    at Object.fireWith [as resolveWith] (jquery.js:3630:7)
    at done (jquery.js:9796:14)
    at XMLHttpRequest.<anonymous> (jquery.js:10057:9)
(anonymous)	@	request.js:298
fire	@	jquery.js:3500
fireWith	@	jquery.js:3630
done	@	jquery.js:9796
(anonymous)	@	jquery.js:10057
XMLHttpRequest.send		
send	@	jquery.js:10109
ajax	@	jquery.js:9690
frappe.request.call	@	request.js:268
frappe.call	@	request.js:105
(anonymous)	@	link.js:283
later	@	utils.js:909
setTimeout		
(anonymous)	@	utils.js:913
dispatch	@	jquery.js:5430
elemData.handle	@	jquery.js:5234

I can’t make much of it, unfortunately.

@avc

I was still looking around and I stumbled on the bench build command.

I’ve run this as

bench build --force

and now ERPNext works as expected and looks completely different!

I’ve followed the instructions for the upgrade but there was no visual change although all apps where at the latest version

HI @pedro_vde:

Glad to know. Upgrading will always require rebuilding assets.