I’m encountering this error when running a snippet that creates several dynamic models.
Here’s the console error:
And here’s the data for the error:
s <a target="_blank" rel="nofollow"></a> <br> { <a target="_blank" rel="nofollow"></a> <br> "id":"ProgressNoteInteraction",<br> "preventUnloadIfUnsavedChanges":true,<br> "isProcessing":1,<br> "calloutIterator":1,<br> "lastSuccessfulCallout":0,<br> "objectName":"Interaction__c",<br> "isAggregate":false,<br> "isInitialized":true,<br> "fields":e <a target="_blank" rel="nofollow"></a> <br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Id"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Timeless_Date__c"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Interaction_Purpose__c"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Patient_Case__c"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Patient_Case__r.Name"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"U_S_Performed__c"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Gestational_Age_US_Weeks__c"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Gestational_Age_US_Days__c"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Baby_1_FHR__c"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Return_Appointment_Required__c"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Return_Appointment_Details__c"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Interaction_Intention__c"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Closing_Notes__c"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Primary_Staff__c"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Primary_Staff__r.Name"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Additional_Staff__c"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Additional_Staff__r.Name"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Nurse_s_Notes__c"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Nurse_s_Additional_Notes__c"<br> }<br> ],<br> "conditions":i <a target="_blank" rel="nofollow"></a> <br> { <a target="_blank" rel="nofollow"></a> <br> "type":"fieldvalue",<br> "field":"Id",<br> "operator":"=",<br> "value":"a0UF000000gdRLsMAM",<br> "encloseValueInQuotes":true<br> }<br> ]<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"ProgressNotePatientCase",<br> "preventUnloadIfUnsavedChanges":true,<br> "isProcessing":1,<br> "calloutIterator":1,<br> "lastSuccessfulCallout":0,<br> "objectName":"Patient_Case__c",<br> "isAggregate":false,<br> "isInitialized":true,<br> "fields":e <a target="_blank" rel="nofollow"></a> <br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Id"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Patient__c"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Patient__r.Name"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"LMP__c"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Patient_was_Referred_to_Hospital_ED__c"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Hospital_Referred_To__c"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Date_and_Time_of_Referral__c"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Symptoms__c"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Pregnancy_Confirmed__c"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Estimated_Due_Date_by_U_S__c"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Custom_Referrals__c"<br> }<br> ],<br> "conditions":i <a target="_blank" rel="nofollow"></a> <br> { <a target="_blank" rel="nofollow"></a> <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> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"ProgressNotePatient",<br> "preventUnloadIfUnsavedChanges":true,<br> "isProcessing":1,<br> "calloutIterator":1,<br> "lastSuccessfulCallout":0,<br> "objectName":"Patient__c",<br> "isAggregate":false,<br> "isInitialized":true,<br> "fields":e <a target="_blank" rel="nofollow"></a> <br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Id"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Name"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Age__c"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Ethnicity__c"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Sex__c"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"GPA__c"<br> }<br> ],<br> "conditions":i <a target="_blank" rel="nofollow"></a> <br> { <a target="_blank" rel="nofollow"></a> <br> "type":"modelmerge",<br> "field":"Id",<br> "operator":"=",<br> "model":"ProgressNotePatientCase",<br> "mergeField":"Patient__c",<br> "noValueBehavior":"noquery",<br> "encloseValueInQuotes":true<br> }<br> ]<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"ProgressNoteSTD",<br> "preventUnloadIfUnsavedChanges":true,<br> "isProcessing":1,<br> "calloutIterator":1,<br> "lastSuccessfulCallout":0,<br> "objectName":"STD_Test__c",<br> "isAggregate":false,<br> "isInitialized":true,<br> "fields":e <a target="_blank" rel="nofollow"></a> <br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Id"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Patient_Case__c"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Patient_Case__r.Name"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"STD__c"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Results__c"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"STD_Treatment__c"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"STD_Treatment__r.Name"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Treatment_Date__c"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Results_Reported_to_Patient__c"<br> }<br> ],<br> "conditions":i <a target="_blank" rel="nofollow"></a> <br> { <a target="_blank" rel="nofollow"></a> <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> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"ProgressNotePRL",<br> "preventUnloadIfUnsavedChanges":true,<br> "isProcessing":1,<br> "calloutIterator":1,<br> "lastSuccessfulCallout":0,<br> "objectName":"Patient_Case_Referral__c",<br> "isAggregate":false,<br> "isInitialized":true,<br> "fields":e <a target="_blank" rel="nofollow"></a> <br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Id"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Patient_Case_Id__c"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Patient_Case_Id__r.Name"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Referral_Id__c"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Referral_Id__r.Name"<br> }<br> ],<br> "conditions":i <a target="_blank" rel="nofollow"></a> <br> { <a target="_blank" rel="nofollow"></a> <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> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"ProgressNoteNA",<br> "preventUnloadIfUnsavedChanges":true,<br> "isProcessing":1,<br> "calloutIterator":1,<br> "lastSuccessfulCallout":0,<br> "objectName":"Interaction__c",<br> "isAggregate":false,<br> "isInitialized":true,<br> "fields":e <a target="_blank" rel="nofollow"></a> <br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Id"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Patient_Case__c"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Patient_Case__r.Name"<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "id":"Timeless_Date__c"<br> }<br> ],<br> "conditions":i <a target="_blank" rel="nofollow"></a> <br> { <a target="_blank" rel="nofollow"></a> <br> "type":"modelmerge",<br> "field":"Patient_Case__c",<br> "operator":"=",<br> "model":"ProgressNotePatientCase",<br> "mergeField":"Id",<br> "noValueBehavior":"noquery",<br> "encloseValueInQuotes":true<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "type":"fieldvalue",<br> "field":"Interacion_Category__c",<br> "operator":"=",<br> "value":"Appointment",<br> "encloseValueInQuotes":true<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "type":"fieldvalue",<br> "field":"Status__c",<br> "operator":"=",<br> "value":"Scheduled",<br> "encloseValueInQuotes":true<br> },<br> { <a target="_blank" rel="nofollow"></a> <br> "type":"fieldvalue",<br> "field":"Date__c",<br> "operator":"gte",<br> "value":"TOMORROW",<br> "encloseValueInQuotes":false<br> }<br> ]<br> }<br>]
HELP!?!