web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / SQL Primary key - inva...
Power Apps
Answered

SQL Primary key - invalud coumn name???

(0) ShareShare
ReportReport
Posted on by 3,347

Always some stupid detail...

 

Very easy to do... but, why do I get an error on the column name being invalid?  It isnt.  

 

image.png

Categories:
  • wyotim Profile Picture
    2,545 on at

    That is interesting, considering that SSMS generated the query! You would think it would know the column names.

     

    If you look at the Design (just above the Select Top 1000 Rows when you right click on the table), does that have the same column name or any errors?

  • Verified answer
    martinav Profile Picture
    3,347 on at

    Huh... i renamed it a couple of times, same result... Design looks fine, no errors...

     

    BUT... I exited studio, and opened it again... it was fine after that.  Strange.

  • wyotim Profile Picture
    2,545 on at

    Glad you were able to solve the issue! I have noticed some occasional refresh issues in SSMS. Hitting F5 a few times for good measure never hurts. Smiley Very Happy

  • martinav Profile Picture
    3,347 on at

    Yes, I did several F5s at many levels.  The only thing that resolved was an exit, @wyotim .  I did it a second time, and same thing.

  • wyotim Profile Picture
    2,545 on at

    That is a bit of a bummer to hear! Good to know though. Thanks for sharing your experience. I know it will help me and anyone else who finds this thread in the future! 

  • martinav Profile Picture
    3,347 on at

    The table actually executes just fine, despite the red squiggly, and such.  There was no other apparent issue.

  • Verified answer
    timl Profile Picture
    37,306 Super User 2026 Season 2 on at

    Just for info, the red squiggly lines often appear in SSMS when you rename/add objects and the Intellisense becomes out of sync.

    Rather than close/reopen SSMS, a quicker way is to use the shortcut <Ctrl><Shift><R>, or to select the Refresh Local Cache option in the Edit > IntelliSense menu.

     

    image.png

  • wyotim Profile Picture
    2,545 on at

    Thanks for the info @timl! That makes total sense. You rock!

  • timl Profile Picture
    37,306 Super User 2026 Season 2 on at

    Hehe, thanks @wyotim! You rock too!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 320

#3
Mohsin Ali Profile Picture

Mohsin Ali 246

Last 30 days Overall leaderboard