Skip to main content

I’m encountering this error when running a snippet that creates several dynamic models.

Here’s the console error:
5939909b8e5d55458e32395f72762100cd398aab.png

And here’s the data for the error:


s&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"ProgressNoteInteraction",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"preventUnloadIfUnsavedChanges":true,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"isProcessing":1,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"calloutIterator":1,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"lastSuccessfulCallout":0,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"objectName":"Interaction__c",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"isAggregate":false,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"isInitialized":true,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"fields":e&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Id"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Timeless_Date__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Interaction_Purpose__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Patient_Case__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Patient_Case__r.Name"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"U_S_Performed__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Gestational_Age_US_Weeks__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Gestational_Age_US_Days__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Baby_1_FHR__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Return_Appointment_Required__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Return_Appointment_Details__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Interaction_Intention__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Closing_Notes__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Primary_Staff__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Primary_Staff__r.Name"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Additional_Staff__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Additional_Staff__r.Name"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Nurse_s_Notes__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Nurse_s_Additional_Notes__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;],<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"conditions":i&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"type":"fieldvalue",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"field":"Id",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"operator":"=",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"value":"a0UF000000gdRLsMAM",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"encloseValueInQuotes":true<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]<br>&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"ProgressNotePatientCase",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"preventUnloadIfUnsavedChanges":true,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"isProcessing":1,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"calloutIterator":1,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"lastSuccessfulCallout":0,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"objectName":"Patient_Case__c",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"isAggregate":false,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"isInitialized":true,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"fields":e&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Id"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Patient__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Patient__r.Name"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"LMP__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Patient_was_Referred_to_Hospital_ED__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Hospital_Referred_To__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Date_and_Time_of_Referral__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Symptoms__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Pregnancy_Confirmed__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Estimated_Due_Date_by_U_S__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Custom_Referrals__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;],<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"conditions":i&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"type":"modelmerge",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"field":"Id",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"operator":"=",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"model":"ProgressNoteInteraction",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"mergeField":"Patient_Case__c",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"noValueBehavior":"noquery",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"encloseValueInQuotes":true<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]<br>&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"ProgressNotePatient",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"preventUnloadIfUnsavedChanges":true,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"isProcessing":1,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"calloutIterator":1,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"lastSuccessfulCallout":0,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"objectName":"Patient__c",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"isAggregate":false,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"isInitialized":true,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"fields":e&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Id"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Name"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Age__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Ethnicity__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Sex__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"GPA__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;],<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"conditions":i&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"type":"modelmerge",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"field":"Id",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"operator":"=",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"model":"ProgressNotePatientCase",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"mergeField":"Patient__c",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"noValueBehavior":"noquery",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"encloseValueInQuotes":true<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]<br>&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"ProgressNoteSTD",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"preventUnloadIfUnsavedChanges":true,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"isProcessing":1,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"calloutIterator":1,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"lastSuccessfulCallout":0,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"objectName":"STD_Test__c",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"isAggregate":false,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"isInitialized":true,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"fields":e&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Id"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Patient_Case__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Patient_Case__r.Name"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"STD__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Results__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"STD_Treatment__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"STD_Treatment__r.Name"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Treatment_Date__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Results_Reported_to_Patient__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;],<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"conditions":i&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"type":"modelmerge",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"field":"Patient_Case__c",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"operator":"=",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"model":"ProgressNotePatientCase",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"mergeField":"Id",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"noValueBehavior":"noquery",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"encloseValueInQuotes":true<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]<br>&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"ProgressNotePRL",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"preventUnloadIfUnsavedChanges":true,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"isProcessing":1,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"calloutIterator":1,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"lastSuccessfulCallout":0,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"objectName":"Patient_Case_Referral__c",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"isAggregate":false,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"isInitialized":true,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"fields":e&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Id"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Patient_Case_Id__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Patient_Case_Id__r.Name"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Referral_Id__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Referral_Id__r.Name"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;],<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"conditions":i&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"type":"modelmerge",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"field":"Patient_Case_Id__c",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"operator":"=",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"model":"ProgressNotePatientCase",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"mergeField":"Id",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"noValueBehavior":"noquery",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"encloseValueInQuotes":true<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]<br>&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"ProgressNoteNA",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"preventUnloadIfUnsavedChanges":true,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"isProcessing":1,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"calloutIterator":1,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"lastSuccessfulCallout":0,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"objectName":"Interaction__c",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"isAggregate":false,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"isInitialized":true,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"fields":e&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Id"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Patient_Case__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Patient_Case__r.Name"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Timeless_Date__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;],<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"conditions":i&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"type":"modelmerge",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"field":"Patient_Case__c",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"operator":"=",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"model":"ProgressNotePatientCase",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"mergeField":"Id",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"noValueBehavior":"noquery",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"encloseValueInQuotes":true<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"type":"fieldvalue",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"field":"Interacion_Category__c",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"operator":"=",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"value":"Appointment",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"encloseValueInQuotes":true<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"type":"fieldvalue",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"field":"Status__c",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"operator":"=",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"value":"Scheduled",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"encloseValueInQuotes":true<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"type":"fieldvalue",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"field":"Date__c",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"operator":"gte",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"value":"TOMORROW",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"encloseValueInQuotes":false<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]<br>&nbsp;&nbsp;&nbsp;}<br>]


HELP!?!

This is still a problem.

My full resource is below. When I run either of the two snippets I get the error indicated in the original post.


// Progress Notes Javascript<br>(function (skuid){<br>//////////////////////////////////////////////<br>// Global Variables //<br>//////////////////////////////////////////////<br>var $ = skuid.$,<br>$t = skuid.time,<br>mSTD, mPRL,<br>rI, rC, rP, rNA;<br>var dynamicModels = [];<br>var mD = skuid.$M('CenterDefaults'),<br>rD = (mD) ? mD.getFirstRow() : null;<br>if (rD){<br>var roleAccounts = (rD.Account_System__c === 'Role'),<br>advocateAssisted = (rD.Patient_Engagement_Model__c === 'Advocate Assisted');<br>}<br>//////////////////////////////////////////////<br>// Model Builders //<br>//////////////////////////////////////////////<br>var&nbsp;<br>buildMajorNotesModels = function(interactionId){<br>//Interaction Model<br>var modelI = new skuid.model.Model();<br>modelI.objectName = 'Interaction__c';<br>modelI.id = 'ProgressNoteInteraction';<br>modelI.fields = [<br>{id: 'Id'},<br>{id: 'Timeless_Date__c'},<br>{id: 'Interaction_Purpose__c'},<br>{id: 'Patient_Case__c'},<br>{id: 'Patient_Case__r.Name'},<br>{id: 'U_S_Performed__c'},<br>{id: 'Gestational_Age_US_Weeks__c'},<br>{id: 'Gestational_Age_US_Days__c'},<br>{id: 'Baby_1_FHR__c'},<br>{id: 'Return_Appointment_Required__c'},<br>{id: 'Return_Appointment_Details__c'},<br>{id: 'Interaction_Intention__c'},<br>{id: 'Closing_Notes__c'},<br>{id: 'Primary_Staff__c'},<br>{id: 'Primary_Staff__r.Name'},<br>{id: 'Additional_Staff__c'},<br>{id: 'Additional_Staff__r.Name'},<br>{id: 'Nurse_s_Notes__c'},<br>{id: 'Nurse_s_Additional_Notes__c'}<br>];<br>modelI.conditions = [<br>{<br>type: 'fieldvalue',<br>field: 'Id',<br>operator: '=',<br>value: interactionId,<br>encloseValueInQuotes: true<br>}<br>];<br>//Patient Case Model<br>var modelC = new skuid.model.Model();<br>modelC.objectName = 'Patient_Case__c';<br>modelC.id = 'ProgressNotePatientCase';<br>modelC.fields = [<br>{id: 'Id'},<br>{id: 'Patient__c'},<br>{id: 'Patient__r.Name'},<br>{id: 'LMP__c'},<br>{id: 'Patient_was_Referred_to_Hospital_ED__c'},<br>{id: 'Hospital_Referred_To__c'},<br>{id: 'Date_and_Time_of_Referral__c'},<br>{id: 'Symptoms__c'},<br>{id: 'Pregnancy_Confirmed__c'},<br>{id: 'Estimated_Due_Date_by_U_S__c'},<br>{id: 'Custom_Referrals__c'}<br>];<br>modelC.conditions = [<br>{<br>type: 'modelmerge',<br>field: 'Id',<br>operator: '=',<br>model: 'ProgressNoteInteraction',<br>mergeField: 'Patient_Case__c',<br>noValueBehavior: 'noquery',<br>encloseValueInQuotes: true<br>}<br>];<br>//Patient Model<br>var modelP = new skuid.model.Model();<br>modelP.objectName = 'Patient__c';<br>modelP.id = 'ProgressNotePatient';<br>modelP.fields = [<br>{id: 'Id'},<br>{id: 'Name'},<br>{id: 'Age__c'},<br>{id: 'Ethnicity__c'},<br>{id: 'Sex__c'},<br>{id: 'GPA__c'}<br>];<br>modelP.conditions = [<br>{<br>type: 'modelmerge',<br>field: 'Id',<br>operator: '=',<br>model: 'ProgressNotePatientCase',<br>mergeField: 'Patient__c',<br>noValueBehavior: 'noquery',<br>encloseValueInQuotes: true<br>}<br>];<br>dynamicModels.push(modelI, modelC, modelP);<br>},<br>buildSTDModel = function(){<br>var modelSTD = new skuid.model.Model();<br>modelSTD.objectName = 'STD_Test__c';<br>modelSTD.id = 'ProgressNoteSTD';<br>modelSTD.fields = [<br>{id: 'Id'},<br>{id: 'Patient_Case__c'},<br>{id: 'Patient_Case__r.Name'},<br>{id: 'STD__c'},<br>{id: 'Results__c'},<br>{id: 'STD_Treatment__c'},<br>{id: 'STD_Treatment__r.Name'},<br>{id: 'Treatment_Date__c'},<br>{id: 'Results_Reported_to_Patient__c'}<br>];<br>modelSTD.conditions = [<br>{<br>type: 'modelmerge',<br>field: 'Patient_Case__c',<br>operator: '=',<br>model: 'ProgressNotePatientCase',<br>mergeField: 'Id',<br>noValueBehavior: 'noquery',<br>encloseValueInQuotes: true<br>}<br>];<br>dynamicModels.push(modelSTD);<br>},<br>buildPRLModel = function(){<br>var modelPRL = new skuid.model.Model();<br>modelPRL.objectName = 'Patient_Case_Referral__c';<br>modelPRL.id = 'ProgressNotePRL';<br>modelPRL.fields = [<br>{id: 'Id'},<br>{id: 'Patient_Case_Id__c'},<br>{id: 'Patient_Case_Id__r.Name'},<br>{id: 'Referral_Id__c'},<br>{id: 'Referral_Id__r.Name'}<br>];<br>modelPRL.conditions = [<br>{<br>type: 'modelmerge',<br>field: 'Patient_Case_Id__c',<br>operator: '=',<br>model: 'ProgressNotePatientCase',<br>mergeField: 'Id',<br>noValueBehavior: 'noquery',<br>encloseValueInQuotes: true<br>}<br>];<br>dynamicModels.push(modelPRL);<br>},<br>buildNextAppointmentModel = function(){<br>var modelNA = new skuid.model.Model();<br>modelNA.objectName = 'Interaction__c';<br>modelNA.id = 'ProgressNoteNA';<br>modelNA.fields = [<br>{id: 'Id'},<br>{id: 'Patient_Case__c'},<br>{id: 'Patient_Case__r.Name'},<br>{id: 'Timeless_Date__c'}<br>];<br>modelNA.conditions = [<br>{<br>type: 'modelmerge',<br>field: 'Patient_Case__c',<br>operator: '=',<br>model: 'ProgressNotePatientCase',<br>mergeField: 'Id',<br>noValueBehavior: 'noquery',<br>encloseValueInQuotes: true<br>},<br>{<br>type: 'fieldvalue',<br>field: 'Interacion_Category__c',<br>operator: '=',<br>value: 'Appointment',<br>encloseValueInQuotes: true<br>},<br>{<br>type: 'fieldvalue',<br>field: 'Status__c',<br>operator: '=',<br>value: 'Scheduled',<br>encloseValueInQuotes: true<br>},<br>{<br>type: 'fieldvalue',<br>field: 'Date__c',<br>operator: 'gte',<br>value: 'TOMORROW',<br>encloseValueInQuotes: false<br>}<br>];<br>dynamicModels.push(modelNA);<br>},<br>loadDynamicModels = function() {<br>var notemodelDFD = new $.Deferred();<br>$.each(dynamicModels, function(){<br>this.initialize().register();<br>});<br>$.when(skuid.model.load(dynamicModels))<br>.done(function(){<br>notemodelDFD.resolve();<br>})<br>.fail(function(){<br>notemodelDFD.reject();<br>});<br>return notemodelDFD.promise();<br>};<br>//////////////////////////////////////////////<br>// Note Functions //<br>//////////////////////////////////////////////<br>var&nbsp;<br>dateAndPurpose = function(value){<br>value += rI.Timeless_Date__c + ' ' + rI.Interaction_Purpose__c + '. ';<br>},<br>patientInfo = function(value) {<br>value += rP.Age__c + 'y.o. ' + rP.Ethnicity__c + ' ' + (rP.Sex__c || 'female') +'. ';<br>value += rP.GPA__c + '. ';<br>value += 'LMP ' + rC.LMP__c +'. ';<br>return value;<br>},<br>emergencyReferral = function(value){<br>if (rC.Patient_was_Referred_to_Hospital_ED__c) {<br>value += 'Patient was referred to hospital ED ';<br>if (rC.Hospital_Referred_To__c) value += '(' + rC.Hospital_Referred_To__c + ') ';<br>var referraldatetime = $t.parseSFDateTime(rC.Date_and_Time_of_Referral__c);<br>value += 'on ' + $t.formatDate("m/d/yy", referraldatetime) + ' at ' + $t.formatTime("h:mm a", referraldatetime) + ' ';<br>value += 'with symptoms ' + rC.Symptoms__c + '. ';<br>}<br>return value;<br>},<br>ultrasoundInfo = function(value){<br>if (rI.U_S_Performed__c === "Yes") {<br> &nbsp; &nbsp;value += 'U/S Performed. ';<br> &nbsp; &nbsp;if (rI.Gestational_Age_US_Weeks__c) {<br> &nbsp; &nbsp;value += 'GA ' + rI.Gestational_Age_US_Weeks__c + 'w' + rI.Gestational_Age_US_Days__c + 'd. ';<br> &nbsp; &nbsp;}<br>if (rC.Pregnancy_Confirmed__c) value += 'Pregnancy confirmed. ';<br>if (rI.Baby_1_FHR__c) value += 'FHR ' + rI.Baby_1_FHR__c + '. ';<br>if (rC.Estimated_Due_Date_by_U_S__c) value += 'EDD ' + rC.Estimated_Due_Date_by_U_S__c + '. ';<br>}<br>return value;<br>},<br>stdTestTreat = function(value){<br>if (mSTD &amp;&amp; mSTD.data.length) {<br>value += 'Tested for ';<br>$.each(mSTD.data, function(i, row){<br>value += row.STD__c;<br>if(row.Results__c){<br>value += ' (' + row.Results__c + ')';<br>}<br>if(row.STD_Treatment__c){<br> &nbsp; &nbsp; &nbsp; &nbsp;value += ' treated with ' + row.STD_Treatment__r.Name + ' on ' + row.Treatment_Date__c;<br> &nbsp; &nbsp; }<br> &nbsp; &nbsp; value += ', ';<br>});<br>value = value.substring(0, value.length - 2) + '. ';<br>}<br>return value;<br>},<br>stdReportTreat = function(value){<br>if (mSTD &amp;&amp; mSTD.data.length) {<br> &nbsp; &nbsp;var reported = false;<br> &nbsp; value += 'Results for ';<br> &nbsp; $.each(mSTD.data, function(i, row){<br> &nbsp; &nbsp; &nbsp; value += row.STD__c;<br> &nbsp; &nbsp; &nbsp; if(row.Results__c) value += ' (' + row.Results__c + ')';<br> &nbsp; &nbsp; &nbsp; if(row.STD_Treatment__c) value += ' treated with ' + row.STD_Treatment__r.Name + ' on ' + row.Treatment_Date__c;<br> &nbsp; &nbsp; &nbsp; if(reported === false &amp;&amp; row.Results_Reported_to_Patient__c) reported = true;<br> &nbsp; &nbsp; &nbsp; value += ', ';<br>});<br>value = value.substring(0, value.length - 2);<br>if (reported) value += ' reported to patient';<br>value += '. ';<br>}<br>return value;<br>},<br>prlReferrals = function(value){<br>if (mPRL &amp;&amp; mPRL.data.length) {<br>value += 'Patient was given referral information for ';<br>$.each(mPRL.data, function(i,row) {<br>value += row.Referral_Id__r.Name + ', ';<br>});<br>value = value.substring(0, value.length - 2) + '. ';<br>}<br>if (rC.Custom_Referrals__c) value += 'Also referred to ' + rC.Custom_Referrals__c + '. ';<br>return value;<br>},<br>nextAppointment = function(value){<br>if (rI.Return_Appointment_Required__c &amp;&amp; rNA) {<br> &nbsp; &nbsp;value += 'Return appointment for ' + rI.Return_Appointment_Details__c + ' scheduled on ' + rNA.Timeless_Date__c + '. ';<br>}<br>return value;<br>},<br>pregnancyIntention = function(value){<br>value += 'Pregnancy Intention: ' + rI.Interaction_Intention__c + '. ';<br>return value;<br>},<br>closingNotes = function(value){<br>if (rI.Closing_Notes__c) value += rI.Closing_Notes__c + '. ';<br>return value;<br>},<br>userName = function(value){<br>value += skuid.utils.userInfo.name + ', RN.';<br>return value;<br>},<br>nurseStaffName = function(value){<br>value += rI.Primary_Staff__r.Name + '. ';<br>return value;<br>},<br>advocateName = function(value){<br>value += rI.Additional_Staff__r.Name + '. ';<br>};<br>//////////////////////////////////////////////<br>// Note Generator Snippets //<br>//////////////////////////////////////////////<br>var snippets = {<br>'generateInitialPregnancyNote':function(){<br>var id = skuid.page.params.id;<br>buildMajorNotesModels(id);<br>buildSTDModel();<br>buildPRLModel();<br>buildNextAppointmentModel();<br>$.when(loadDynamicModels()).then(function(){<br>var noteModel = skuid.$M('ProgressNoteInteraction'),<br>noteRow = noteModel.getFirstRow(),<br>note = noteModel.getFieldValue(noteRow, 'Nurse_s_Notes__c'),<br>advocateNote = noteModel.getFieldValue(noteRow, 'Nurse_s_Additional_Notes__c');<br>note = dateAndPurpose(note);<br>note = patientInfo(note);<br>note = emergencyReferral(note);<br>note = ultrasoundInfo(note);<br>note = stdTestTreat(note);<br>note = (advocateAssisted) ? note : prlReferrals(note);<br>note = closingNotes(note);<br>note = pregnancyIntention(note);<br>note = (roleAccounts) ? nurseStaffName(note) : userName(note);<br>noteModel.updateRow(noteRow,{'Nurse_s_Notes__c': note});<br>if (advocateAssisted) {<br>advocateNote = dateAndPurpose(advocateNote);<br>advocateNote = patientInfo(advocateNote);<br>advocateNote = prlReferrals(advocateNote);<br>advocateNote = closingNotes(advocateNote);<br>advocateNote = pregnancyIntention(advocateNote);<br>advocateNote = (roleAccounts) ? advocateName(advocateNote) : userName(advocateNote);<br>noteModel.updateRow(noteRow, {'Nurse_s_Additional_Notes__c': advocateNote});<br>}<br>});<br>},<br>'generateReturnPregnancyNote':function(){<br>var id = skuid.$M('Interaction').getFirstRow().Id;<br>buildMajorNotesModels(id);<br>buildSTDModel();<br>buildNextAppointmentModel();<br>$.when(loadDynamicModels()).then(function(){<br>var noteModel = skuid.$M('ProgressNoteInteraction'),<br>noteRow = noteModel.getFirstRow(),<br>note = noteModel.getFieldValue(noteRow, 'Nurse_s_Notes__c'),<br>advocateNote = noteModel.getFieldValue(noteRow, 'Nurse_s_Additional_Notes__c');<br>note = dateAndPurpose(note);<br>note = patientInfo(note);<br>note = emergencyReferral(note);<br>note = ultrasoundInfo(note);<br>note = stdReportTreat(note);<br>note = closingNotes(note);<br>note = pregnancyIntention(note);<br>note = (roleAccounts) ? nurseStaffName(note) : userName(note);<br>noteModel.updateRow(noteRow,{'Nurse_s_Notes__c': note});<br>if (advocateAssisted) {<br>advocateNote = dateAndPurpose(advocateNote);<br>advocateNote = patientInfo(advocateNote);<br>advocateNote = closingNotes(advocateNote);<br>advocateNote = pregnancyIntention(advocateNote);<br>advocateNote = (roleAccounts) ? advocateName(advocateNote) : userName(advocateNote);<br>noteModel.updateRow(noteRow, {'Nurse_s_Additional_Notes__c': advocateNote});<br>}<br>});<br>}<br>};<br>//////////////////////////////////////////////<br>// Register Snippets //<br>//////////////////////////////////////////////<br>$.each(snippets,function(name,func){ skuid.snippet.registerSnippet(name,func); });<br>})(skuid);

Hey Matt - Lots of stuff going on here.  The error you are getting is occurring server side in the Skuid code.  Have you tried commenting out models all the way down to just 1, running the snippet, then adding in the 2nd model, running the snippet, etc.?  This might provide a means to isolate which model could be causing the issue.  Also, could you run the test and expand the ‘data’ attribute of the exception and post another screenshot?


Thanks, Barry.

I posted the contents of the ‘data’ attribute in the error in the original post. It’s that long json string which appears to be the model definitions.

I will try to isolate as you indicated. Thanks!


Ah, got it, didn’t realize that was “that” data, thanks!


Following Barry’s instructions, I’ve isolated the problematic model to the following. The model will initialize and register, but when I call .load(), I get the VF remoting error.


buildNextAppointmentModel = function(){ var modelNA = new skuid.model.Model();<br>modelNA.objectName = 'Interaction__c';<br>modelNA.id = 'ProgressNoteNA';<br>modelNA.fields = s<br>{id: 'Id'},<br>{id: 'Patient_Case__c'},<br>{id: 'Patient_Case__r.Name'},<br>{id: 'Timeless_Date__c'}<br>];<br>modelNA.conditions = s<br>{<br>type: 'modelmerge',<br>field: 'Patient_Case__c',<br>operator: '=',<br>model: 'ProgressNotePatientCase',<br>mergeField: 'Id',<br>noValueBehavior: 'noquery',<br>encloseValueInQuotes: true<br>},<br>{<br>type: 'fieldvalue',<br>field: 'Interacion_Category__c',<br>operator: '=',<br>value: 'Appointment',<br>encloseValueInQuotes: true<br>},<br>{<br>type: 'fieldvalue',<br>field: 'Status__c',<br>operator: '=',<br>value: 'Scheduled',<br>encloseValueInQuotes: true<br>},<br>{<br>type: 'fieldvalue',<br>field: 'Date__c',<br>operator: 'gte',<br>value: 'TOMORROW',<br>encloseValueInQuotes: false<br>}<br>];


When that is the only model I’m loading, here’s the ‘data’ portion of the error:


d&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"ProgressNoteNA",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"preventUnloadIfUnsavedChanges":true,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"isProcessing":1,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"calloutIterator":1,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"lastSuccessfulCallout":0,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"objectName":"Interaction__c",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"isAggregate":false,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"isInitialized":true,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"fields":s&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Id"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Patient_Case__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Patient_Case__r.Name"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"id":"Timeless_Date__c"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;],<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"conditions":c&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"type":"modelmerge",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"field":"Patient_Case__c",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"operator":"=",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"model":"ProgressNotePatientCase",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"mergeField":"Id",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"noValueBehavior":"noquery",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"encloseValueInQuotes":true<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"type":"fieldvalue",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"field":"Interacion_Category__c",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"operator":"=",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"value":"Appointment",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"encloseValueInQuotes":true<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"type":"fieldvalue",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"field":"Status__c",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"operator":"=",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"value":"Scheduled",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"encloseValueInQuotes":true<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<a target="_blank" rel="nofollow"></a>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"type":"fieldvalue",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"field":"Date__c",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"operator":"gte",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"value":"TOMORROW",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"encloseValueInQuotes":false<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]<br>&nbsp;&nbsp;&nbsp;}<br>]

Hey Matt -

This is great, really reduces the surface area of what to focus on for troubleshooting.

I did notice that there is a model merge condition in there and since this is the only model that is being “loaded”, the other model won’t be there to merge in.

Next steps - Can you reduce the conditions down to 0, then try the load, then add 1 in, load, add another, load, etc.  When doing this, save the model merge condition to the last one you add back in.


Found it!

Typo in the ‘field’ property of the second condition. 
Interaction_Category__c, not Interacion_Category__c.

Seems like there could be a clearer error message for something like this? Like, “Hey, we couldn’t find a field by the name specified in your condition.”


Barry-- As always, thanks so much for your help!


Awesome, glad you found it!

As for the error messages, in general, there is definitely room for improvement throughout Skuid on providing errors message and/or improving error messages.  That said, it’s a delicate balance for some things such as this one.  In order to provide a “We didn’t find this field” type of message, Skuid would have to check each field in every model and every condition, etc. for whether or not it exists.  These types of conditional checks, while lightweight by themselves (it would likely require an SObjectDescribe call as well), really add up across an entire page full of models/fields/conditions.  In short, providing a more meaningful error message in this case would result in page becoming slower because of the conditional check overhead.

I think one way to provide some help on things like this is to add a way to run a page in “debug mode” or something along those lines.  When in “debug” mode, all the extra checks would be performed.  Additionally, when a page loads there is some level of checking that is performed against the XML (we’ve all seen the “This page has # problems” :)).  Currently, that approach is somewhat limited (e.g. it checks models, etc.).  Expanding the scope to check all configuration of a page (either on PageLoad in the builder or via a “ValidatePage” button would be helpful).


You’re welcome Matt, glad you were able to get it sorted!


Skuid… any progress on some kind of ‘debug mode’ ?

I just ran into this error message again, and it took quite a bit of time to identify the actual error.


Thanks to both of you! The methodology has helped with recent challenges.


Reply