cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Problem with uniqueidentifier field in SQL (Field is required)

I just have create a table in SQL Azure that looks like:

 

 

 

CREATE TABLE [customer].[Projects](
	[Id] [uniqueidentifier] NOT NULL,
	[Name] [nvarchar](200) NULL)

 

 

 Also, the Column Id was set as Primary key and has a Default Value (new id()).

Using the wizard to connect SQL as data source, I create a "New Form" in power Apps and try to submit it (insert a new item in the table), an error is shown

 

michaelstiben_0-1593015123818.png

 

However, I followed this Post, creating a table with the following structure and when I tried to submit it, the form works well.

 

 

CREATE TABLE [dbo].[TestTable](
[Id] [int] IDENTITY(1,1) NOT NULL,
[Name] [varchar](50) NULL)

 

 

Also, the Id column was set as Primary Key.

 

Do you know if Power Apps have problems with SQL "unique identifier" datatype? Is there any workaround?

 

Thanks in advance

 

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

The form is submitted well when the Id is Integer not unique identifier.

However, for those who face the issue please, go to this post that helped me. It seems the SubmitFrom method has problems managing GUID.

View solution in original post

3 REPLIES 3
mdevaney
Community Champion
Community Champion

@Anonymous 
You said "submitting the form worked" well.  I don't see any issue described in your post: only the actions you took to build a SQL table.

 

What issue are you having?  Also, I noticed an error symbol in your screenshot.  Please share the full error message.

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Anonymous
Not applicable

The form is submitted well when the Id is Integer not unique identifier.

However, for those who face the issue please, go to this post that helped me. It seems the SubmitFrom method has problems managing GUID.

@Anonymous 
I am super confused by your newest post.  Are you now saying that you solved the problem?


If yes, mark your own post as the solution.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,426)