cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
michaelstiben
New Member

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

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
Super User III
Super User III

@michaelstiben 
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."

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

@michaelstiben 
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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (18,750)