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

Notifications

Announcements

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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard