Skip to main content

Notifications

Announcements

No record found.

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

Error when creating a new Record Creation and Update Rule for the Queue

(1) ShareShare
ReportReport
Posted on by 35

I'm getting an error when creating a new Record Creation and Update Rule for the Queue:

ReferenceError: crmCreate is not defined
at Mscrm.setupAdvFind (https://*****.crm.dynamics.com/%7b638009781080000212%7d/webresources/ConvertRuleItem_main_system_library.js:1:2616)
at Mscrm.Form_onload (https://*****.crm.dynamics.com/%7b638009781080000212%7d/webresources/ConvertRuleItem_main_system_library.js:1:68)
at y._executeFunctionInternal (https://*****.crm.dynamics.com/uclient/scripts/app.js?v=1.4.4796-2209.1:2053:5286)
at y.execute (https://*****.crm.dynamics.com/uclient/scripts/app.js?v=1.4.4796-2209.1:2053:3782)
at https://*****.crm.dynamics.com/uclient/scripts/app.js?v=1.4.4796-2209.1:164:26973
at i (https://*****.crm.dynamics.com/uclient/scripts/app.js?v=1.4.4796-2209.1:340:88)
at ee._executeIndividualEvent (https://*****.crm.dynamics.com/uclient/scripts/app.js?v=1.4.4796-2209.1:164:26947)
at ee._executeEventHandler (https://*****.crm.dynamics.com/uclient/scripts/app.js?v=1.4.4796-2209.1:164:23952)
at Object.execute (https://*****.crm.dynamics.com/uclient/scripts/app.js?v=1.4.4796-2209.1:164:21169)
at N._executeSyncAction (https://*****.crm.dynamics.com/uclient/scripts/app.js?v=1.4.4796-2209.1:954:692)

Error Details:
Event Name: onload
Function Name: Mscrm.Form_onload
Web Resource Name: ConvertRuleItem_main_system_library.js
Solution Name: System
Publisher Name: MicrosoftCorporation

If I click ok and still create the rule I'm getting another error

Exception Message: Error identified in Payload provided by the user for Entity :'convertrules', For more information on this error please follow this help link go.microsoft.com/.../ ----> InnerException : Microsoft.OData.ODataException: Cannot convert the literal '4202' to the expected type 'Edm.String'. ---> Microsoft.OData.ODataException: Cannot convert a value of type 'Edm.Int32' to the expected target type 'Edm.String'.
at Microsoft.OData.ODataPayloadValueConverter.ConvertInt32Value(Int32 intValue, Type targetType, IEdmPrimitiveTypeReference primitiveTypeReference)
at Microsoft.OData.ODataPayloadValueConverter.ConvertFromPayloadValue(Object value, IEdmTypeReference edmTypeReference)
--- End of inner exception stack trace ---
at Microsoft.OData.ODataPayloadValueConverter.ConvertFromPayloadValue(Object value, IEdmTypeReference edmTypeReference)
at Microsoft.Crm.Extensibility.ODataV4.CrmPrimitivePayloadValueConverter.ConvertFromPayloadValue(Object value, IEdmTypeReference edmTypeReference)
at Microsoft.OData.JsonLight.ODataJsonLightReaderUtils.ConvertValue(Object value, IEdmPrimitiveTypeReference primitiveTypeReference, ODataMessageReaderSettings messageReaderSettings, Boolean validateNullValue, String propertyName, ODataPayloadValueConverter converter)
at Microsoft.OData.JsonLight.ODataJsonLightPropertyAndValueDeserializer.ReadPrimitiveValue(Boolean insideJsonObjectValue, IEdmPrimitiveTypeReference expectedValueTypeReference, Boolean validateNullValue, String propertyName)
at Microsoft.OData.JsonLight.ODataJsonLightPropertyAndValueDeserializer.ReadNonEntityValueImplementation(String payloadTypeName, IEdmTypeReference expectedTypeReference, PropertyAndAnnotationCollector propertyAndAnnotationCollector, CollectionWithoutExpectedTypeValidator collectionValidator, Boolean validateNullValue, Boolean isTopLevelPropertyValue, Boolean insideResourceValue, String propertyName, Nullable`1 isDynamicProperty)
at Microsoft.OData.JsonLight.ODataJsonLightResourceDeserializer.ReadEntryDataProperty(IODataJsonLightReaderResourceState resourceState, IEdmProperty edmProperty, String propertyTypeName)
at Microsoft.OData.JsonLight.ODataJsonLightResourceDeserializer.ReadPropertyWithValue(IODataJsonLightReaderResourceState resourceState, String propertyName, Boolean isDeltaResourceSet)
at Microsoft.OData.JsonLight.ODataJsonLightResourceDeserializer.<>c__DisplayClass9_0.<ReadResourceContent>b__0(PropertyParsingResult propertyParsingResult, String propertyName)
at Microsoft.OData.JsonLight.ODataJsonLightDeserializer.ProcessProperty(PropertyAndAnnotationCollector propertyAndAnnotationCollector, Func`2 readPropertyAnnotationValue, Action`2 handleProperty)
at Microsoft.OData.JsonLight.ODataJsonLightResourceDeserializer.ReadResourceContent(IODataJsonLightReaderResourceState resourceState)
at Microsoft.OData.JsonLight.ODataJsonLightReader.StartReadingResource()
at Microsoft.OData.JsonLight.ODataJsonLightReader.ReadResourceSetItemStart(PropertyAndAnnotationCollector propertyAndAnnotationCollector, SelectedPropertiesNode selectedProperties)
at Microsoft.OData.JsonLight.ODataJsonLightReader.ReadAtStartImplementationSynchronously(PropertyAndAnnotationCollector propertyAndAnnotationCollector)
at Microsoft.OData.ODataReaderCore.ReadImplementation()
at Microsoft.OData.ODataReaderCore.InterceptException[T](Func`1 action)
at System.Web.OData.Formatter.Deserialization.ODataReaderExtensions.ReadResourceOrResourceSet(ODataReader reader)
at System.Web.OData.Formatter.Deserialization.ODataResourceDeserializer.Read(ODataMessageReader messageReader, Type type, ODataDeserializerContext readContext)
at System.Web.OData.Formatter.ODataMediaTypeFormatter.ReadFromStream(Type type, Stream readStream, HttpContent content, IFormatterLogger formatterLogger).

ErrorCode: -2147015424
HexErrorCode: 0x80072500

Activity Id: a991290d-3390-4e0a-8ba8-9082be806253

0x80072500
-2147015424
Name: InvalidOneToManyRelationship
Message: OneToMany Entity Relationship with EntityRelationshipId '{0}' has null ReferencingEntityRole

However, I did not create any customizations for Queues or Record Creation and Update Rules. I also did not make any changes to the Power Automate Flow.

Can someone explain what's causing this error and how to fix it?

  • Oleg Kos Profile Picture
    Oleg Kos 7 on at
    Error when creating a new Record Creation and Update Rule for the Queue
    The same thing..

    When attempting to create a business rule for processing incoming emails using Automatic Record Creation and Update Rules in CRM, the following issue occurs:

    1. Step 1 – I create the rule and save it successfully.
    2. Step 2 – When trying to add a condition, an error appears immediately upon opening the form.
  • KS-18120957-0 Profile Picture
    KS-18120957-0 4 on at
    Error when creating a new Record Creation and Update Rule for the Queue
    Did you get a resolution for this issue? I am now seeing the same issue when attempting to create a new records creation and update rule however I was not getting the error around 4 -6 weeks ago.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,569 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans