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?