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 / Power Platform CLI - p...
Power Apps
Unanswered

Power Platform CLI - pac data export throws "Error: Value cannot be null. Parameter name: path"

(0) ShareShare
ReportReport
Posted on by 25

I tried to play around with the pac data export, but it always ends up with

 

Error: Value cannot be null.
Parameter name: path

Here's what I've done:

PS C:\bin\coretools> pac install latest
Feeds used:
https://api.nuget.org/v3/index.json
Installing package 'Microsoft.PowerApps.CLI' to 'C:\Users\****\AppData\Local\Microsoft\PowerAppsCLI'.
GET https://api.nuget.org/v3/registration5-gz-semver2/microsoft.powerapps.cli/index.json
OK https://api.nuget.org/v3/registration5-gz-semver2/microsoft.powerapps.cli/index.json 473ms
Package "Microsoft.PowerApps.CLI.1.19.4" is already installed.
PS C:\bin\coretools> pac data export --schemaFile "C:\bin\coretools\currency.xml"
Microsoft PowerPlatform CLI
Version: 1.19.4+gfbe2fd6

Error: Value cannot be null.
Parameter name: path

Usage: pac data export --schemaFile [--dataFile] [--overwrite] [--verbose] [--environment]

--schemaFile Schema file name. It can be created using Configuration Migration Tool (alias: -sf)
--dataFile File name for data zip file. Default data.zip (alias: -df)
--overwrite Allow overwrite output data file if it already exists (alias: -o)
--verbose Output more diagnostic information during data import/export (alias: -v)
--environment Environment (id, org id, url, unique name or partial name) (alias: -env)

PS C:\bin\coretools>

 Any suggestion?

I have the same question (0)
  • cchannon Profile Picture
    4,702 Moderator on at

    🤷 Uninstall PAC and reinstall it?

  • prohannes Profile Picture
    25 on at
    ---
    PS C:\bin\coretools> pac data export --schemaFile "C:\bin\coretools\currency.xml"
    Microsoft PowerPlatform CLI
    Version: 1.19.4+gfbe2fd6

    Error: Value cannot be null.
    Parameter name: path
    ---

    does not work

  • Verified answer
    cchannon Profile Picture
    4,702 Moderator on at

    Ah, ok, I understand now. Yeah, that error message isn't as helpful as it should be. What it's trying to say is that you need to provide a path for where to save the zip file once it's been exported. That is the --dataFile parameter. Screenshot below should be exactly what you're looking for:

    cchannon_0-1668519030469.png

     

  • Verified answer
    prohannes Profile Picture
    25 on at

    ok, I did not try to set --dataFile as it has a default "data.zip"
    Anyway, thanks!

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard