Lead page not displaying anything!

edited June 25 in Problems
Hi Everyone,

I am a Salesforce Consultant and have a client that uses Skuid, I do not know much about it.
I was deleting some fields from the Lead object in Salesforce for them, and noticed I had to remove the field references from the Skuid page too. Along with this I ended up removing a few "Conditions" in some Models. Now the Lead page renders like this:

image

I have no idea what could have caused this but any help is greatly appreciated!

Cheers.

Comments

  • edited October 2019
    Skuid stores the version history of the pages, so you can restore the original version to get your page back up and running. Then make a clone of the page and edit the clone one change at a time and preview after each change. That will allow you to determine which change caused the problem.
  • edited June 2017
    Perfect! How can I access the version history of the page?
  • edited June 2017
    Nevermind I found it! But unfortunately I restored it back to its original state and it still appears the same. Could it be that one of the fields I deleted in Salesforce has had an effect?
  • Amy DewaalAmy Dewaal ✭✭
    edited May 2018
    James,

    It sounds like page versions might be your friend. If you haven't made too many changes on the page since then (or maybe even if you've made a lot, depending on how often you clicked save) you can restore your page to a previous version of itself (such as before you deleted the conditions). In the page builder for that page, click on More Page Actions and then Versions. These are all versions of your page, created whenever you clicked save. You can click on the little clock row icon to restore a previous version of your page. It sounds like you might want to do that to get back to an instance where your page showed, and then you can delete off what you need again. You can also click Add New Version to create a named save version in case anything else gets accidentally deleted, and you want an easier way to know what page version is linked with what changes. Additionally, you can only keep so many page versions going back so far, but if you add a page version from the Add new version button, it won't ever get "pushed" off the page version list. 
  • edited October 2019
    If you deleted fields in salesforce that are in the model of the Skuid page, it may cause the page not to load. Look at the fields in the models on the page and see if any that you deleted are there. If so, remove those fields from the model.
  • edited June 2017
    That was what I did originally. I went through each model and removed the fields that I had deleted. I don't see why a field missing from a Model would cause a page not to load?
  • edited June 25
    The weird thing is I see a little preview as if the page is going to load properly and then it just doesn't
  • Pat VachonPat Vachon ✭✭
    edited June 2017
    Any javascript? A missing field in javascript could cause the page to stop loading. Check the console yet?

  • edited June 2017
    I believe there could be some Javascript but I am not sure. The problem is they had this all setup by another company. How can I check the javascript?
  • Pat VachonPat Vachon ✭✭
    edited June 2017
    image
  • edited October 2019
    Here is a link to Skuid documentation. You will probably need to learn it to work with an org built on skuid depending on how robust the build out is and if they want to keep using Skuid. Otherwise, hire a consultant like Pat to work with the Skuid aspects of the org. You can also search for Skuid on YouTube to find some overview videos. https://docs.skuid.com/latest/en/skuid/javascript/snippets/using-snippets-intro.html
  • Pat VachonPat Vachon ✭✭
    edited June 2017
    Can you share the XML for the page?
  • edited June 2017
    Yes here it is. So I looked at the Javascript and nothing has been changed. I have now refreshed to a previous version that was unedited and working, and I have undeleted all the fields in Salesforce, and it's still not rendering. The weird thing is if I login as a different User it works, but I have no touched Profile or User settings at all.


    <skuidpage unsavedchangeswarning="yes">
        <models>
            <model id="Setup" limit="1" query="true" createrowifnonefound="false" adapter="" type="" sobject="Saasli_Setup__c">
                <fields>
                    <field id="Territories_On_Off__c"/>
                    <field id="SessionID__c"/>
                    <field id="API_Partner_Server_URL_90__c"/>
                </fields>
                <conditions/>
                <actions/>
            </model>
            <model id="My_Leads" limit="50" query="false" createrowifnonefound="false" sobject="Lead" doclone="" type="" orderby="CreatedDate DESC" adapter="salesforce" processonclient="false">
                <fields>
                    <field id="FirstName"/>
                    <field id="LastName"/>
                    <field id="Company"/>
                    <field id="Status"/>
                    <field id="Email"/>
                    <field id="LastActivityDate"/>
                    <field id="Phone"/>
                    <field id="Id"/>
                    <field id="Title"/>
                    <field id="of_Activities__c"/>
                    <field id="Days_Since_Last_Activity__c"/>
                    <field id="Country"/>
                    <field id="City"/>
                    <field id="State"/>
                </fields>
                <conditions>
                    <condition type="fieldvalue" value="" field="Status" operator="=" enclosevalueinquotes="true" state="filterableoff" inactive="true" name="Status"/>
                    <condition type="fieldvalue" value="" enclosevalueinquotes="true" field="Industry" state="filterableoff" inactive="true" name="Industry"/>
                    <condition type="fieldvalue" value="Unqualified" enclosevalueinquotes="true" field="Status" state="filterableon" inactive="false" name="ShowUnqualified" operator="!="/>
                    <condition type="fieldvalue" value="" enclosevalueinquotes="true" field="LeadSource" state="filterableoff" inactive="true" name="LeadSource"/>
                    <condition type="fieldvalue" value="false" field="IsConverted" operator="=" enclosevalueinquotes="false" state="filterableon" inactive="false" name="ShowConverted"/>
                    <condition type="userinfo" value="" field="OwnerId" operator="=" enclosevalueinquotes="true" userinfotype="userid"/>
                    <condition type="fieldvalue" value="" enclosevalueinquotes="true" field="Job_Level__c" state="filterableoff" inactive="true" name="Job_Level__c"/>
                    <condition type="fieldvalue" value="" enclosevalueinquotes="true" field="Job_Function__c" state="filterableoff" inactive="true" name="Job_Function__c"/>
                    <condition type="multiple" value="" field="City" state="filterableoff" inactive="true" name="City" operator="in" enclosevalueinquotes="true">
                        <values>
                            <value/>
                        </values>
                    </condition>
                    <condition type="multiple" value="" field="State" state="filterableoff" inactive="true" name="State" operator="in" enclosevalueinquotes="true">
                        <values>
                            <value/>
                        </values>
                    </condition>
                    <condition type="multiple" value="" field="Country" state="filterableoff" inactive="true" name="Country" operator="in" enclosevalueinquotes="true">
                        <values>
                            <value/>
                        </values>
                    </condition>
                </conditions>
                <actions/>
            </model>
            <model id="Leads_In_My_Territory" limit="50" query="false" createrowifnonefound="false" sobject="Lead" doclone="" type="" orderby="CreatedDate DESC" adapter="salesforce" processonclient="false">
                <fields>
                    <field id="FirstName"/>
                    <field id="LastName"/>
                    <field id="Company"/>
                    <field id="Status"/>
                    <field id="Email"/>
                    <field id="LastActivityDate"/>
                    <field id="Phone"/>
                    <field id="Id"/>
                    <field id="Title"/>
                    <field id="of_Activities__c"/>
                    <field id="Days_Since_Last_Activity__c"/>
                    <field id="OwnerId"/>
                    <field id="Owner.Name"/>
                </fields>
                <conditions>
                    <condition type="fieldvalue" value="" field="Status" operator="=" enclosevalueinquotes="true" state="filterableoff" inactive="true" name="Status"/>
                    <condition type="fieldvalue" value="" enclosevalueinquotes="true" field="Industry" state="filterableoff" inactive="true" name="Industry"/>
                    <condition type="fieldvalue" value="Unqualified" enclosevalueinquotes="true" field="Status" state="filterableon" inactive="false" name="ShowUnqualified" operator="!="/>
                    <condition type="fieldvalue" value="" enclosevalueinquotes="true" field="LeadSource" state="filterableoff" inactive="true" name="LeadSource"/>
                    <condition type="fieldvalue" value="" enclosevalueinquotes="true" field="OwnerId" state="filterableoff" inactive="true" name="OwnerId"/>
                    <condition type="fieldvalue" value="" enclosevalueinquotes="true" field="Job_Level__c" state="filterableoff" inactive="true" name="Job_Level__c"/>
                    <condition type="fieldvalue" value="" enclosevalueinquotes="true" field="Job_Function__c" state="filterableoff" inactive="true" name="Job_Function__c"/>
                    <condition type="fieldvalue" value="false" enclosevalueinquotes="false" field="IsConverted" operator="="/>
                    <condition type="multiple" value="" field="City" state="filterableoff" inactive="true" name="City" operator="in" enclosevalueinquotes="true">
                        <values>
                            <value/>
                        </values>
                    </condition>
                    <condition type="multiple" value="" field="State" operator="in" enclosevalueinquotes="true" state="filterableoff" inactive="true" name="State">
                        <values>
                            <value/>
                        </values>
                    </condition>
                    <condition type="multiple" value="" field="Country" state="filterableoff" inactive="true" name="Country" operator="in" enclosevalueinquotes="true">
                        <values>
                            <value/>
                        </values>
                    </condition>
                </conditions>
                <actions/>
            </model>
            <model id="All_Leads" limit="50" query="false" createrowifnonefound="false" sobject="Lead" doclone="" type="" orderby="CreatedDate DESC" adapter="salesforce" processonclient="false">
                <fields>
                    <field id="FirstName"/>
                    <field id="LastName"/>
                    <field id="Company"/>
                    <field id="Status"/>
                    <field id="Email"/>
                    <field id="LastActivityDate"/>
                    <field id="Phone"/>
                    <field id="Id"/>
                    <field id="Title"/>
                    <field id="of_Activities__c"/>
                    <field id="Days_Since_Last_Activity__c"/>
                    <field id="OwnerId"/>
                    <field id="Owner.Name"/>
                    <field id="Name"/>
                </fields>
                <conditions>
                    <condition type="fieldvalue" value="" field="Status" operator="=" enclosevalueinquotes="true" state="filterableoff" inactive="true" name="Status"/>
                    <condition type="fieldvalue" value="" enclosevalueinquotes="true" field="Industry" state="filterableoff" inactive="true" name="Industry"/>
                    <condition type="fieldvalue" value="Unqualified" enclosevalueinquotes="true" field="Status" state="filterableon" inactive="false" name="ShowUnqualified" operator="!="/>
                    <condition type="fieldvalue" value="" enclosevalueinquotes="true" field="LeadSource" state="filterableoff" inactive="true" name="LeadSource"/>
                    <condition type="fieldvalue" value="Qualified" field="Status" operator="!=" enclosevalueinquotes="true" state="filterableon" inactive="false" name="ShowConverted"/>
                    <condition type="fieldvalue" value="" enclosevalueinquotes="true" field="Job_Level__c" state="filterableoff" inactive="true" name="Job_Level__c"/>
                    <condition type="fieldvalue" value="" enclosevalueinquotes="true" field="Job_Function__c" state="filterableoff" inactive="true" name="Job_Function__c"/>
                    <condition type="fieldvalue" value="" enclosevalueinquotes="true" field="OwnerId" state="filterableoff" inactive="true" name="OwnerId"/>
                    <condition type="multiple" value="" field="City" operator="in" enclosevalueinquotes="true" state="filterableoff" inactive="true" name="City">
                        <values>
                            <value/>
                        </values>
                    </condition>
                    <condition type="multiple" value="" field="Country" operator="in" enclosevalueinquotes="true" state="filterableoff" inactive="true" name="Country">
                        <values>
                            <value/>
                        </values>
                    </condition>
                    <condition type="multiple" value="" field="State" operator="in" enclosevalueinquotes="true" state="filterableoff" inactive="true" name="State">
                        <values>
                            <value/>
                        </values>
                    </condition>
                    <condition type="fieldvalue" value="false" enclosevalueinquotes="false" field="IsConverted" state="filterableon" inactive="false" name="IsConverted"/>
                </conditions>
                <actions/>
            </model>
            <model id="Row_Action_Log_Activity" limit="1" query="false" createrowifnonefound="false" sobject="Task" doclone="" type="" adapter="salesforce">
                <fields>
                    <field id="Id"/>
                    <field id="OwnerId"/>
                    <field id="Owner.Name"/>
                    <field id="CallDisposition"/>
                    <field id="ActivityDate"/>
                    <field id="Status"/>
                    <field id="Subject"/>
                    <field id="Type"/>
                    <field id="WhoId"/>
                    <field id="Who.Name"/>
                </fields>
                <conditions/>
                <actions/>
            </model>
            <model id="Row_Action_FollowUp" limit="1" query="false" createrowifnonefound="false" sobject="Task" doclone="" type="" adapter="salesforce">
                <fields>
                    <field id="Id"/>
                    <field id="OwnerId"/>
                    <field id="CallType"/>
                    <field id="ActivityDate"/>
                    <field id="Priority"/>
                    <field id="Overdue__c"/>
                    <field id="Status"/>
                    <field id="Subject"/>
                    <field id="Type"/>
                    <field id="WhatId"/>
                    <field id="What.Name"/>
                    <field id="WhoId"/>
                    <field id="Who.Name"/>
                    <field id="ReminderDateTime"/>
                </fields>
                <conditions/>
                <actions>
                    <action>
                        <actions>
                            <action type="updateRow" fieldmodel="Row_Action_FollowUp" field="OwnerId" enclosevalueinquotes="true" value="{{$Model.ThisUser.data.0.Id}}"/>
                        </actions>
                        <events>
                            <event>row.created</event>
                        </events>
                    </action>
                </actions>
            </model>
            <model id="Suggestion_Todays_Leads" limit="5" query="false" createrowifnonefound="false" sobject="Lead" doclone="" type="" adapter="salesforce" processonclient="false">
                <fields>
                    <field id="FirstName"/>
                    <field id="LastName"/>
                    <field id="Company"/>
                    <field id="CreatedDate"/>
                    <field id="Status"/>
                    <field id="Email"/>
                    <field id="LeadSource"/>
                    <field id="LastActivityDate"/>
                    <field id="Phone"/>
                    <field id="Title"/>
                    <field id="Id"/>
                    <field id="Name"/>
                </fields>
                <conditions>
                    <condition type="fieldvalue" value="Open" field="Status" operator="=" state="filterableon" inactive="false" name="Status" enclosevalueinquotes="true"/>
                    <condition type="fieldvalue" field="LastActivityDate" operator="gte" inactive="true" enclosevalueinquotes="false" name="__autofilter__start__LastActivityDate" state="filterableoff" value=""/>
                    <condition type="fieldvalue" field="LastActivityDate" operator="lte" inactive="true" enclosevalueinquotes="false" name="__autofilter__end__LastActivityDate" state="filterableoff" value=""/>
                    <condition type="fieldvalue" field="CreatedDate" operator="gte" inactive="true" enclosevalueinquotes="false" name="__autofilter__start__CreatedDate" state="filterableoff" value=""/>
                    <condition type="fieldvalue" field="CreatedDate" operator="lte" inactive="true" enclosevalueinquotes="false" name="__autofilter__end__CreatedDate" state="filterableoff" value=""/>
                    <condition type="fieldvalue" value="TODAY" enclosevalueinquotes="false" field="CreatedDate"/>
                    <condition type="fieldvalue" value="0.0" enclosevalueinquotes="false" field="of_Activities__c"/>
                    <condition type="userinfo" value="" field="OwnerId" operator="=" enclosevalueinquotes="true" userinfotype="userid"/>
                </conditions>
                <actions/>
            </model>
            <model id="Suggestion_Todays_Follow_Ups" limit="5" query="false" createrowifnonefound="false" sobject="Task" adapter="salesforce" type="" doclone="" processonclient="false">
                <fields>
                    <field id="Who.FirstName"/>
                    <field id="Who.LastName"/>
                    <field id="Who.Name"/>
                    <field id="WhoId"/>
                    <field id="Subject"/>
                    <field id="Who.Type"/>
                    <field id="Overdue__c"/>
                    <field id="Type"/>
                    <field id="ActivityDate"/>
                    <field id="Status"/>
                </fields>
                <conditions>
                    <condition type="fieldvalue" value="TODAY" enclosevalueinquotes="false" field="ActivityDate"/>
                    <condition type="fieldvalue" value="Lead" enclosevalueinquotes="true" field="Who.Type"/>
                    <condition type="fieldvalue" value="false" enclosevalueinquotes="false" field="IsClosed" operator="="/>
                    <condition type="userinfo" value="" field="OwnerId" operator="=" enclosevalueinquotes="true" userinfotype="userid"/>
                </conditions>
                <actions/>
            </model>
            <model id="Suggestion_This_Weeks_Leads" limit="5" query="false" createrowifnonefound="false" sobject="Lead" doclone="" type="" adapter="salesforce" processonclient="false">
                <fields>
                    <field id="FirstName"/>
                    <field id="LastName"/>
                    <field id="Company"/>
                    <field id="CreatedDate"/>
                    <field id="Status"/>
                    <field id="State"/>
                    <field id="City"/>
                    <field id="Email"/>
                    <field id="LeadSource"/>
                    <field id="LastActivityDate"/>
                    <field id="MobilePhone"/>
                    <field id="Phone"/>
                    <field id="Title"/>
                    <field id="Name"/>
                </fields>
                <conditions>
                    <condition type="fieldvalue" value="Open" field="Status" operator="=" state="filterableon" inactive="false" name="Status" enclosevalueinquotes="true"/>
                    <condition type="fieldvalue" value="LAST_N_DAYS:7" enclosevalueinquotes="false" field="CreatedDate" state=""/>
                    <condition type="fieldvalue" value="0.0" enclosevalueinquotes="false" field="of_Activities__c"/>
                    <condition type="userinfo" value="" field="OwnerId" operator="=" enclosevalueinquotes="true" userinfotype="userid"/>
                    <condition type="fieldvalue" value="TODAY" enclosevalueinquotes="false" field="CreatedDate" operator="!="/>
                    <condition type="fieldvalue" value="false" enclosevalueinquotes="false" field="IsConverted"/>
                </conditions>
                <actions/>
            </model>
            <model id="Suggestion_Neglected_Leads" limit="5" query="false" createrowifnonefound="false" sobject="Lead" doclone="" type="" adapter="salesforce" processonclient="false">
                <fields>
                    <field id="FirstName"/>
                    <field id="LastName"/>
                    <field id="Company"/>
                    <field id="CreatedDate"/>
                    <field id="Status"/>
                    <field id="Email"/>
                    <field id="LastActivityDate"/>
                    <field id="Phone"/>
                    <field id="of_Activities__c"/>
                    <field id="Title"/>
                    <field id="Id"/>
                    <field id="Days_Since_Last_Activity__c"/>
                    <field id="Name"/>
                </fields>
                <conditions>
                    <condition type="multiple" value="" field="Status" operator="in" state="filterableon" inactive="false" name="Status" enclosevalueinquotes="true">
                        <values>
                            <value>Open</value>
                            <value>Working</value>
                        </values>
                    </condition>
                    <condition type="fieldvalue" field="LastActivityDate" operator="gte" inactive="true" enclosevalueinquotes="false" name="__autofilter__start__LastActivityDate" state="filterableoff" value=""/>
                    <condition type="fieldvalue" field="LastActivityDate" operator="lte" inactive="true" enclosevalueinquotes="false" name="__autofilter__end__LastActivityDate" state="filterableoff" value=""/>
                    <condition type="fieldvalue" field="CreatedDate" operator="gte" inactive="true" enclosevalueinquotes="false" name="__autofilter__start__CreatedDate" state="filterableoff" value=""/>
                    <condition type="fieldvalue" field="CreatedDate" operator="lte" inactive="true" enclosevalueinquotes="false" name="__autofilter__end__CreatedDate" state="filterableoff" value=""/>
                    <condition type="fieldvalue" value="5" enclosevalueinquotes="false" field="Days_Since_Last_Activity__c" operator="gte"/>
            &nbsp
  • Pat VachonPat Vachon ✭✭
    edited June 2017
    It's cut off. Email me? [email protected]
  • edited April 2018
    Hi James, 

    Did you end up changing any of the model conditions? This can certainly cause a problem. 
    Ensure that all the conditions on your models are referencing fields (and or objects) on your instance that actually exists.
    It may be a case that the conditions may be restricting the load as the perameters are not being met. 

    Also make sure that you have a model selected for your tables and so on (I have not tested your XML so this would be obvious to anyone loading it). 
  • edited October 2019
    Your xml has the following condition on the my leads model: condition type="userinfo" value="" field="OwnerId" operator="=" enclosevalueinquotes="true" userinfotype="userid"/> That should restrict any results to only the owner of the lead records. As you are new to this org, I would guess that you don't own any of the records, so no results display for you.
  • edited June 2017
    Hi everyone!

    Thank you all so much for your replies, I really appreciate it!

    Turns out I was missing a Permission Set in Salesforce that was causing the page not to load, so after reverting back to the unedited version I still had to add this Permission Set. But it seems odd as I never had the Permission Set in the first place and it was never an issue.
    Oh well it's resolved now so no worries.

    Thanks again.
Sign In or Register to comment.