web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Error on record creation where a BPF is concerned. The requested record was not found or you do not have sufficient permissions to view it.

(0) ShareShare
ReportReport
Posted on by 1,589

I am encountering a very strange issue.

I have a custom entity named ace_production.

The custom entity has a Business Process Flow named ace_aceservicetech_productionmainbpfproduction

The custom ace_production entity is related to opportunity via N:1 meaning many ace_production records to 1 opportunity record. 

When I as system admin create a new ace_production record, I get the error shown below.  

The steps to reproduce are to (a) open up an opportunity, (b) then going to the Production Tab, and then (c) click new production as shown. 

Screen-Shot-2021_2D00_03_2D00_09-at-8.30.31-PM.png

Screen-Shot-2021_2D00_03_2D00_09-at-8.30.46-PM.png

As soon as. I hit the "Save" or "Save and Close" button, I get the error shown below. 

Record Is Unavailable

The requested record was not found or you do not have sufficient permissions to view it.

Screen-Shot-2021_2D00_03_2D00_09-at-8.25.33-PM.png

The details of the error message are as follows:

xception Message: ace_production With Id = d6c29e28-e379-453a-b1b3-b358bf85a3dd Does Not Exist

ErrorCode: -2147220969
HexErrorCode: 0x80040217

ErrorDetails: 
	ApiExceptionSourceKey: Plugin/Microsoft.Crm.ObjectModel.BpfBusinessEntityService
	ApiStepKey: 34c7c753-ce7b-eb11-a812-002248099baf
	ApiDepthKey: 1
	ApiActivityIdKey: be3afcb6-8989-476a-ba27-1e334265721e
	ApiPluginSolutionNameKey: System
	ApiStepSolutionNameKey: System
	ApiExceptionCategory: ClientError
	ApiExceptionMesageName: ObjectDoesNotExist
	ApiExceptionHttpStatusCode: 404

HelpLink: http://go.microsoft.com/fwlink/?LinkID=398563&error=Microsoft.Crm.CrmException:80040217&client=platform

Activity Id: 3dd8d6ac-5cbc-4e5d-ba34-2a4a6ff9f433

If I de-activate the Business Process Flow named ace_aceservicetech_productionmainbpfproduction the error does not happen. 

If I deactivate everything, and leave only the Business Process Flow named ace_aceservicetech_productionmainbpfproduction, the error happens every single time I try to create a new ace_production record. 

This tells me the root cause of the issue is somehow associated with the BPF. 

Screen-Shot-2021_2D00_03_2D00_09-at-8.35.50-PM.png 

The BPF is very simple and shown below.

Screen-Shot-2021_2D00_03_2D00_09-at-8.38.36-PM.png

I have a similar setup with a custom Business Process Flow on the opportunity entity and I do not have this problem. 

If I go into the debugger and hit save, there is a strange 404 error that happens right at the point of saving the record as shown below. 

Screen-Shot-2021_2D00_03_2D00_09-at-9.00.42-PM.png

If I hit the Response Tab, I get the following:

--batchresponse_98bfdc5f-e6d6-4ae9-b4aa-31cbc4b2966c
Content-Type: multipart/mixed; boundary=changesetresponse_d034974c-97d3-4c72-9b5f-1c7efc67742c

--changesetresponse_d034974c-97d3-4c72-9b5f-1c7efc67742c
Content-Type: application/http
Content-Transfer-Encoding: binary
Content-ID: 2

HTTP/1.1 404 Not Found
REQ_ID: 9b48c71d-1e90-4032-b5ad-13185da0d4c6
Content-Type: application/json; odata.metadata=minimal
OData-Version: 4.0

{"error":{"code":"0x80040217","message":"ace_production With Id = d6c29e28-e379-453a-b1b3-b358bf85a3dd Does Not Exist","@Microsoft.PowerApps.CDS.ErrorDetails.ApiExceptionSourceKey":"Plugin/Microsoft.Crm.ObjectModel.BpfBusinessEntityService","@Microsoft.PowerApps.CDS.ErrorDetails.ApiStepKey":"34c7c753-ce7b-eb11-a812-002248099baf","@Microsoft.PowerApps.CDS.ErrorDetails.ApiDepthKey":"1","@Microsoft.PowerApps.CDS.ErrorDetails.ApiActivityIdKey":"dc7289bd-a635-4515-856d-7e8ad68e0293","@Microsoft.PowerApps.CDS.ErrorDetails.ApiPluginSolutionNameKey":"System","@Microsoft.PowerApps.CDS.ErrorDetails.ApiStepSolutionNameKey":"System","@Microsoft.PowerApps.CDS.ErrorDetails.ApiExceptionCategory":"ClientError","@Microsoft.PowerApps.CDS.ErrorDetails.ApiExceptionMesageName":"ObjectDoesNotExist","@Microsoft.PowerApps.CDS.ErrorDetails.ApiExceptionHttpStatusCode":"404","@Microsoft.PowerApps.CDS.HelpLink":"http://go.microsoft.com/fwlink/?LinkID=398563&error=Microsoft.Crm.CrmException:80040217&client=platform","@Microsoft.PowerApps.CDS.InnerError.Message":"ace_production With Id = d6c29e28-e379-453a-b1b3-b358bf85a3dd Does Not Exist"}}
--changesetresponse_d034974c-97d3-4c72-9b5f-1c7efc67742c--
--batchresponse_98bfdc5f-e6d6-4ae9-b4aa-31cbc4b2966c--

Am I missing something or is this a platform bug/support issue where the Dynamics Platform itself is suffering some kind of bug? 

I am at a total loss. Any ideas what I need to do to resolve the issue? 

I have the same question (0)
  • Suggested answer
    Rui Carvalho Profile Picture
    on at

    Hi Jim,

    On your BPF you have a button 'Update':

    pastedimage1615462701735v1.png

    Click on it and then try again to create a record with this BPF.

    See if you still have the issue.

  • ACECORP Profile Picture
    1,589 on at

    Updating it does not fix the problem.

    However it appears to be some kind of bug with Firefox on Mac.

    I do NOT have the problem with Chrome and Edge browsers on Mac.

    I have not been able to test those browsers on Windows, but the workaround is to not use Firefox on Mac.

    Very strange given that I found a similar issue someone posted about back in July 2019 where they said it was a bug and Microsoft provided them with some kind of updated script/solution as a hot fix until the public update was released, which they then followed up confirming the real fix was deployed.

    That was with the appointment entity when used with BPF and this is NOT that, but the issue sounds similar.

    Regardless, at least there is a quick fix work around to not use Firefox. However Firefox works on other entities with BPF's, just not this one.

    It remains very odd but at least's its able to be bypassed with Chrome and Edge.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 83 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

#3
#ManoVerse Profile Picture

#ManoVerse 40

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans