macReports

Apple iOS Mac OS X Reports , Help and News

  • How to
  • News
  • Not working?
  • Tips and Tricks
  • Guides
You are here: Home / Not working? / Mac App Store: An Error Occurred During Purchase, Fix

Mac App Store: An Error Occurred During Purchase, Fix

Last updated on March 5, 2019 By Serhat Kurt 7 Comments

Several Mac users have reported that they are experiencing Mac App Store sign in and purchase problems. Users have further stated that they are unable to download apps because of this problem.

This error message:

An error occurred during purchase. The operation couldn’t be completed (com.apple.commerce.client error 500.)

an error occurred during purchase

This short article explains how you can fix Mac App Store download problems, if you are receiving this error message.

If you are receiving  the “Cannot Connect to App Store” problem, see this article.

If you encounter this issue, while using the Mac App Store on your Mac, steps below will help you:

1. On your Mac, click the System Preferences icon in the Dock or click Apple menu > System Preferences, then click iCloud.

system preferences iCloud

And then sign out of iCloud on your Mac by clicking Sign Out. You will be asked to keep a copy of your iCloud data, you may want to do keep a copy. After signing out, wait a few seconds and quit App Store (Command + Q).  and then relaunch the App Store app and sign back in by clicking Sign In at the bottom-left corner.

Then try to download, purchases apps to see if now works.

2. If you are still having problems, please try these steps. Launch the App Store app on your Mac then Click Store and Sign Out. And then sing in.

App Store Sign Out
3. If you are still having this problem, try this step. Log out of the App Store (App Store > Store > Sign Out) and then quit the App Store app. Open the Terminal app (Applications > Utilities; or you can use Spotlight Search) on your Mac, and then type this command (or copy it from here!) and hit Enter:

defaults write com.apple.appstore.commerce Storefront -string "$(defaults read com.apple.appstore.commerce Storefront | sed s/,8/,13/)"

4. Your issue may be caused by corrupted preference files. Please try these steps:

  • Quit all your applications on your Mac
  • Open the Finder app
  • Click Go and Go to FolderGo to folder
  • Enter~/Library/Preferences/ and click GoGo to folder
  • Find the following files:
    • com.apple.storeagent.plist
    • com.apple.appstore.plist
    • com.apple.appstore.commerce.plist
  • Delete these files (you may want to save them somewhere, e.g, your desktop, as a backup)
  • Restart your Mac
  • Launch the App Store and try again.

5. If you are still experiencing issues, please try the following steps:

  • Open the Terminal app
  • Enter the following command and then hit Enter
  • open $TMPDIR../C/com.apple.appstore/
  • This will open the com.apple.appstore foldercom.apple.appstore folder
  • Now delete everything located in this folder (again, you may want to copy the contents to a separate folder before deleting). DO NOT Delete files outside of this directory.
  • Restart your Mac
  • Open the App Store and see if your issue is fixed.

Are you still having this problem, after trying the steps above? If so, you may want to contact Apple Support.

See also: Your Account Has Been Disabled in the App Store and iTunes

Filed Under: Not working? Tagged With: App Store, Mac

Comments

  1. Amir says

    June 23, 2019 at 12:47 pm

    My issue was that the mac had somehow lost the WiFi connection so I was disconnected from the Internet.

    It’s a good thing to check

    Thank you for the article

    Reply
  2. Mario says

    April 16, 2019 at 5:12 pm

    Great! Step 4 worked fine! Do you guys know if any issue could rise from not having those 3 files in the folder? do you recommend to take them back once the issue with the store is solved?

    Reply
  3. Marie Imelda E Soriano says

    April 15, 2019 at 3:40 pm

    Thank you so much for thid. Option 4 worked for me 👍👍👍

    Reply
  4. Taylor says

    April 2, 2019 at 1:00 am

    Thank you so much! option 3 worked for me

    Reply
    • salman nawaz says

      October 13, 2019 at 6:07 am

      option 3 worked for me thanks bro!

      Reply
  5. Tom says

    March 25, 2019 at 6:51 am

    Option 3 worked for me

    Thank you so much had spent hours trying different things

    Reply
  6. B Kim says

    March 13, 2019 at 3:06 pm

    Hi,

    The command `defaults write com.apple.appstore.commerce Storefront -string “$(defaults read com.apple.appstore.commerce Storefront | sed s/,8/,13/)”` worked for me.

    But do you know what it means? It changed the number 8 to 13. What does 8 and 13 means?

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Follow us

  • Facebook
  • RSS
  • Twitter

Got a tip for us? Email us.

Latest Posts

Unable to Load: An Error Occurred While Loading a Higher Quality Version of this Photo or Video, Fix

How to Use Apple Watch to Track your Sleep

How to get AirPods Pro with Static, Crackling Replaced for Free

How to Fix Keyboard Lag on Mac

How to Turn on Bluetooth on your Mac without a Keyboard, Mouse, or Trackpad

Pages

  • About macReports
  • Contact Us
  • Privacy Statement
  • Terms of Use

Tags

AirPods Apple Car Apple Company Apple ID Apple Music Apple Pay Apple TV Apple Watch Apps App Store Backup Black Screen Bluetooth Catalina FaceTime iCloud iMessage iMessages iMovie iOS iOS 14 iPad iPhone iTunes Keyboard Mac Mac Battery MacBook macOS macOS Big Sur Mail Mail App Messages Music Notifications PDF Photos Safari screenshot Siri Spotlight Search Update Wi-Fi Windows YouTube

Search macReports

Categories:

  • Guides
  • How to
  • News
  • Not working?
  • Tips and Tricks

About macReports:

This website is founded by Serhat Kurt. He worked as a Senior Technology Director. He holds a doctoral degree (or doctorate) from the University of Illinois at Urbana / Champaign and a master’s degree from Purdue University.

Stacey Butler

Stacey Butler is a tech writer at macReports covering news, how-tos, and user guides. She is a longtime Mac and iPhone user and holds a Ph.D. from the University of Illinois at Champaign-Urbana.

 

This website is not affiliated with Apple.

Copyright © 2021 / macReports

This website uses cookies. By navigating around this site you consent to cookies being stored on your machine.Accept