Skip to main content

Notifications

Dynamics 365 Community / Forums / Field Service forum / Cannot assign resource...
Field Service forum
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()
Categories:
  • 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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,524 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,469 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans