I am having the following error message in std log file:
ERROR factory.c 6546 Cannot resolve multiple indirect references in customer.location.zcode (factory cr)
How to resolve this error?
Balram Singh Deswal
What is your relation between location and zcode?
is zcode a direct attribute of the location object or to a foreign table?
if to a foreign table as I may suspect, you may want to look for duplicate in your table.
Hope this help
zcode is a direct attribute of the location object with String type.
Same error is also coming for customer.location.name field also.
When I searched these fields in the htmpl forms, I found the following line of code:
<PDM_MACRO name=lsCol hdr="Location Name" attr="customer.location.name" exportHdr="Branch Name" sort="DESC" startrow="no">
<PDM_MACRO NAME=lsCol hdr="Location Code / Category" attr=customer.location.zcode sort="DESC" justify=left>
sort="DESC" attribute seems to be the cause of this error to me.
Kindly provide your suggestion.
yes Balram, you correct and this is the problem.
you may refer to this post on this and vote
MULTIPLE INDIRECT REFERENCES ON SEARCHES
I removed the attribute sort="DESC" but still that error is coming in the Logs whenever user clicks on these fields in list_cr. Do I need to remove these fields from list_cr.htmpl to solve this??
in fact as soon you will use more that one dot in your reference the problem occur. as the page is sorted by default on initial launch.
if you absolutely need to display the zcode vs. the location name solution can be to set the zcode as the display_name in your schema.
<PDM_MACRO name=lsCol hdr="Location Name" attr="customer.location" exportHdr="Branch Name" sort="DESC" startrow="no">
will not generate error and will display exactly the same oon the screen than
<PDM_MACRO name=lsCol hdr="Location Name" attr="customer.location,name" exportHdr="Branch Name" sort="DESC" startrow="no">
because the display_name for location is name.
The downside is that this will appears like this everywhere and you can reference only one attributes like this.
Retrieving data ...