Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Field Service forum / Unable to create any B...
Field Service forum
Suggested answer

Unable to create any Bookable Resource other than User

Posted on by 117

Hello!

We are trying to setup additional Bookable Resources, other than the standard User.

Field Service Version 8.8.1.45.

pastedimage1574112084066v2.png

No matter what Resource Type we select, we are unable to save the new resource and will get the following error:

pastedimage1574111408048v1.png

Permission is set to System Administrator while encountering this error.

The error details are unfortunately not much help (to me).

at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.CreateInternal(Entity entity, InvocationContext invocationContext, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, Dictionary`2 optionalParameters)
at Microsoft.Crm.Extensibility.OData.CrmODataExecutionContext.CreateOrganizationResponse(Entity entity)
at Microsoft.Crm.Extensibility.OData.CrmODataServiceDataProvider.CreateEdmEntity(CrmODataExecutionContext context, String edmEntityName, EdmEntityObject entityObject, Boolean isUpsert)
at Microsoft.Crm.Extensibility.OData.EntityController.PostEntitySetImplementation(String& entitySetName, EdmEntityObject entityObject)
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult](ILogger logger, EventId eventId, ActivityType activityType, Func`1 func, IEnumerable`1 additionalCustomProperties)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute[TResult](ILogger logger, XrmTelemetryActivityType activityType, Func`1 func)
at lambda_method(Closure , Object , Object[] )
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()
Activity Id: a97e1395-f56b-471c-a2b5-766fa7b5383b

Any idea what record the system is looking for?

I have tried to create a Facility/Equipment first (through Business Management Settings), to no avail.

Anybody else has been running into this issue and found a resolution?

Your feedback is highly appreciated!

Best Regards,

Hartmut

  • Suggested answer
    ashish12 Profile Picture
    ashish12 3,077 on at
    RE: Unable to create any Bookable Resource other than User

    Click on this older post: community.dynamics.com/.../calendar-with-id-2c640fe4-7dbe-e711-80ea-3863bb348bd0-does-not-exist

  • Al Iggs Profile Picture
    Al Iggs on at
    RE: Unable to create any Bookable Resource other than User

    Do you have any logic that tries to set a default work hour template for your newly created resource? That's what I read from the error message.

    Have a look at https://<YourInstance>.crm4.dynamics.com/main.aspx?appid=<appId>&pagetype=entitylist&etn=msdyn_workhourtemplate 

  • HartmutE Profile Picture
    HartmutE 117 on at
    RE: Unable to create any Bookable Resource other than User

    Thank you,

    This did provide some additional information:

    error: {code: "0x80040217", message: "calendar With Id = 4d29451a-7e4d-e811-a971-000d3a1ab48b Does Not Exist",…}

    Not sure what calendar the system is looking for or where the calendar reference is coming from.

    The error is showing in Production and Sandbox, so we have no environment where we can recover the calendar as suggested here:

    https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/260035/calendar-with-id-2c640fe4-7dbe-e711-80ea-3863bb348bd0-does-not-exist?pifragment-97030=1#responses

    Thanks!

  • Thomas David Dayman Profile Picture
    Thomas David Dayman 11,319 on at
    RE: Unable to create any Bookable Resource other than User

    Follow this blog on how to get a readable error message - https://www.itaintboring.com/dynamics-crm/when-the-error-message-is-lost-in-translations/

    maybe this will point you in the right direction

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,696 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans