Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

Virtual entity error when inserting record 'Number VER-000000 does not match format VER-######.'

(0) ShareShare
ReportReport
Posted on by 3,081
I have a power automate cloud flow that is attempting to insert into my dataverse table that was created from a custom data entity in F&O.
This field is the ServiceOrderId field.  I am attempting to send it a generic value so that it will create a new record using the number sequence specified in F&O.
 
This data entity works as expected when used with dual-write and custom dataverse tables.  I am able to send a value of '0000' and F&O creates a new ServiceOrderId for the record coming in.
 
In my dataentity I have overriden the 'initValue' with the following:

    public void initValue()
    {
        if (!this.skipNumberSequenceCheck())
        {
            NumberSeqRecordFieldHandler::enableNumberSequenceControlForField(
                this, fieldNum(VER_SMAServiceOrderHeaderEntity, ServiceOrderId), SMAParameters::numRefServiceOrderId());
        }
        super();
    }
 
As of yet I have been unable to debug anything coming into my data entity via the virtual entity table in dataverse.
  • Verified answer
    b_radlyjames Profile Picture
    b_radlyjames 3,081 on at
    Virtual entity error when inserting record 'Number VER-000000 does not match format VER-######.'
    The solution to this problem is the following:
     
    Instead of using the primary key from the underlying table, in this case ServiceOrderId, create a new field and make it the primary key on the staging table and entity.  This will allow the ServiceOrderId value to be blank and the system to generate a value for you.
  • Hana Xue Profile Picture
    Hana Xue Microsoft Employee on at
    Virtual entity error when inserting record 'Number VER-000000 does not match format VER-######.'
    Hi,
    You can check out this document Configure number sequences and autonumber columns when using dual-write - Finance & Operations | Dynamics 365 | Microsoft Learn, which mentions that during the initial synchronization of dual-write, you may receive an error message similar to one of the following examples:
    Field ABC does not allow editing. Number CE-20000001 does not match format ######. Validations failed.
    Best Regards,

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

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,476 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans