Skip to main content

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
Answered

Cannot assign resource to a Booking

Posted on by 6
Hi,
 
We are using Field Service in trial and this last day have just started receiving a /Sequence contains no elements/ error and unable to assign anyone.
 
We've enabled the plugin trace logs, shown below.
 
All roads led us to a FLOW which is now failing yet I cannot see any way to see exactly WHY it is failing. Any ideas at all please?

The Flow in question is - Create notification items for bookings
 
 
Many thanks
 
Microsoft.Dynamics.FieldServicePowerAppsPortal.Plugins.BookableResourceBookingPreDelete, Microsoft.Dynamics.FieldServicePowerAppsPortal.Plugins, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
 
CorrelationId:c0e7c08d-c8d6-460c-8570-402ce4a89119 PluginBase.cs:81 Execute Execution Manager Initialized done
CorrelationId:c0e7c08d-c8d6-460c-8570-402ce4a89119 PluginBase.cs:82 Execute localContext.PluginExecutionContext.userId - 4938ce66-0750-4074-a794-cc7c6d01509c
CorrelationId:c0e7c08d-c8d6-460c-8570-402ce4a89119 PluginBase.cs:83 Execute localContext.PluginExecutionContext.organizationId - cf9201b4-e8aa-ee11-a565-0022481a76a9
CorrelationId:c0e7c08d-c8d6-460c-8570-402ce4a89119 LogHelper.cs:89 LogTrace BookableResourceBookingPreDelete CreateBookingNotificationItem
CorrelationId:c0e7c08d-c8d6-460c-8570-402ce4a89119 LogHelper.cs:89 LogTrace BookableResourceBookingPreDelete Create notification item for: 42ba17ea-32b6-ee11-a567-002248429f03
CorrelationId:c0e7c08d-c8d6-460c-8570-402ce4a89119 Exception: System.InvalidOperationException: Sequence contains no elements
at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
at Microsoft.Dynamics.FieldServicePowerAppsPortal.Plugins.Services.BookableResourceBookingService..ctor(IOrganizationService organizationService, IOrganizationService systemService)
at Microsoft.Dynamics.FieldServicePowerAppsPortal.Plugins.BookableResourceBookingPreDelete.<>c__DisplayClass1_0.<ExecuteCrmPlugin>b__0()
  • CU24080944-0 Profile Picture
    CU24080944-0 6 on at
    Cannot assign resource to a Booking
    Thanks
  • Verified answer
    Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    Cannot assign resource to a Booking
    Hi Partner,
    I suggest you follow the steps below to create a ticket for the Microsoft Support team for further assistance.
    Get Help + Support - Dynamics | Microsoft Docs
     

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