I installed Adobe Document Cloud into Salesforce in the standard process and then linked the Agreements object with a custom object.
I setup all the merge fields, including:
- linking the Merge Mappings with the Agreement Template
- creating a MapData into Agreement Fields link with the Agreement Template
- Also created a custom Detail Page Button for generating the agreement with merged fields
The PDF I created is about 604MB in size with form fields.
After repeated QA'ing, I keep getting this error in a new window when I click the custom button to generate the agreement:
Update failed. First exception on row 0 with id a0qU000000GIrHWIA1; first error: STRING_TOO_LONG, Error Message: data value too large: Didn't understand relationship 'media_placement__c' in field path. If you are attempting to use a custom relationship, be sure to append the '__r' after the custom relationship name. Please reference your WSDL or the describe call for the appropriate names. (max length=255): [echosign_dev1__ErrorMessage__c]
Here's the apex code that I inserted into the text space:
/apex/echosign_dev1__AgreementTemplateProcess?masterid={!Media_Placement__c.Id}&templateId=a0cU000000801Jh
I double checked to make sure that the ID was the Agreement Template's. Noticed other SF devs are having similar issues with other projects.
How do I generate a merge mapped agreement and resolve this error?