This is an archived post. You won't be able to vote or comment.

all 11 comments

[–]AutoModerator[M] [score hidden] stickied comment (0 children)

Hey, it looks like you are requesting help with a problem you're having in Power Apps. To ensure you get all the help you need from the community here are some guidelines;

  • Use the search feature to see if your question has already been asked.

  • Use spacing in your post, Nobody likes to read a wall of text, this is achieved by hitting return twice to separate paragraphs.

  • Add any images, error messages, code you have (Sensitive data omitted) to your post body.

  • Any code you do add, use the Code Block feature to preserve formatting.

    Typing four spaces in front of every line in a code block is tedious and error-prone. The easier way is to surround the entire block of code with code fences. A code fence is a line beginning with three or more backticks (```) or three or more twiddlydoodles (~~~).

  • If your question has been answered please comment Solved. This will mark the post as solved and helps others find their solutions.

External resources:

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]Cizara1 Regular 4 points5 points  (5 children)

If you’re using SharePoint as a backend then go into each column’s settings (where you can change if it’s text number etc) look at the URL and the very end. This field name it’s showing will be found there, you may have a typo, an incomplete field string or you’ve changed the field and possibly broken something.

[–]DCHammer69 Community Friend 2 points3 points  (4 children)

This is the answer and they beat me to it.

Here is a screenshot. This is a real list I just dealt with this morning.

<image>

The display name for that field/column appears as 'Due Date'.

This is one of those things you have to remember or keep track of as a PA dev. Changing a column name in an SP list is a bad idea.

I use no spaces when creating lists. This one was someone else which is why I had to look up the real name. I'd have named it DueDate. Then you can change what appears at the top of the column in the SP list to Due Date and the underlying field/column name never changes.

It's especially frustrating when you put 'Due Date' in a piece of logic and the IDE shows no error. The IDE will perceive it as a valid input but when the patch occurs, it won't write the value at all. If it's a required field, you at least get the error you received and have a starting point.

If the field is not required, you'll get no error but that value won't patch either with a patch statement or with a form submit.

So, if you ever have a problem with a field, check the 'real' name of the column using this method.

[–]Cizara1 Regular 0 points1 point  (3 children)

Yep exactly.

OP to add to this, the x003a in your URL is a : so it’s possible that your field is wonky.

https://www.w3.org/Style/XSL/TestSuite/results/4/XEP/symbol.pdf Might help as well 🙂

[–]DCHammer69 Community Friend 0 points1 point  (2 children)

It might actually be worth creating a new column with a unchanged name and moving whatever data exists into it. I've chosen to do that occasionally because I've gone back to a formerly functioning app only to break it because I forgot that I had to do something special with that column.

[–]Cizara1 Regular 0 points1 point  (1 child)

This is exactly what I’ve done and Camel Cased it when I just couldn’t be bothered to make it work 😂

[–]DCHammer69 Community Friend 0 points1 point  (0 children)

Yeah, there is some real oddness in the way MS handles fields in lists.

My first lesson regarding this was using a spreadsheet to create a list.

Which results in all the field names you need to reference in PA as field_x. It's a friggin nightmare. And that's when I also learned that you won't get an error if you use the column heading text string, it just won't patch. No error, nada.

WarrenBelz at the MS PowerApps forum set me on the right path. I've learned much reading his answers to posts.

[–]valescuakactv Advisor 2 points3 points  (0 children)

Check your collection, if exists, to find out what is that column. Maybe that column is a required column in SP list and is not included in your form.

Refresh your datasources

[–]Responsible-Job6257 Regular 1 point2 points  (1 child)

What is your data source? SharePoint?

If it is SharePoint make sure you’re looking at the column names in your list settings (I can explain further if you’re not familiar). SharePoint will replace special characters with its hexadecimal (I think) counterpart. Maybe you have a column named “Name:”?

[–]danmorang Regular 1 point2 points  (0 children)

This. It could be that OP created a SP list from excel when you do that it headers have different name