Hi everyone,
we are trying to use Errors Function in a ForAll Patch to catch the errors, but the following code seems to do not work and doesn't populate any records from Errors Table. Can anybody help where is the mistake in the code?
Kind regards
Clear(collection)
ForAll(
Filter(
collectionTable,
TablePK = x
),
Collect(
collection,
Patch(
Table,
Defaults(Table),
{
Field1: ThisRecordField1,
.
.
.
Fieldx:ThisRecordFieldx
}
)
)
);
ForAll(
collection,
If(
!IsEmpty(
Errors(
Table,
ThisRecord
)
),
Collect(
collectionErrorLog,
{
Error: First(
Errors(
Table,
ThisRecord
)
).Error,
Column: First(
Errors(
Staging_Jobs,
ThisRecord
)
).Column,
Message: First(
Errors(
Table,
ThisRecord
)
).Message
}
)
)
);
Have you setup a table on another screen with the Errors table as the data source to see if you can use it that way and if it's actually catching any errors?
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
186 | |
52 | |
50 | |
34 | |
33 |
User | Count |
---|---|
267 | |
97 | |
84 | |
72 | |
71 |