cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Gautham001
Helper IV
Helper IV

Sql server issue

Hi all , 

i'm connecting my powerapp to azure sql and i keep getting this error "value should be atmost 40 characters" , but i don't have any field exceeding 40 characters.

https://prnt.sc/t76iyg

https://prnt.sc/t76i2e ,

https://prnt.sc/t76ip1,

 

Please check the screenshots for the schema and help me solve it.

2 REPLIES 2
KrishnaV
Super User III
Super User III

Hi @Gautham001 ,

 

I am really not sure about the data you are sending back to SQL table however try to change the schema from varchar to varchar(60) with the below SQL command and try it one more time.

ALTER TABLE SAPUserReq ALTER COLUMN PeopleSoftID VARCHAR(160)


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
Krishna
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.

 


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
KrishnaV
Business Applications MVP
Twitter | Linkedin | YouTube | GitHub
If this post helps you give a and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.

Thanks for replying @KrishnaV  ,

 

i am trying to patch the data in my collection to a sql database , i think the problem is somewhere as you mentioned in the fields that have numbers in them ( hence why i am using value function to patch them). 

 

One of the fields(Decimal Notation) is a string (varchar) field , but i edited to field to "allow values" , because i learnt that's how you add dropdowns in a form, and it is one of the fields which has numbers in it  , could this be causing the error?

 

Also the fields Peoplesoftid and the other value field telephone are blank right now. So will increasing the size make a difference?

 

p4.PNG  Maybe this can help you someway , but i'm still not able to solve this , any help would be appreciated.

 

Edit : I also tried to patch without those fields with value function just to try to make it work , it still gives me the same error , not sure why this is happening..

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 (6,534)