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 / Error with Sharepoint ...
Power Apps
Unanswered

Error with Sharepoint connection

(0) ShareShare
ReportReport
Posted on by 65

Hi,

I've got problem with SharePoint connection I guess. After ~15/20 min of work I need to remove and add connection to my SharePoint list because on every field which use LookUp/Patch etc. I've got error "Invalid Argument Type". The only way to remove those error is to remove and add new connection to the same SP list.

 

Any ideas what's going on?

 

Cheers

Categories:
  • Ben-Western Profile Picture
    77 on at

    Hi @nottheOther ,

     

    Invalid Argument Type is normally surrounding a column that is being patched is the wrong type for the destination.

     

    Could you please paste your SharePoint list columns and types as well as your code so I can recreate and investigate for you?

     

    Regards,
    Benjamin Western | Automation Specialist

    NextStep Creations


    Taking your PowerApps Skill the NextStep

  • nottheOther Profile Picture
    65 on at

    First button with setting variable with SharePoint list record ID

    "Invalid argument type"

     

    Set(editID; DataTable5.Selected.ID);;
    Navigate(StepsScreen; ScreenTransition.Fade)

     

    Next screen got TextFields ex.

     

    LookUp(SharePointList;editID=ID; NameOfColumn)

     

    Name of column - Multiple Lines of Text

    Everything worked fine until few days ago till I saw that.

  • Ben-Western Profile Picture
    77 on at

    Thanks @nottheOther ,

     

    With this line: 

    LookUp(SharePointList;editID=ID; NameOfColumn)

     

    Try wrapping your ID from the other table in Value() just in case SharePoint is expecting an integer for this column... or visa versa if it is an integer but expects text

     

    Wrap ID in Text()

     

    Hope this helps!

     

    Regards,
    Benjamin Western | Automation Specialist

    NextStep Creations


    Taking your PowerApps Skill the NextStep

  • nottheOther Profile Picture
    65 on at
    LookUp(SharePointList;Text(editID)=ID; ColumnName)
    LookUp(SharePointList;Value(editID)=ID; ColumnName)
    LookUp(SharePointList;editID=Text(ID); ColumnName)
    LookUp(SharePointList;editID=Value(ID); ColumnName)
    LookUp(SharePointList;Text(editID)=Text(ID); ColumnName)
    LookUp(SharePointList;Value(editID)=Value(ID); ColumnName)

    None of this worked. It used to work as a charm...

  • nottheOther Profile Picture
    65 on at

    I can't even set this variable with action OnSelect button!

    Set(editID; DataTable5.Selected.ID)

     Incompatible Type. We can't evaluate your formula because the values being compared in the formula aren't the same type.

     

    Any help?

  • nottheOther Profile Picture
    65 on at

    Ok situation update. Everything works again.

     

    What I've done?

     

    Renamed name of the variable in every place. From "editID" to "editedID". Aaaand it works again XD

    Amazing. I think it's a bug not a feature 😉

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard