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 / Model-Driven App: sett...
Power Apps
Unanswered

Model-Driven App: setting default value for lookup field not possible

(0) ShareShare
ReportReport
Posted on by 53

Hi Guys,

 

I need help regarding the following problem:

 

Under Model-Driven App I want to set a default value in a lookup field when form is created. I used the following solution  as a recommended approach, using a Business Process Flow:

 

cantareroj_0-1693478932936.png

 

The condition is quite simple and it works fine:

 

cantareroj_1-1693478953968.png

 

 

...but when I try to select some default value for the lookup field, then no list of values are shown:

 

cantareroj_2-1693479111447.png

 

Note: The table has values!!!.

 

If I select another view, then I get an error:

 

cantareroj_3-1693479162231.png

 

cantareroj_4-1693479170243.png

 

System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: <internalservererror>Try this action again. If the problem continues, check the Microsoft Dynamics 365 Community for solutions or contact your organization's Microsoft Dynamics 365 Administrator. Finally, you can contact Microsoft Support. If you contact support, please provide the technical details.</internalservererror> (Fault Detail is equal to Exception details:
ErrorCode: 0x80040216
Message: <internalservererror>Try this action again. If the problem continues, check the Microsoft Dynamics 365 Community for solutions or contact your organization's Microsoft Dynamics 365 Administrator. Finally, you can contact Microsoft Support. If you contact support, please provide the technical details.</internalservererror>
TimeStamp: 2023-08-31T10:52:40.6173870Z
--
).

 

 

I suspect Power Apps is not ready for this functionality yet. Can be?. Any ideas?

 

Thanks in advance. 

 

I have the same question (0)
  • Linn Zaw Win Profile Picture
    2,996 on at

    That functionality has been working fine and I have never experienced such an issue before. I just tested and I am able to see the records and select in the "Set Default Value" step.

    The internal server error can only be troubleshooted by Microsoft Support engineers, so I recommend raising a ticket with them.

    Meanwhile, you may update the lookup view of the LEGAL_ENTITY table by removing all the filter criteria to see if the lookup view shows all the data (so that you won't have to switch to a different view)

    LinnZawWin_0-1693484061762.png

     

  • Verified answer
    cantareroj Profile Picture
    53 on at

    Dear,

     

    after delete the custom table, and create it again, it works.

    I guess the root issue was related with the changing of the name of the column which is the Primmary Name Column. From that action, many errors show up. 

     

    Thanks and apologies.

     

     

  • Jitendra_FT Profile Picture
    72 on at

    Hi @cantareroj / @LinnZawWin 

     

    Is this solution working once deploy to downstream environment?

     

    Though, it is possible to keep the lookup value GUIDs same across the environments but if the GUID values are not the same as development environment will this solution work in downstream environments?

     

    Thanks for your time.

    Jitendra

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