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 / Submit Form Error - Sa...
Power Apps
Unanswered

Submit Form Error - Save form which has computed columns in database table

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

 

I have a fost which updates several columns in the database. In the table I have added a column which is computed using a function. When  trying to save the form I receive an error message. Has anyone encountered this situation so far? Thank you.error.png

Categories:
  • v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Please first share the related formula.

    Is the related column a calculated column in SQL data source? If so, please try to not update this field and test again.

     

    Also, I have found an idea submitted here:

    https://powerusers.microsoft.com/t5/PowerApps-Ideas/SQL-Output-Clause-error-on-calculated-column/idi-p/41844

     

    It seems that a lot of users have experienced this error.

     

    Regards,

    Mona

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Helllo @v-monli-msft ,

     

    The formula for the function is something like that

    create function dbo.[Function](
    @vb1 nvarchar(100))
    returns nvarchar(500) with schemabinding as
    BEGIN
    DECLARE @res nvarchar(500);
    select @res = c.[column1] + ' - ' + c.column2
    FROM [dbo].[table1] c
    where c.[column3] = @vb1;
    return @res;
    end;

     

    After creating the function I have added a column in the SQL table which has the following definition: 

    add [CalcColumn] as dbo.[Function]([parameter1]) ; In the power apps form I have removed any update on this calculated column but it still does not work.

     

    I wanted to avoid using the flow. I am mentioning that I have in the table another computed column which has the formula [ColumnA] AS (CONVERT([nvarchar](50),[ColumnB])) and the form works with this field, but it does not have a user-defined function in the definition.

     

    Thank you.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard