Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Adding a button using Ribbon WorkBench

Posted on by

Hi,

I have added a button as follows 

2703.ribbon.png

But I cannot see it in the form , I have tried in a different browser and a computer as well.

indi.png

*This post is locked for comments

  • Dineth Profile Picture
    Dineth on at
    RE: Adding a button using Ribbon WorkBench

    Hi Ravi,

    Thank you very much for your help, all working now.

    Really apprecaite your help you have given me to work this out.

    Thanks.

  • kim chi Profile Picture
    kim chi 15 on at
    RE: Adding a button using Ribbon WorkBench

    Hi Dineth

    Did you try to unmark the Record is created checkbox in your workflow setup? I think maybe the error appeared because of this checkbox marked. Thanks.

  • Dineth Profile Picture
    Dineth on at
    RE: Adding a button using Ribbon WorkBench

    can you please send me your skype for business ID I ll share a session with you if that ok with you, also let me know a convenice time for you to troubleshoot.

    I have sent my Skype deatils on your linkedin.

    Thank you very much.

  • RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Adding a button using Ribbon WorkBench

    It looks like field service plugins are also not working...and throwing the same error message.

    Did you try to create a new workflow in contact entity?

  • Dineth Profile Picture
    Dineth on at
    RE: Adding a button using Ribbon WorkBench

    Hi Ravi,

    I have alter a exsisting contact record and save button, then it doesnt create a record in the secont entity. Thne I tried to add a new record to the contcat enetity then I m getting the error

    5428.errr.png

    Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Contact With Id = a8a19cdd-88df-e311-b8e5-6c3be5a8b200 Does Not ExistDetail:
    <OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
    <ActivityId>afa7447e-3332-4258-826f-c46cc854f841</ActivityId>
    <ErrorCode>-2147220891</ErrorCode>
    <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic">
    <KeyValuePairOfstringanyType>
    <d2p1:key>OperationStatus</d2p1:key>
    <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">0</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
    <d2p1:key>SubErrorCode</d2p1:key>
    <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">-2146233088</d2p1:value>
    </KeyValuePairOfstringanyType>
    </ErrorDetails>
    <Message>Contact With Id = a8a19cdd-88df-e311-b8e5-6c3be5a8b200 Does Not Exist</Message>
    <Timestamp>2017-11-02T02:17:09.8539768Z</Timestamp>
    <ExceptionRetriable>false</ExceptionRetriable>
    <ExceptionSource i:nil="true" />
    <InnerFault i:nil="true" />
    <OriginalException i:nil="true" />
    <TraceText>

    [Microsoft.Crm.ObjectModel: Microsoft.Crm.ObjectModel.SyncWorkflowExecutionPlugin]
    [e2b22aa2-ecbe-e711-a824-000d3ae0c995: ]
    FieldServicePlugin: PluginLocal.Create, Depth: 1
    FieldServicePlugin: PluginContext Start
    FieldServicePlugin: MessageName: Create
    FieldServicePlugin: PrimaryEntityName: contact
    FieldServicePlugin: PrimaryEntityId: fca5a5ed-73bf-e711-a825-000d3ae0a7f8
    FieldServicePlugin: SecondaryEntityName: none
    FieldServicePlugin: Stage: 20
    FieldServicePlugin: PreEntityImages.Count: 0
    FieldServicePlugin: PostEntityImages.Count: 0
    FieldServicePlugin: InputParameters:
    Target = Microsoft.Xrm.Sdk.Entity
    FieldServicePlugin: OutputParameters:
    FieldServicePlugin: SharedVariables:
    DefaultsAddedFlag = True
    FieldServicePlugin: UserId: c276484b-1606-4495-b908-19ad8374781e
    FieldServicePlugin: InitiatingUserID: c276484b-1606-4495-b908-19ad8374781e
    FieldServicePlugin: IsolationMode: 1
    FieldServicePlugin: Mode: 0
    FieldServicePlugin: OrganizationName: org172fa700
    FieldServicePlugin: OrganizationId: fdd77886-6726-42a7-8c65-52b5cabaffe2
    FieldServicePlugin: BusinessUnitId: b76d5980-30ad-e711-a828-000d3ae0e155
    FieldServicePlugin: CorrelationId: 66c828a9-528e-4aca-a113-e39a27345bc8
    FieldServicePlugin: RequestId: 2393b8eb-ee15-4bd4-8fe4-8a0234db3bb4
    FieldServicePlugin: OperationId: 2393b8eb-ee15-4bd4-8fe4-8a0234db3bb4
    FieldServicePlugin: IsInTransaction: True
    FieldServicePlugin: Depth: 1
    FieldServicePlugin: IsExecutingOffline: False
    FieldServicePlugin: Parent PluginContext Start
    FieldServicePlugin: PluginContext Start
    FieldServicePlugin: MessageName: Create
    FieldServicePlugin: PrimaryEntityName: contact
    FieldServicePlugin: PrimaryEntityId: fca5a5ed-73bf-e711-a825-000d3ae0a7f8
    FieldServicePlugin: SecondaryEntityName: none
    FieldServicePlugin: Stage: 30
    FieldServicePlugin: PreEntityImages.Count: 0
    FieldServicePlugin: PostEntityImages.Count: 0
    FieldServicePlugin: InputParameters:
    Target = Microsoft.Xrm.Sdk.Entity
    SuppressDuplicateDetection = False
    FieldServicePlugin: OutputParameters:
    FieldServicePlugin: SharedVariables:
    DefaultsAddedFlag = True
    FieldServicePlugin: UserId: c276484b-1606-4495-b908-19ad8374781e
    FieldServicePlugin: InitiatingUserID: c276484b-1606-4495-b908-19ad8374781e
    FieldServicePlugin: IsolationMode: 1
    FieldServicePlugin: Mode: 0
    FieldServicePlugin: OrganizationName: org172fa700
    FieldServicePlugin: OrganizationId: fdd77886-6726-42a7-8c65-52b5cabaffe2
    FieldServicePlugin: BusinessUnitId: b76d5980-30ad-e711-a828-000d3ae0e155
    FieldServicePlugin: CorrelationId: 66c828a9-528e-4aca-a113-e39a27345bc8
    FieldServicePlugin: RequestId: 2393b8eb-ee15-4bd4-8fe4-8a0234db3bb4
    FieldServicePlugin: OperationId: 2393b8eb-ee15-4bd4-8fe4-8a0234db3bb4
    FieldServicePlugin: IsInTransaction: True
    FieldServicePlugin: Depth: 1
    FieldServicePlugin: IsExecutingOffline: False
    FieldServicePlugin: PluginContext End
    FieldServicePlugin: Parent PluginContext End
    FieldServicePlugin: PluginContext End
    FieldServicePlugin: PluginLocal.Create, Depth: 1
    FieldServicePlugin: PluginLocal.Create, Depth: 1
    FieldServicePlugin: InitializePlugin: local
    FieldServicePlugin: ConfigurePluginFlagsSupportInternal()
    FieldServicePlugin: CreateEntityOperation(contact)
    FieldServicePlugin: Operation type: ContactOperation
    FieldServicePlugin: operation.Initialize()
    FieldServicePlugin: InputEntity:
    territorycode = 1
    address2_freighttermscode = 1
    address2_shippingmethodcode = 1
    isprivate = False
    followemail = True
    donotbulkemail = False
    donotsendmm = False
    emailaddress1 = dad@gmail.com
    educationcode = 1
    customertypecode = 1
    fullname = test test
    isautocreate = False
    ownerid = c276484b-1606-4495-b908-19ad8374781e_systemuser[]
    isbackofficecustomer = False
    donotbulkpostalmail = False
    donotpostalmail = False
    donotemail = False
    statecode = 0
    address2_addresstypecode = 1
    donotphone = False
    createdon = 11/2/2017 2:17:09 AM
    transactioncurrencyid = dc2c84ca-36ad-e711-a828-000d3ae0e155_transactioncurrency[]
    contactid = fca5a5ed-73bf-e711-a825-000d3ae0a7f8
    modifiedby = c276484b-1606-4495-b908-19ad8374781e_systemuser[]
    haschildrencode = 1
    ifem_membertitle = 100000001
    leadsourcecode = 1
    statuscode = 1
    modifiedonbehalfby =
    preferredcontactmethodcode = 1
    lastname = test
    parentcustomerid = a8a19cdd-88df-e311-b8e5-6c3be5a8b200_account[]
    telephone1 = 564577
    firstname = test
    createdby = c276484b-1606-4495-b908-19ad8374781e_systemuser[]
    yomifullname = test test
    donotfax = False
    merged = False
    customersizecode = 1
    marketingonly = False
    owningbusinessunit = b76d5980-30ad-e711-a828-000d3ae0e155_businessunit[]
    shippingmethodcode = 1
    creditonhold = False
    modifiedon = 11/2/2017 2:17:09 AM
    participatesinworkflow = False
    preferredappointmenttimecode = 1
    FieldServicePlugin: operation.Execute()
    FieldServicePlugin: PluginStage: 20 MessageName: Create
    FieldServicePlugin: Before calling message handler
    FieldServicePlugin: Before
    FieldServicePlugin: BeforeCreate
    FieldServicePlugin: BeforeCreateOrUpdate
    FieldServicePlugin: Settings: Retrieving local
    FieldServicePlugin: Settings: Retrieving hard
    FieldServicePlugin: After calling message handler
    FieldServicePlugin: PluginLocal.Dispose, Depth: 1
    FieldServicePlugin: PluginLocal.Dispose, Depth: 1
    FieldServicePlugin: PluginLocal.Dispose, Depth: 1
    Starting sync workflow 'test1', Id: 90dc8c7f-73bf-e711-a825-000d3ae0a7f8
    Entering CreateStep1_step:
    Sync workflow 'test1' completed successfully
    Starting sync workflow 'UpdateIndividualOrganisationalMemberHistory', Id: dab22aa2-ecbe-e711-a824-000d3ae0c995
    Entering CreateStep1_step:
    Sync workflow 'UpdateIndividualOrganisationalMemberHistory' terminated with error 'Contact With Id = a8a19cdd-88df-e311-b8e5-6c3be5a8b200 Does Not Exist'

    </TraceText>
    </OrganizationServiceFault>

  • RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Adding a button using Ribbon WorkBench

    So you freated the workflow in some other entity?

    Can you create om contact....similar workflow but do not set the value from contact entity...use some harcoded values

  • Dineth Profile Picture
    Dineth on at
    RE: Adding a button using Ribbon WorkBench

    Hi Ravi,

    Yes Individual Committee Member is the contact entity.

    I have created a separate new WF for custom entity to create a record in  OrganisationalMemberHistory Entity.

    As expected when I click on the save button in CommitteeMemberships (custom Entity) it creates a record in  OrganisationalMemberHistory.

    Check this new WF and the previous one, both have the same step.

    Any thoughts.

    Thank you very much for your help.

  • RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Adding a button using Ribbon WorkBench

    Hi Dineth,

    As you are getting the record not found error when you use the above url with the guid, it means that the contact record with that id doesn't exists in the system. So the question is why and from where CRM is picking that id.

    Can you create a new workflow and add the same create step but with some default hard coded values (don't use values from contact)?

    Also, Individual Committee Member is the contact entity right?

  • Dineth Profile Picture
    Dineth on at
    RE: Adding a button using Ribbon WorkBench

    HI Ravi,

    Could you please check the log file I have attached, can you Please help me to fix this issue.

    Thanks.

  • Dineth Profile Picture
    Dineth on at
    RE: Adding a button using Ribbon WorkBench

    Hi Ravi,

    I have used the url you have given me, Im getting this

    2248.record.png

    Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Crm.CrmException: contact With Id = 475b158c-541c-e511-80d3-3863bb347ba8 Does Not Exist
    at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal()
    at Microsoft.Crm.Application.Platform.ServiceCommands.RetrieveCommand.Execute()
    at Microsoft.Crm.Application.Platform.EntityProxy.Retrieve(String[] columns, Guid auditingTransactionId, Boolean addRequiredColumns)
    at Microsoft.Crm.Application.Platform.EntityProxy.Retrieve(String[] columns, Boolean addRequiredColumns)
    at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.LazyLoadEntity()
    at System.Lazy`1.CreateValue()
    at System.Lazy`1.LazyInitValue()
    at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.WriteFormDataJson(TextWriter writer)
    at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.WriteFormattedEntityData(TextWriter writer, Boolean isTurboForm)
    at Microsoft.Crm.Application.Pages.Form.FormDataPage.Render(HtmlTextWriter writer)
    at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    at System.Web.UI.Page.HandleError(Exception e)
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    at System.Web.UI.Page.ProcessRequest()
    at System.Web.UI.Page.ProcessRequest(HttpContext context)
    at ASP.form_data_aspx.ProcessRequest(HttpContext context)
    at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #6E492B6EDetail:
    <OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
    <ActivityId>9c17be98-acf3-485c-adfb-70982d263aeb</ActivityId>
    <ErrorCode>-2147220970</ErrorCode>
    <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
    <Message>System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---&gt; Microsoft.Crm.CrmException: contact With Id = 475b158c-541c-e511-80d3-3863bb347ba8 Does Not Exist
    at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal()
    at Microsoft.Crm.Application.Platform.ServiceCommands.RetrieveCommand.Execute()
    at Microsoft.Crm.Application.Platform.EntityProxy.Retrieve(String[] columns, Guid auditingTransactionId, Boolean addRequiredColumns)
    at Microsoft.Crm.Application.Platform.EntityProxy.Retrieve(String[] columns, Boolean addRequiredColumns)
    at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.LazyLoadEntity()
    at System.Lazy`1.CreateValue()
    at System.Lazy`1.LazyInitValue()
    at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.WriteFormDataJson(TextWriter writer)
    at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.WriteFormattedEntityData(TextWriter writer, Boolean isTurboForm)
    at Microsoft.Crm.Application.Pages.Form.FormDataPage.Render(HtmlTextWriter writer)
    at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    at System.Web.UI.Page.HandleError(Exception e)
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    at System.Web.UI.Page.ProcessRequest()
    at System.Web.UI.Page.ProcessRequest(HttpContext context)
    at ASP.form_data_aspx.ProcessRequest(HttpContext context)
    at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #6E492B6E</Message>
    <Timestamp>2017-11-01T08:35:37.333378Z</Timestamp>
    <ExceptionRetriable>false</ExceptionRetriable>
    <ExceptionSource i:nil="true" />
    <InnerFault>
    <ActivityId>9c17be98-acf3-485c-adfb-70982d263aeb</ActivityId>
    <ErrorCode>-2147220969</ErrorCode>
    <ErrorDetails xmlns:d3p1="schemas.datacontract.org/.../System.Collections.Generic" />
    <Message>contact With Id = 475b158c-541c-e511-80d3-3863bb347ba8 Does Not Exist</Message>
    <Timestamp>2017-11-01T08:35:37.333378Z</Timestamp>
    <ExceptionRetriable>false</ExceptionRetriable>
    <ExceptionSource i:nil="true" />
    <InnerFault i:nil="true" />
    <OriginalException i:nil="true" />
    <TraceText i:nil="true" />
    </InnerFault>
    <OriginalException i:nil="true" />
    <TraceText i:nil="true" />
    </OrganizationServiceFault>

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans