<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://sugarclub.sugarai.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>pagination problems on v12</title><link>https://sugarclub.sugarai.com/dev-club/f/questions-answers/7678/pagination-problems-on-v12</link><description>I am v12 Ent (working on it, I know I&amp;#39;m behind... again) 
 I have a pagination issue. 
 In Opportunities there is a Contacts subpanel. 
 When I load the opportunity if the subpanel is closed it shows 9 Contacts: 
 
 opening it shows 5 contacts of 6+ and</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: pagination problems on v12</title><link>https://sugarclub.sugarai.com/thread/32078?ContentTypeID=1</link><pubDate>Tue, 15 Oct 2024 18:19:19 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:f52df3fb-d05d-4637-989e-7f1754c6089b</guid><dc:creator>Francesca Shiekh</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="/members/tev"&gt;Tevfik Tümer&lt;/a&gt;&amp;nbsp;you hit the nail on the head!&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Multiple contacts related to the Account shared a corporate email address as the secondary address. Removing that address fixes the issue. &lt;br /&gt;&lt;br /&gt;So it seems that multiple Contacts on an Account CANNOT share an email address or things will get out of whack.&lt;/p&gt;
&lt;p&gt;This is going to be a problem for us since it&amp;#39;s not an unusual case.&lt;/p&gt;
&lt;p&gt;I will be filing a case to see what the developer side of the house thinks.&lt;/p&gt;
&lt;p&gt;Note: I also had a problem with the denormalizaiton of Account Name on Contacts, given that our relationship is M-M since v6 the denorm was causing duplicated records (one per account name).&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pagination problems on v12</title><link>https://sugarclub.sugarai.com/thread/32071?ContentTypeID=1</link><pubDate>Tue, 15 Oct 2024 12:21:36 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:cdd87639-80c9-4aeb-9936-2d6c26835c65</guid><dc:creator>Tevfik T&amp;#252;mer</dc:creator><description>&lt;p&gt;Sounds great.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;As I mentioned previously this is happening due to the relationship. SQL Returns some records but Distinct evaluation wipe some of them and log them aside.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;At this moment, I could blindly guess, somehow an email would be use in multiple same records. You can check the IDs logged in the email addresses to see if it gives you more info. Moreover, the best could be log only the related api end point logs in the sugarcrm.log to get exact query.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Good luck on your investigations.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Let me know if you have any further questions.&lt;br /&gt;&lt;br /&gt;Tev.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pagination problems on v12</title><link>https://sugarclub.sugarai.com/thread/32062?ContentTypeID=1</link><pubDate>Fri, 11 Oct 2024 21:17:54 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:da06b65f-0dc1-4961-a217-e988f9c6200e</guid><dc:creator>Francesca Shiekh</dc:creator><description>&lt;p&gt;In v14.0.0 I removed everything but &amp;quot;Name&amp;quot; and tested adding the fields I had before one at a time.&lt;/p&gt;
&lt;p&gt;The Subpanel displayed correctly 10 entries at a time, paginating correctly for each added field except Email.&lt;/p&gt;
&lt;p&gt;When I added Email then the counts are off and the scrolling is broken.&lt;/p&gt;
&lt;p&gt;I wiped the entire subpanel from Accounts and rebuilt it in Studio and the problem came back with the addition of the Email:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="php"&gt;&amp;lt;?php
// created: 2024-10-11 16:03:43
$viewdefs[&amp;#39;Contacts&amp;#39;][&amp;#39;base&amp;#39;][&amp;#39;view&amp;#39;][&amp;#39;subpanel-for-accounts-contacts&amp;#39;] = array (
  &amp;#39;type&amp;#39; =&amp;gt; &amp;#39;subpanel-list&amp;#39;,
  &amp;#39;panels&amp;#39; =&amp;gt;
  array (
    0 =&amp;gt;
    array (
      &amp;#39;name&amp;#39; =&amp;gt; &amp;#39;panel_header&amp;#39;,
      &amp;#39;label&amp;#39; =&amp;gt; &amp;#39;LBL_PANEL_1&amp;#39;,
      &amp;#39;fields&amp;#39; =&amp;gt;
      array (
        0 =&amp;gt;
        array (
          &amp;#39;name&amp;#39; =&amp;gt; &amp;#39;name&amp;#39;,
          &amp;#39;type&amp;#39; =&amp;gt; &amp;#39;fullname&amp;#39;,
          &amp;#39;fields&amp;#39; =&amp;gt;
          array (
            0 =&amp;gt; &amp;#39;salutation&amp;#39;,
            1 =&amp;gt; &amp;#39;first_name&amp;#39;,
            2 =&amp;gt; &amp;#39;last_name&amp;#39;,
          ),
          &amp;#39;link&amp;#39; =&amp;gt; true,
          &amp;#39;label&amp;#39; =&amp;gt; &amp;#39;LBL_LIST_NAME&amp;#39;,
          &amp;#39;enabled&amp;#39; =&amp;gt; true,
          &amp;#39;default&amp;#39; =&amp;gt; true,
        ),
        1 =&amp;gt;
        array (
          &amp;#39;name&amp;#39; =&amp;gt; &amp;#39;email&amp;#39;,
          &amp;#39;label&amp;#39; =&amp;gt; &amp;#39;LBL_LIST_EMAIL&amp;#39;,
          &amp;#39;enabled&amp;#39; =&amp;gt; true,
          &amp;#39;default&amp;#39; =&amp;gt; true,
        ),
        2 =&amp;gt;
        array (
          &amp;#39;name&amp;#39; =&amp;gt; &amp;#39;phone_work&amp;#39;,
          &amp;#39;label&amp;#39; =&amp;gt; &amp;#39;LBL_LIST_PHONE&amp;#39;,
          &amp;#39;enabled&amp;#39; =&amp;gt; true,
          &amp;#39;default&amp;#39; =&amp;gt; true,
        ),
     &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Additional oddity: When updating the subpanel from Studio I had to add a field, save-and-deploy. And the field I just added would move back to the Hidden column. The second time I re-added it and save-and-deploy it would stick.&lt;/p&gt;
&lt;p&gt;I am going to dig through my customizations and see if we had changes to the email field at any point in time.&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;FrancescaS&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pagination problems on v12</title><link>https://sugarclub.sugarai.com/thread/32058?ContentTypeID=1</link><pubDate>Fri, 11 Oct 2024 09:12:50 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:abab9109-44ad-4287-b344-5d7d3b9af6e9</guid><dc:creator>Tevfik T&amp;#252;mer</dc:creator><description>&lt;p&gt;Lets try this,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Could&amp;nbsp;you remove all the fields from the subpanel list view&amp;nbsp;except&amp;nbsp;id and name fields (stock ones)?&lt;br /&gt;&lt;br /&gt;Let me know if this issue is happening?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Tev.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pagination problems on v12</title><link>https://sugarclub.sugarai.com/thread/32055?ContentTypeID=1</link><pubDate>Thu, 10 Oct 2024 19:25:10 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:582ca7a6-7924-4d45-9564-b9a48fdf2196</guid><dc:creator>Francesca Shiekh</dc:creator><description>&lt;p&gt;Thanks again,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t have actual Contacts queries in the log even with the DEBUG on, but I did find this error/debug line but those three contacts look fine, and are related to the Account in question, It&amp;#39;s also strange that it seems to be reporting 4 records that are not in the Bean set, but only 3 IDs.&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;Thu Oct 10 14:11:30 2024 [22817][1][ERROR] Non-distinct result set detected: sqlRows = 11 vs beanSet = 7

Thu Oct 10 14:11:30 2024 [22817][1][DEBUG] Non-distinct offending record ids: f8ee074a-7630-11e7-a836-001a4a160206, 3ab4a364-e878-dccc-0b4f-4ee36206fb8a, 7a1daa5d-4fda-0bf6-a984-56f564680c7f&lt;/pre&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;&lt;/span&gt;I have a v14 upgraded development instance and it has the same error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pagination problems on v12</title><link>https://sugarclub.sugarai.com/thread/32052?ContentTypeID=1</link><pubDate>Thu, 10 Oct 2024 09:53:01 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:6794b5bf-f15e-4503-a318-13c83bff00a0</guid><dc:creator>Tevfik T&amp;#252;mer</dc:creator><description>&lt;p&gt;It&amp;#39;s challenging to elaborate without seeing the application in its entirety. However, my approach would be to enable debug mode and observe the executed queries.&lt;/p&gt;
&lt;p&gt;How do the queries look? I would certainly switch to debug mode to identify what is limiting the expected records.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pagination problems on v12</title><link>https://sugarclub.sugarai.com/thread/32026?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2024 14:39:40 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:056c2c08-2862-4cac-8a94-868552c171fc</guid><dc:creator>Francesca Shiekh</dc:creator><description>&lt;p&gt;I double checked the list views that are showing this issue and the only relate field is a relate field to another Contacts record. There is no other relate field, other than the implied relationship with email addresses. I also tried defaulting back to the default subpanel and I still have the same issue.&lt;/p&gt;
&lt;p&gt;We do have an customization from v6.x that was made by our Partner at the time to allow us to have an M-M relationship between Accounts and Contacts. I am not entirely sure what those changes were at that time to be honest. Could that be causing issues?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pagination problems on v12</title><link>https://sugarclub.sugarai.com/thread/32022?ContentTypeID=1</link><pubDate>Fri, 04 Oct 2024 19:21:30 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:0b12a0a8-c5f9-41f8-a281-1f18815f887d</guid><dc:creator>Francesca Shiekh</dc:creator><description>&lt;p&gt;Thank you for the pointer &lt;a href="/members/tev"&gt;Tevfik Tümer&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pagination problems on v12</title><link>https://sugarclub.sugarai.com/thread/32020?ContentTypeID=1</link><pubDate>Fri, 04 Oct 2024 08:24:33 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:cd425ff7-1e15-407b-a8b6-380d817ac2a4</guid><dc:creator>Tevfik T&amp;#252;mer</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/francescas"&gt;Francesca Shiekh&lt;/a&gt;,&lt;br /&gt;&lt;br /&gt;This is typically happening due to a join in the query. I would check directly the related fields that are in the list.&amp;nbsp;&lt;br /&gt;Try to reduce one another from the subpanel list view, the issue might resolve. (I mean, you would found a starting point for your debugging)&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Tevfik T&amp;uuml;mer&lt;br /&gt;Sr. Developer Support Engineer&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>