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

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?

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans