Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Error 0x80040203 importing solution: Specified argument was out of the range of valid values. Parameter name: Default picklist value has to be one of the option values.

(0) ShareShare
ReportReport
Posted on by

I am unable to export/import my solution from Dev to Test environments.  The error report lists the following error against the Contact Table:

Error 0x80040203: Specified argument was out of the range of valid values. Parameter name: Default picklist value has to be one of the option values. 

I had modified the table fairly extensively introducing many new choice fields, but have checked all of these I can't find any errant default values.  I have copied the solution to a new environment and tried removing fields with custom choices but same result.  

Any suggestions?

Categories:
  • Verified answer
    TomTru Profile Picture
    on at
    Re: Error 0x80040203 importing solution: Specified argument was out of the range of valid values. Parameter name: Default picklist value has to be one of the option values.

    Hi Andrew

     

    Thanks for responding.   

     

    I have successfully deployed to Test now, and anticipate no problem deploying to Prod. The problem actually lay in some custom choice fields I created in the App initially before I added it to a solution. This was my first App, so I have been learning along the way and didn't begin with a solution, but created one subsequently and added the App to the solution.  The result was that global choices I created for these fields were not present in the app and had to be imported, although the solution checker picked these up before I exported.  The other change I made which also may have contributed to success was to add nominate a default choice for all choice type fields.  For some this meant adding a 'Please select' option as default so that I wasn't pre-empting the user's choice.  This is fine for optional fields but not the best solution for required choice fields. 

     

    Not sure which of these two changes resolved the problem. The error log is not very helpful as it does not specify the problematic field(s), just the table. 

    Cheers

    Tom

  • AndrewR1 Profile Picture
    1,572 Super User 2025 Season 1 on at
    Re: Error 0x80040203 importing solution: Specified argument was out of the range of valid values. Parameter name: Default picklist value has to be one of the option values.

    Hi @TomTru take a look thorugh this Microsoft Documation on this error: https://learn.microsoft.com/en-us/troubleshoot/dynamics-365/sales/error-code-80040203-invalid-argument-error#cause

     

    Hope this helps 

    Please click Accept as solution if my post helped you solve your issue. ✔️ This will help others find the solution to this problem. It also closes the item. Remember, you can accept more than one post as a solution.

    If the content was useful in other ways, please consider giving it Thumbs Up. 👍

    Thanks
    Andrew

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard