Ardalyst / Celedon-Autonumber-RTM

Celedon Autonumber Solution for Dynamics CRM
http://www.celedonpartners.com
MIT License
19 stars 24 forks source link

<Message>rand is not a valid attribute name in Prefix value</Message> #24

Closed donalmc closed 6 years ago

donalmc commented 6 years ago

Hi,

I am getting an error when I try to add the {rand} parameter to the prefix.

autonumber-error2

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: rand is not a valid attribute name in Prefix valueDetail:

aa09060d-f09f-4fd5-91db-cdceefd10d53 -2147220891 OperationStatus 0 SubErrorCode -2146233088 rand is not a valid attribute name in Prefix value 2018-05-28T14:13:28.4836424Z false [Celedon.AutoNumber: Celedon.ValidateAutoNumber] [4b9b76ff-6dba-e711-a95e-000d3a301c96: Celedon.ValidateAutoNumber: Create of cel_autonumber] Entered ValidateAutoNumber.Execute() : (Correlation Id: 8c4f4146-d496-47e5-b027-83d0a65b8817, Initiating User: 5af5e3d3-e4fc-e611-8109-c4346baceb24) ValidateAutoNumber is firing for Entity: cel_autonumber, Message: Create : (Correlation Id: 8c4f4146-d496-47e5-b027-83d0a65b8817, Initiating User: 5af5e3d3-e4fc-e611-8109-c4346baceb24) Getting Target entity : (Correlation Id: 8c4f4146-d496-47e5-b027-83d0a65b8817, Initiating User: 5af5e3d3-e4fc-e611-8109-c4346baceb24) Validate the Entity name : (Correlation Id: 8c4f4146-d496-47e5-b027-83d0a65b8817, Initiating User: 5af5e3d3-e4fc-e611-8109-c4346baceb24) Get Attribute List : (Correlation Id: 8c4f4146-d496-47e5-b027-83d0a65b8817, Initiating User: 5af5e3d3-e4fc-e611-8109-c4346baceb24) Validate the Attribute name : (Correlation Id: 8c4f4146-d496-47e5-b027-83d0a65b8817, Initiating User: 5af5e3d3-e4fc-e611-8109-c4346baceb24) Validate the Trigger Attribute (if any) : (Correlation Id: 8c4f4146-d496-47e5-b027-83d0a65b8817, Initiating User: 5af5e3d3-e4fc-e611-8109-c4346baceb24) Validate the Attribute type : (Correlation Id: 8c4f4146-d496-47e5-b027-83d0a65b8817, Initiating User: 5af5e3d3-e4fc-e611-8109-c4346baceb24) Exiting ValidateAutoNumber.Execute() : (Correlation Id: 8c4f4146-d496-47e5-b027-83d0a65b8817, Initiating User: 5af5e3d3-e4fc-e611-8109-c4346baceb24)
donalmc commented 6 years ago

It's working now. I'd entered 123 in the Next Number box field just like in one of the screenshots, one I changed this to 1, it saved without issue.