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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Multiple Datasource er...
Power Apps
Unanswered

Multiple Datasource error when creating a custom command in a model-driven app

(0) ShareShare
ReportReport
Posted on by 14

Hello,

 

This is my first time ever posting here so I apologize if I am in the wrong place.

 

I have a model-driven app that acts as an inventory system with sales elements. The team that will use it enters assets that are then sold. Pretty basic.

 

The problem I'm running into is regarding a custom command button to patch defaults into the asset table. I can get it to work on a different table, but the app checker continuously tells me it expects a single datasource. 

mhorjus_0-1703701002515.png

 

I cannot see where there is a second datasource being used by the formula, shown below:

 

mhorjus_1-1703701141207.png

 

I do note that there is a peculiarity with the table name in that it is actually Assets, but when I write the formula, Intellisense only shows Assets_1 and that's the only way to put it that won't pop syntax errors.

 

I am strongly hoping that this is just some rookie thing I'm overlooking, but I have searched seemingly everywhere for a solution. I greatly appreciate any assistance I can receive with this. Thank you.

I have the same question (0)
  • mhorjus Profile Picture
    14 on at

    Update: I got the error to go away. As it happens, I found some errant solution related connections. I cleaned those up and refreshed the datasource connection in the component library and the datasource properly connected as just Asset. However, while neither formula or button throw an error, the button simply does nothing. I thought maybe it as because a required field wasn't included in the Patch, but I included all custom required columns and it still does nothing.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard