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 / Network error when usi...
Power Apps
Unanswered

Network error when using the patch function. Operation is invalid

(0) ShareShare
ReportReport
Posted on by 15

Hi, 

I get this cryptic error when patching to a MS SQL table.

The table does have a auto sequence numbering ID column that I exclude in the patch function.

Any help pointing me in the direction of this error would be greatly appreciated.

 

Patch(
RFPHead,
Defaults(RFPHead),
{
//RFP_ID:DataCardValue23, DB Generated Seq Column
RFPStat_ID: DataCardValue27.Selected.RFPStat_ID,
Client_ID: DataCardValue31.Selected.Client_ID,
RFP_Desc: DataCardValue33,
ClientRFPRef:DataCardValue32,
ServicesRequested:DataCardValue29,
DateCreated:Now(), 
CreatedBy:User().FullName //DataCardValue35
}
)

 

abd the SQL Table looks like this...

SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[RFPHead](
    [RFP_ID] [int] IDENTITY(1,1) NOT NULL,
    [RFPStat_ID] [char](2) NOT NULL,
    [Client_ID] [char](8) NOT NULL,
    [RFP_Desc] [varchar](30) NOT NULL,
    [ClientRFPRef] [char](10) NULL,
    [DateCreated] [datetime] NOT NULL,
    [CreatedBy] [char](25) NOT NULL,
    [DateQuesInt] [datetime] NULL,
    [DateQues] [datetime] NULL,
    [DateSubmInt] [datetime] NULL,
    [DateDue] [datetime] NULL,
    [DateLastUpd] [datetime] NULL,
    [UpdatedBy] [char](25) NULL,
    [ServicesRequested] [varchar](50) NOT NULL,
    [DateStart] [datetime] NULL,
    [DateLastInv] [date] NULL,
 CONSTRAINT [PK_RFPHead] PRIMARY KEY CLUSTERED
(
    [RFP_ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RFPHead]  WITH CHECK ADD  CONSTRAINT [FK_RFPClient] FOREIGN KEY([Client_ID])
REFERENCES [dbo].[Client] ([Client_ID])
GO
ALTER TABLE [dbo].[RFPHead] CHECK CONSTRAINT [FK_RFPClient]
GO
ALTER TABLE [dbo].[RFPHead]  WITH CHECK ADD  CONSTRAINT [FK_RFPStat] FOREIGN KEY([RFPStat_ID])
REFERENCES [dbo].[RFPStat] ([RFPStat_ID])
GO
ALTER TABLE [dbo].[RFPHead] CHECK CONSTRAINT [FK_RFPStat]
GO

 

Also, is there any way to get more detail logs of these errors?

 

Thanks

I have the same question (0)
  • Verified answer
    v-jefferni Profile Picture
    on at

    Hi @akalp ,

     

    The following controls have not been specified to any properties, please complete them all using .Text for text inputs or .Selected.Value for dropdowns or something similar.

     

    RFP_Desc: DataCardValue33,
    ClientRFPRef: DataCardValue32,
    ServicesRequested: DataCardValue29

     

    Best regards,

  • akalp Profile Picture
    15 on at

    You're a Rock Star! Worked. 

    Thanks so much.

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