web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Custom Error Message
Power Apps
Unanswered

Custom Error Message

(0) ShareShare
ReportReport
Posted on by 4

Hello,

 

I am using a Custom API connection and I using Pacth to update my Datasource. When I get my errors returned by my custom API, it shows the whole data object in a JSON string with {} characters. I set my swagger file to return only the message from my innererror message object (see the swagger sturcture below). Is there a way to show only the message string of my embedded innerror error object in the toast popup? Or is there a way to parse the error object before it is shown in the toast popup?

 

patch:
tags:
- WOSV4
summary: Update entity in EntitySet WOS
operationId: WOSV4_PatchByWO_NUM
security:
- basicAuth: []
consumes:
- application/json
produces: []
parameters:
- name: WO_NUM
in: path
description: 'key: WO_NUM'
required: true
type: string
- name: EF_WO
in: body
description: The entity to patch
required: true
schema:
$ref: '#/definitions/EF_WO'
- name: $expand
in: query
description: Expands related entities inline.
required: false
type: string
- name: $select
in: query
description: Selects which properties to include in the response.
required: false
type: string
responses:
'200':
description: OK
schema:
$ref: '#/definitions/Object'
default:
description: Unexpected error
schema:
$ref: '#/definitions/_Error'
deprecated: false

 

 

 

Object:
type: object
properties: {}
_Error:
type: object
properties:
error:
$ref: '#/definitions/_InError'
_InError:
type: object
properties:
innererror:
$ref: '#/definitions/_InnerError'
_InnerError:
type: object
properties:
message:
type: string

Categories:
I have the same question (0)
  • v-micsh-msft Profile Picture
    Microsoft Employee on at

    Hi @kklauder,

     

    I am afraid currently it is no available for PowerApps to handle the error messages in details, please check the response from rgruian (PowerApp Staff) in the following thread:

    Error handling with Custom API

    If I have any misunderstandings, please let me know.

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard