r/PowerApps • Newbie • 8d ago

Power Apps Help How to Display Row-Level Validation Errors When Importing Data into Dataverse (Model-Driven App)?

I'm working on a simple Model-Driven App using Dataverse that captures user details such as Name, DOB, Mobile Number, etc.

I have implemented the following validations:

  • DOB: Should not be greater than today's date.

  • Mobile Number: Must contain exactly 10 digits.

  • Duplicate Mobile Number: Prevented using an Alternate Key on the Mobile Number column.

These validations work perfectly when users create or update records through forms.

However, when users import data into Dataverse using Excel/CSV, invalid rows are ignored or rejected, but I want to display the specific rows that failed along with the reason for failure.

For example:

  • Row 5: DOB cannot be a future date.

  • Row 8: Mobile Number must contain exactly 10 digits.

  • Row 12: Duplicate Mobile Number.

What I have explored so far:

  1. I found that Dataverse maintains Import File and Import Log tables.

  2. I'm unable to access or view the Import Log table directly due to accessibility/permission limitations.

  3. Using the browser console, I can retrieve the latest Import File GUID and use it to query the Import Log records associated with that import.

My question:

How is this typically handled in enterprise-level Model-Driven Apps?

Is there a recommended approach to display row-level import failures and their respective error messages to users, preferably through a notification or a custom error summary page after the import completes?

UPDATE: I was trying to have a custom notification within the form which I found out to be a overkill for the requirement given.

Therefore, I went with existing built in implementation to check failures through import record.

Thank you all for the efforts in clarifying my doubt.

9 Upvotes

Duplicates