Question
AdobeSignPlugins.AgreementCreatePlugin error when creating new Agreement from the Opportunity
Hello Members,
We are using Adobe Sign in our Dynamics 365 online instance. When we try to create an adobe agreement from the opportunity screen we are receving below error message. The error shows that one of the AdobeSign Plugins in failing. We have configured the agreement template correctly but not sure why this error is coming. Agreement creation used to work before. Please help!

Exception Message: Object reference not set to an instance of an object.
ErrorCode: -2147220891
HexErrorCode: 0x80040265
ErrorDetails:
OperationStatus: 0
SubErrorCode: -2146233088
Plugin:
ExceptionFromPluginExecute: AdobeSignPlugins.AgreementCreatePlugin
ExceptionRetriable: False
ExceptionSource: PluginExecution
OriginalException: PluginExecution
PluginTrace: 04/23/2022 12:25:52.165 : Starting Agreement Create Plugin.
adobe_identityverification : Microsoft.Xrm.Sdk.OptionSetValue
adobe_waitingforsendersignature : False
adobe_missingtemplaterecipient : False
adobe_addpostsignredirecturl : False
adobe_templateid : {957228AF-7487-EB11-A812-000D3A593BE5}
adobe_ispostaddedtoparententity : False
adobe_signingorder : True
adobe_creationtype : opportunity
modifiedon : 4/23/2022 12:25:51 PM
owninguser : Microsoft.Xrm.Sdk.EntityReference
ownerid : Microsoft.Xrm.Sdk.EntityReference
adobe_parentopportunityid : Microsoft.Xrm.Sdk.EntityReference
adobe_add_recipient_from_parent_entity : True
adobe_creationdata : {B9FAA153-7BC2-EC11-983E-000D3A374186}
adobe_sendfromlibrarycheckboxvalue : False
adobe_sendersignsonly : False
adobe_sendersigning : False
adobe_useragent : MSDynamics;9.5.8.0;Online;Chrome/100.0.4896.127;Windows/10.0;Web
adobe_automaticreminder : Microsoft.Xrm.Sdk.OptionSetValue
adobe_isattachmentadded : False
adobe_missingtemplatedocument : False
adobe_parentaccountid : Microsoft.Xrm.Sdk.EntityReference
statuscode : Microsoft.Xrm.Sdk.OptionSetValue
createdon : 4/23/2022 12:25:51 PM
adobe_agreementexpires : False
adobe_agreementopportunitylookup : Microsoft.Xrm.Sdk.EntityReference
adobe_isrecipientadded : False
adobe_readerroleonly : False
adobe_sendersigningorder : False
adobe_isquickcreate : True
adobe_signaturetype : True
adobe_name : Masala & Co Restaurant
adobe_sendersigningoptions : Microsoft.Xrm.Sdk.OptionSetValue
adobe_iscombinedpdfattached : False
modifiedby : Microsoft.Xrm.Sdk.EntityReference
modifiedbyyominame : Azeem Nawaz
createdby : Microsoft.Xrm.Sdk.EntityReference
createdbyyominame : Azeem Nawaz
adobe_hostsigning : False
owneridyominame : Azeem Nawaz
adobe_reviewsigningorder : False
statecode : Microsoft.Xrm.Sdk.OptionSetValue
owningbusinessunit : Microsoft.Xrm.Sdk.EntityReference
adobe_securesignedpdf : False
adobe_usermessagequickcreateform : Agreement will be automatically sent and you will need to sign it first from the agreement page.
adobe_issignedpdfattached : False
adobe_isaudittrailattached : False
adobe_oquickcreateentityptionset : Microsoft.Xrm.Sdk.OptionSetValue
adobe_useauthoring : False
adobe_sendfromlibrary : False
adobe_quickcreatelookuptemplatelist : Microsoft.Xrm.Sdk.EntityReference
04/23/2022 12:25:53.103 : Esign manager initiated.
04/23/2022 12:25:53.119 : Starting ManageUserProvisining method.
04/23/2022 12:25:53.119 : auto-provison users = true
04/23/2022 12:25:53.119 : Calling user email is : <<removed>>.
04/23/2022 12:25:53.509 : User has already been provisioned earlier.
04/23/2022 12:25:53.509 : Ending ManageUserProvisining method.
04/23/2022 12:25:53.525 : Agreement is started from crm entity.
04/23/2022 12:25:53.556 : Starting parent entity to agreement adding.
04/23/2022 12:25:53.556 : Parent entity is opportunity.
04/23/2022 12:25:53.681 : Agreement is updated with parent entity.
opportunity
04/23/2022 12:25:53.759 : agreement={"LogicalName":"adobe_agreement","Id":"8dc98680-00c3-ec11-a7b6-0022480a92a6","Attributes":[{"Key":"adobe_sendersigningorder","Value":false},{"Key":"statecode","Value":{"Value":0}},{"Key":"adobe_agreementexpires","Value":false},{"Key":"adobe_isaudittrailattached","Value":false},{"Key":"adobe_add_recipient_from_parent_entity","Value":true},{"Key":"adobe_waitingforsendersignature","Value":false},{"Key":"adobe_parentaccountid","Value":{"Id":"b8faa153-7bc2-ec11-983e-000d3a374186","LogicalName":"account","Name":null,"KeyAttributes":[],"RowVersion":null}},{"Key":"adobe_usermessagequickcreateform","Value":"Agreement will be automatically sent and you will need to sign it first from the agreement page.\n"},{"Key":"createdon","Value":"2022-04-23T12:25:51Z"},{"Key":"adobe_readerroleonly","Value":false},{"Key":"ownerid","Value":{"Id":"42f25996-2667-ec11-8f8f-6045bd009e70","LogicalName":"systemuser","Name":null,"KeyAttributes":[],"RowVersion":null}},{"Key":"modifiedon","Value":"2022-04-23T12:25:51Z"},{"Key":"adobe_signingorder","Value":true},{"Key":"adobe_useauthoring","Value":false},{"Key":"adobe_reviewsigningorder","Value":false},{"Key":"adobe_iscombinedpdfattached","Value":false},{"Key":"adobe_oquickcreateentityptionset","Value":{"Value":648770000}},{"Key":"adobe_agreementopportunitylookup","Value":{"Id":"b9faa153-7bc2-ec11-983e-000d3a374186","LogicalName":"opportunity","Name":null,"KeyAttributes":[],"RowVersion":null}},{"Key":"adobe_hostsigning","Value":false},{"Key":"adobe_quickcreatelookuptemplatelist","Value":{"Id":"957228af-7487-eb11-a812-000d3a593be5","LogicalName":"adobe_agreementtemplate","Name":null,"KeyAttributes":[],"RowVersion":null}},{"Key":"adobe_creationtype","Value":"opportunity"},{"Key":"adobe_name","Value":"Masala & Co Restaurant"},{"Key":"modifiedby","Value":{"Id":"42f25996-2667-ec11-8f8f-6045bd009e70","LogicalName":"systemuser","Name":null,"KeyAttributes":[],"RowVersion":null}},{"Key":"adobe_isattachmentadded","Value":false},{"Key":"adobe_addpostsignredirecturl","Value":false},{"Key":"statuscode","Value":{"Value":1}},{"Key":"adobe_ispostaddedtoparententity","Value":false},{"Key":"modifiedonbehalfby","Value":null},{"Key":"adobe_missingtemplaterecipient","Value":false},{"Key":"adobe_sendersignsonly","Value":false},{"Key":"adobe_creationdata","Value":"{B9FAA153-7BC2-EC11-983E-000D3A374186}"},{"Key":"createdby","Value":{"Id":"42f25996-2667-ec11-8f8f-6045bd009e70","LogicalName":"systemuser","Name":null,"KeyAttributes":[],"RowVersion":null}},{"Key":"adobe_useragent","Value":"MSDynamics;9.5.8.0;Online;Chrome/100.0.4896.127;Windows/10.0;Web"},{"Key":"adobe_sendfromlibrarycheckboxvalue","Value":false},{"Key":"adobe_missingtemplatedocument","Value":false},{"Key":"adobe_isrecipientadded","Value":false},{"Key":"adobe_sendersigning","Value":false},{"Key":"adobe_automaticreminder","Value":{"Value":648770000}},{"Key":"adobe_securesignedpdf","Value":false},{"Key":"adobe_sendersigningoptions","Value":{"Value":648770000}},{"Key":"adobe_issignedpdfattached","Value":false},{"Key":"owningbusinessunit","Value":{"Id":"4baf9bc6-a042-eb11-bf68-000d3a31e8be","LogicalName":"businessunit","Name":null,"KeyAttributes":[],"RowVersion":null}},{"Key":"adobe_agreementid","Value":"8dc98680-00c3-ec11-a7b6-0022480a92a6"},{"Key":"owninguser","Value":{"Id":"42f25996-2667-ec11-8f8f-6045bd009e70","LogicalName":"systemuser","Name":null,"KeyAttributes":[],"RowVersion":null}},{"Key":"adobe_sendfromlibrary","Value":false},{"Key":"adobe_isquickcreate","Value":true},{"Key":"adobe_signaturetype","Value":true},{"Key":"adobe_parentopportunityid","Value":{"Id":"b9faa153-7bc2-ec11-983e-000d3a374186","LogicalName":"opportunity","Name":null,"KeyAttributes":[],"RowVersion":null}},{"Key":"adobe_templateid","Value":"{957228AF-7487-EB11-A812-000D3A593BE5}"},{"Key":"adobe_identityverification","Value":{"Value":648770003}}],"EntityState":null,"FormattedValues":[{"Key":"adobe_sendersigningorder","Value":"I sign first"},{"Key":"statecode","Value":"Active"},{"Key":"adobe_agreementexpires","Value":"No"},{"Key":"adobe_isaudittrailattached","Value":"No"},{"Key":"adobe_add_recipient_from_parent_entity","Value":"Yes"},{"Key":"adobe_waitingforsendersignature","Value":"No"},{"Key":"createdon","Value":"2022-04-23T08:25:51-04:00"},{"Key":"adobe_readerroleonly","Value":"No"},{"Key":"modifiedon","Value":"2022-04-23T08:25:51-04:00"},{"Key":"adobe_signingorder","Value":"Order Entered"},{"Key":"adobe_useauthoring","Value":"No"},{"Key":"adobe_reviewsigningorder","Value":"No"},{"Key":"adobe_iscombinedpdfattached","Value":"No"},{"Key":"adobe_oquickcreateentityptionset","Value":"Opportunity"},{"Key":"adobe_hostsigning","Value":"No"},{"Key":"adobe_isattachmentadded","Value":"No"},{"Key":"adobe_addpostsignredirecturl","Value":"No"},{"Key":"statuscode","Value":"Active"},{"Key":"adobe_ispostaddedtoparententity","Value":"No"},{"Key":"adobe_missingtemplaterecipient","Value":"No"},{"Key":"adobe_sendersignsonly","Value":"No"},{"Key":"adobe_sendfromlibrarycheckboxvalue","Value":"No"},{"Key":"adobe_missingtemplatedocument","Value":"No"},{"Key":"adobe_isrecipientadded","Value":"No"},{"Key":"adobe_sendersigning","Value":"No"},{"Key":"adobe_automaticreminder","Value":"Never"},{"Key":"adobe_securesignedpdf","Value":"No"},{"Key":"adobe_sendersigningoptions","Value":"I sign first"},{"Key":"adobe_issignedpdfattached","Value":"No"},{"Key":"adobe_sendfromlibrary","Value":"No"},{"Key":"adobe_isquickcreate","Value":"Yes"},{"Key":"adobe_signaturetype","Value":"Electronic"},{"Key":"adobe_identityverification","Value":"EMAIL"}],"RelatedEntities":[],"RowVersion":null,"KeyAttributes":[]}
04/23/2022 12:25:53.947 : Applying template.
04/23/2022 12:25:54.009 : Apply agreement template method started.
04/23/2022 12:25:54.009 : After getting template.
HelpLink: http://go.microsoft.com/fwlink/?LinkID=398563&error=Microsoft.Crm.CrmException%3a80040265&client=platform
TraceText:
[AdobeSignPlugins: AdobeSignPlugins.AgreementCreatePlugin]
[50e73f09-fc03-e611-80c5-00505615427d: AdobeSignPlugins.AgreementCreatePlugin: Create of adobe_agreement]
04/23/2022 12:25:52.165 : Starting Agreement Create Plugin.
adobe_identityverification : Microsoft.Xrm.Sdk.OptionSetValue
adobe_waitingforsendersignature : False
adobe_missingtemplaterecipient : False
adobe_addpostsignredirecturl : False
adobe_templateid : {957228AF-7487-EB11-A812-000D3A593BE5}
adobe_ispostaddedtoparententity : False
adobe_signingorder : True
adobe_creationtype : opportunity
modifiedon : 4/23/2022 12:25:51 PM
owninguser : Microsoft.Xrm.Sdk.EntityReference
ownerid : Microsoft.Xrm.Sdk.EntityReference
adobe_parentopportunityid : Microsoft.Xrm.Sdk.EntityReference
adobe_add_recipient_from_parent_entity : True
adobe_creationdata : {B9FAA153-7BC2-EC11-983E-000D3A374186}
adobe_sendfromlibrarycheckboxvalue : False
adobe_sendersignsonly : False
adobe_sendersigning : False
adobe_useragent : MSDynamics;9.5.8.0;Online;Chrome/100.0.4896.127;Windows/10.0;Web
adobe_automaticreminder : Microsoft.Xrm.Sdk.OptionSetValue
adobe_isattachmentadded : False
adobe_missingtemplatedocument : False
adobe_parentaccountid : Microsoft.Xrm.Sdk.EntityReference
statuscode : Microsoft.Xrm.Sdk.OptionSetValue
createdon : 4/23/2022 12:25:51 PM
adobe_agreementexpires : False
adobe_agreementopportunitylookup : Microsoft.Xrm.Sdk.EntityReference
adobe_isrecipientadded : False
adobe_readerroleonly : False
adobe_sendersigningorder : False
adobe_isquickcreate : True
adobe_signaturetype : True
adobe_name : Masala & Co Restaurant
adobe_sendersigningoptions : Microsoft.Xrm.Sdk.OptionSetValue
adobe_iscombinedpdfattached : False
modifiedby : Microsoft.Xrm.Sdk.EntityReference
modifiedbyyominame : Azeem Nawaz
createdby : Microsoft.Xrm.Sdk.EntityReference
createdbyyominame : Azeem Nawaz
adobe_hostsigning : False
owneridyominame : Azeem Nawaz
adobe_reviewsigningorder : False
statecode : Microsoft.Xrm.Sdk.OptionSetValue
owningbusinessunit : Microsoft.Xrm.Sdk.EntityReference
adobe_securesignedpdf : False
adobe_usermessagequickcreateform : Agreement will be automatically sent and you will need to sign it first from the agreement page.
adobe_issignedpdfattached : False
adobe_isaudittrailattached : False
adobe_oquickcreateentityptionset : Microsoft.Xrm.Sdk.OptionSetValue
adobe_useauthoring : False
adobe_sendfromlibrary : False
adobe_quickcreatelookuptemplatelist : Microsoft.Xrm.Sdk.EntityReference
04/23/2022 12:25:53.103 : Esign manager initiated.
04/23/2022 12:25:53.119 : Starting ManageUserProvisining method.
04/23/2022 12:25:53.119 : auto-provison users = true
04/23/2022 12:25:53.119 : Calling user email is : <<removed>>.
04/23/2022 12:25:53.509 : User has already been provisioned earlier.
04/23/2022 12:25:53.509 : Ending ManageUserProvisining method.
04/23/2022 12:25:53.525 : Agreement is started from crm entity.
04/23/2022 12:25:53.556 : Starting parent entity to agreement adding.
04/23/2022 12:25:53.556 : Parent entity is opportunity.
04/23/2022 12:25:53.681 : Agreement is updated with parent entity.
opportunity
04/23/2022 12:25:53.759 : agreement={"LogicalName":"adobe_agreement","Id":"8dc98680-00c3-ec11-a7b6-0022480a92a6","Attributes":[{"Key":"adobe_sendersigningorder","Value":false},{"Key":"statecode","Value":{"Value":0}},{"Key":"adobe_agreementexpires","Value":false},{"Key":"adobe_isaudittrailattached","Value":false},{"Key":"adobe_add_recipient_from_parent_entity","Value":true},{"Key":"adobe_waitingforsendersignature","Value":false},{"Key":"adobe_parentaccountid","Value":{"Id":"b8faa153-7bc2-ec11-983e-000d3a374186","LogicalName":"account","Name":null,"KeyAttributes":[],"RowVersion":null}},{"Key":"adobe_usermessagequickcreateform","Value":"Agreement will be automatically sent and you will need to sign it first from the agreement page.\n"},{"Key":"createdon","Value":"2022-04-23T12:25:51Z"},{"Key":"adobe_readerroleonly","Value":false},{"Key":"ownerid","Value":{"Id":"42f25996-2667-ec11-8f8f-6045bd009e70","LogicalName":"systemuser","Name":null,"KeyAttributes":[],"RowVersion":null}},{"Key":"modifiedon","Value":"2022-04-23T12:25:51Z"},{"Key":"adobe_signingorder","Value":true},{"Key":"adobe_useauthoring","Value":false},{"Key":"adobe_reviewsigningorder","Value":false},{"Key":"adobe_iscombinedpdfattached","Value":false},{"Key":"adobe_oquickcreateentityptionset","Value":{"Value":648770000}},{"Key":"adobe_agreementopportunitylookup","Value":{"Id":"b9faa153-7bc2-ec11-983e-000d3a374186","LogicalName":"opportunity","Name":null,"KeyAttributes":[],"RowVersion":null}},{"Key":"adobe_hostsigning","Value":false},{"Key":"adobe_quickcreatelookuptemplatelist","Value":{"Id":"957228af-7487-eb11-a812-000d3a593be5","LogicalName":"adobe_agreementtemplate","Name":null,"KeyAttributes":[],"RowVersion":null}},{"Key":"adobe_creationtype","Value":"opportunity"},{"Key":"adobe_name","Value":"Masala & Co Restaurant"},{"Key":"modifiedby","Value":{"Id":"42f25996-2667-ec11-8f8f-6045bd009e70","LogicalName":"systemuser","Name":null,"KeyAttributes":[],"RowVersion":null}},{"Key":"adobe_isattachmentadded","Value":false},{"Key":"adobe_addpostsignredirecturl","Value":false},{"Key":"statuscode","Value":{"Value":1}},{"Key":"adobe_ispostaddedtoparententity","Value":false},{"Key":"modifiedonbehalfby","Value":null},{"Key":"adobe_missingtemplaterecipient","Value":false},{"Key":"adobe_sendersignsonly","Value":false},{"Key":"adobe_creationdata","Value":"{B9FAA153-7BC2-EC11-983E-000D3A374186}"},{"Key":"createdby","Value":{"Id":"42f25996-2667-ec11-8f8f-6045bd009e70","LogicalName":"systemuser","Name":null,"KeyAttributes":[],"RowVersion":null}},{"Key":"adobe_useragent","Value":"MSDynamics;9.5.8.0;Online;Chrome/100.0.4896.127;Windows/10.0;Web"},{"Key":"adobe_sendfromlibrarycheckboxvalue","Value":false},{"Key":"adobe_missingtemplatedocument","Value":false},{"Key":"adobe_isrecipientadded","Value":false},{"Key":"adobe_sendersigning","Value":false},{"Key":"adobe_automaticreminder","Value":{"Value":648770000}},{"Key":"adobe_securesignedpdf","Value":false},{"Key":"adobe_sendersigningoptions","Value":{"Value":648770000}},{"Key":"adobe_issignedpdfattached","Value":false},{"Key":"owningbusinessunit","Value":{"Id":"4baf9bc6-a042-eb11-bf68-000d3a31e8be","LogicalName":"businessunit","Name":null,"KeyAttributes":[],"RowVersion":null}},{"Key":"adobe_agreementid","Value":"8dc98680-00c3-ec11-a7b6-0022480a92a6"},{"Key":"owninguser","Value":{"Id":"42f25996-2667-ec11-8f8f-6045bd009e70","LogicalName":"systemuser","Name":null,"KeyAttributes":[],"RowVersion":null}},{"Key":"adobe_sendfromlibrary","Value":false},{"Key":"adobe_isquickcreate","Value":true},{"Key":"adobe_signaturetype","Value":true},{"Key":"adobe_parentopportunityid","Value":{"Id":"b9faa153-7bc2-ec11-983e-000d3a374186","LogicalName":"opportunity","Name":null,"KeyAttributes":[],"RowVersion":null}},{"Key":"adobe_templateid","Value":"{957228AF-7487-EB11-A812-000D3A593BE5}"},{"Key":"adobe_identityverification","Value":{"Value":648770003}}],"EntityState":null,"FormattedValues":[{"Key":"adobe_sendersigningorder","Value":"I sign first"},{"Key":"statecode","Value":"Active"},{"Key":"adobe_agreementexpires","Value":"No"},{"Key":"adobe_isaudittrailattached","Value":"No"},{"Key":"adobe_add_recipient_from_parent_entity","Value":"Yes"},{"Key":"adobe_waitingforsendersignature","Value":"No"},{"Key":"createdon","Value":"2022-04-23T08:25:51-04:00"},{"Key":"adobe_readerroleonly","Value":"No"},{"Key":"modifiedon","Value":"2022-04-23T08:25:51-04:00"},{"Key":"adobe_signingorder","Value":"Order Entered"},{"Key":"adobe_useauthoring","Value":"No"},{"Key":"adobe_reviewsigningorder","Value":"No"},{"Key":"adobe_iscombinedpdfattached","Value":"No"},{"Key":"adobe_oquickcreateentityptionset","Value":"Opportunity"},{"Key":"adobe_hostsigning","Value":"No"},{"Key":"adobe_isattachmentadded","Value":"No"},{"Key":"adobe_addpostsignredirecturl","Value":"No"},{"Key":"statuscode","Value":"Active"},{"Key":"adobe_ispostaddedtoparententity","Value":"No"},{"Key":"adobe_missingtemplaterecipient","Value":"No"},{"Key":"adobe_sendersignsonly","Value":"No"},{"Key":"adobe_sendfromlibrarycheckboxvalue","Value":"No"},{"Key":"adobe_missingtemplatedocument","Value":"No"},{"Key":"adobe_isrecipientadded","Value":"No"},{"Key":"adobe_sendersigning","Value":"No"},{"Key":"adobe_automaticreminder","Value":"Never"},{"Key":"adobe_securesignedpdf","Value":"No"},{"Key":"adobe_sendersigningoptions","Value":"I sign first"},{"Key":"adobe_issignedpdfattached","Value":"No"},{"Key":"adobe_sendfromlibrary","Value":"No"},{"Key":"adobe_isquickcreate","Value":"Yes"},{"Key":"adobe_signaturetype","Value":"Electronic"},{"Key":"adobe_identityverification","Value":"EMAIL"}],"RelatedEntities":[],"RowVersion":null,"KeyAttributes":[]}
04/23/2022 12:25:53.947 : Applying template.
04/23/2022 12:25:54.009 : Apply agreement template method started.
04/23/2022 12:25:54.009 : After getting template.
Activity Id: 9cbe69b2-24e0-4128-b433-a0324517b9a0
