App Store updates are frozen and will not complete the installation.

I've tried resetting... tried signing out of itunes and signing back in. I have all of these apps and games that want me to update... i click on them... they say installing... but the status bar does not move.

That's an indication that you have apps installed that were purchased with a different ID. Either sign in with the credentials used to purchase them so you can update them, or delete them and re-download them using your ID.

Similar Messages

  • My iPhone 4S has a problem. The App Store is in Spanish and will not go back to English. Help someone!

    My iPhone 4S has a problem. The App Store is in Spanish and will not go back to English. Help someone!

    I tried turning the computer off and then back on. The alerts don't show the notice to update as resolved. Hopefully this is not a problem or an indicator or another problem. Should I ignore or reload 10.10.1 from the app store to trigger a resolved check in a green circle?
    Interesting that I had to buy server software after my free Yosemite download. I would have hoped that the two pieces of software would have gone together without any complication. It is not positive to end up buying a problem. Ah well, time to move on.

  • My iPhoto app will not complete the installation of an update

    My iPhoto app will not complete the installation of an update.

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off the router and then power it back on
    - Reset network settings: Settings>General>reset>Reset Network Settings. You will have to rejoin all networks

  • Firefox will not complete the installation even after several attempts of rebooting the computer.

    I downloaded the Firefox 9.0.1 upgrade but it will not complete the installation on my computer. Everytime I try to remove the program, it tells me to reboot the computer to finish the installation. After several reboots, the same error keeps coming up.

    Try to run the Firefox program once as Administrator (right-click firefox.exe: Run as Administrator).
    If that doesn't solve the problem then remove the Firefox program folder (C:\Program Files\Mozilla Firefox\) to do a clean reinstall.
    Download a fresh Firefox copy and save the file to the desktop.
    *Firefox 9.0.x: http://www.mozilla.org/en-US/firefox/all.html
    Uninstall your current Firefox version, if possible.
    *Do NOT remove personal data when you uninstall the current version or you lose your bookmarks and other data in the profile folder.
    Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
    *It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    *http://kb.mozillazine.org/Uninstalling_Firefox
    Your bookmarks and other profile data are stored elsewhere in the Firefox Profile Folder and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *http://kb.mozillazine.org/Profile_backup
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • TS3274 My iPad will not update apps.  It states it is installing but it will not complete the installation.  This has been going on for more than 24 hours.  What do I need to do?

    My iPad will not update apps.  It states it is installing but if never completes the installation this has been going on for more than 24 hours. What do I need to do?

    Try a reset:
    1. Hold the Sleep and Home button down (together) for about 10 seconds
    2. Until you see the Apple logo (very important)

  • Ipad app store is getting stuck and will not let me puchase any apps or books

    My ipad app store is getting stuck.  I can not purchase any apps or books.  It works for a few seconds and then freezes. 

    iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
    http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
    If there are multiple apps trying to download at once, only one can download at a time and the rest say "Waiting" until it is then their turn. Try this. Double tap the icon of the Waiting app, and it should resume the download.
    If that doesn't work:
    •  Log out of your iTunes store account.  Go to Settings > Store > Sign Out Then press the Home button.
    • Then press and hold the Home and Sleep buttons simultaneously and don't release them when it brings up the Turn Off screen; keep holding them until the Apple logo appears.
    • After restart, the Waiting should be gone.
     Cheers, Tom

  • After purchasing mac os x 10.8 the installer tells me  i cannot use the hd as a startup disk and will not begin the installation.

    i bought the upgrade from the app store and after it finished downloading, the installler tells me i can't use the macintosh hd as a startup disk. since that's what is used, don't know what this is about. i have an imac8,1 with intel core 2 duo , 4gb ram running snow lepard.

    hello, sorry it's took so long to get back to you. tried the remedy and still no install. here is a screenshot of what the installer does. and no i don't use a file vault type app. this is just puzzling. maybe a sign to stick with my current os, ramdom glitches and all. i am about to leave for work now, so i won't be available until after 3am cental time. any replies left will be answered on sunday. thanks.

  • How do I continue my CC update? because my CC is stuck and will not complete the update.

    Please help me someone.

    I have the same issue. No specific error message. It stalls at 95% for all program updates but continues to say Installing with nothing happening in the progress bar.
    Mac OS X 10.8

  • Premiere Elements 10 will not burn a DVD. It stays at 99 percent and will not complete the burn.

    New HP 1107c. Cannot burn a DVD with Premire Elements 10 64 bit. Works OK on a 64 bit Dell. Could this be a DVD hardware problem ? Turned off all Microsoft services via msconfig, disabled virus and spyware software, but still hangs at 99 percent burn

    You will find best advice over on the video forum. Most of us here are photographers.
    Click on the link below and copy and paste your question again. Good luck.
    Video questions: Click here for Premiere Elements Forum

  • Have intsalled itunes 10.5 several times and will not take the installation

    i have installed itunes10.5 several times and when i try and sync my phone i get a message that 10.5 is not installed and phone is not recoginzed

    yes i have the same issue.. i want to update my phone 4 to the new os5 and my itunes says that I need the new itunes 10.5 but after I try to update It states that im all up to date

  • Yosemite installation freezes and will not complete the install. Has been installing for over eight hours.

    the progress bar on the Yosemite installation is stuck about a third in. Has not moved for eight hours. This is a brand new computer. Has any one had this problem. I can't contact Apple online support as they need a serial number. I can't get the serial number because my computer doesn't work now!

    Look at the bottom of the MBP.  There should be the serial number in very small print.
    http://support.apple.com/kb/HT1559
    Ciao.

  • IMovie 9.0.7 will not complete the update either with the download dmg file from the apple site or from the OS software update. I would appreciate some advice.

    When installing the new update 9.0.7 to iMovie either via a dmg file or from the software updater the install will not complete the installation. The indicator bar just stays in the same place with the note install time remaining about a minute. I have let it set for hours and nothing happens. Does anybody have any advice?

    Try this.
    After signing into the Mac App Store (MAS) with your iTunes Apple ID, look at the Purchased page. You should see the three bundled iLife apps listed with Accept buttons. After you have accepted them and Apple has verified that they came on a new Mac and assigned them to your Apple ID and iTunes/MAS account, you should be able to update them.

  • TS3367 face time has the camera icon with a line thru it and will not complete a call?

    on my iphone, when trying a face time call, the camera has a line thru it and will not complete the call.  it just rings tothe person, but there phone does not ring.

    I have the same problem. I can't figure it out. I have followed their
    trouble-shooting guide with no luck/\.

  • ITunes 12.0.1 now just "hangs" and does not complete the sync with my iPhone (iOS 6.1.6).

    Hello all,
    I've seen similar posts earlier in Apple discussions, but I haven't come across a definitive answer yet…So, let me ask again:
    Up until 6-7 hours ago, iTunes 12.0.1 was working perfectly well including syncing with my iPhone (I use an oldie but a goodie and it suits my purposes, iOS 6.1.6, 3GS).  Specifically iTunes now "hangs" and will not complete the syncing process with my iPhone. It get to "2 of 6" in the backing up process, and then the spinning beach ball appears. I keep my iTunes library on a separate external HD (USB).
    Even if I only want to launch iTunes 12 to use it (and NOT sync), the application freezes.
    In similar posted questions, "Linc Davis" has asked that the user run a diagnostic using the Terminal utility.  I have done this, and I paste the results below.
    Any help with this is appreciated!
    System Version: OS X 10.8.5 (12F45)
    Kernel Version: Darwin 12.5.0
    Boot Mode: Normal
    Model: MacBookPro6,2
    USB
       USB Optical Mouse (KYE Systems Corp.)
    System diagnostics
       2014-11-06 iTunes hang
       2014-11-06 iTunes hang
       2014-11-06 iTunes hang
       2014-11-06 iTunes hang
       2014-11-06 iTunes hang
       2014-11-06 iTunes hang
       2014-11-06 iTunes hang
       2014-11-06 iTunes hang
       2014-11-06 iTunes hang
       2014-11-06 iTunes spin
    User diagnostics
       2014-10-26 DiskAid crash
       2014-11-03 CalendarAgent crash
    Kernel messages
       Nov 4 00:58:33   wl0: Roamed or switched channel, reason #2, bssid 4a:xx:xx:xx:xx:70 (note: I blocked these numbers out)
       Nov 4 09:11:52   SIOCPROTODETACH_IN6: utun0 error=6
       Nov 4 09:26:03   wl0: Roamed or switched channel, reason #8, bssid 4a:xx:xx:xx:xx:70
       --- last message repeated 5 times ---
       Nov 5 00:53:48   IOAudioStream[0xffffff8020a0b200]::clipIfNecessary() - Error: attempting to clip to a position more than one buffer ahead of last clip position (1,464)->(2,668).
       Nov 5 00:58:25   IOAudioStream[0xffffff8020a0b200]::clipIfNecessary() - Error: attempting to clip to a position more than one buffer ahead of last clip position (1,444)->(2,644).
       Nov 5 02:48:38   IOAudioStream[0xffffff8020a0b200]::clipIfNecessary() - Error: attempting to clip to a position more than one buffer ahead of last clip position (1,440)->(2,640).
       Nov 5 02:48:38   wl0: Roamed or switched channel, reason #8, bssid 4a:xx:xx:xx:xx:70
       --- last message repeated 1 time ---
       Nov 5 02:51:16   IOAudioStream[0xffffff8020a0b200]::clipIfNecessary() - Error: attempting to clip to a position more than one buffer ahead of last clip position (1,420)->(2,620).
       Nov 5 08:10:45   SIOCPROTODETACH_IN6: utun0 error=6
       Nov 5 08:26:07   wl0: Roamed or switched channel, reason #8, bssid 4a:xx:xx:xx:xx:70
       Nov 5 10:09:50   smb_ntstatus_error_to_errno: Couldn't map ntstatus (0xc0020050) to errno returning EIO
       Nov 5 12:43:34   SIOCPROTODETACH_IN6: utun1 error=6
       Nov 5 12:46:11   wl0: Roamed or switched channel, reason #8, bssid 4a:xx:xx:xx:xx:70
       Nov 5 16:55:00   SIOCPROTODETACH_IN6: utun1 error=6
       Nov 5 21:51:41   IOAudioStream[0xffffff8010256400]::clipIfNecessary() - Error: attempting to clip to a position more than one buffer ahead of last clip position (1,418)->(2,618).
       Nov 5 21:52:04   IOAudioStream[0xffffff8010256400]::clipIfNecessary() - Error: attempting to clip to a position more than one buffer ahead of last clip position (1,658)->(2,858).
       Nov 5 21:53:44   IOAudioStream[0xffffff801567f000]::clipIfNecessary() - Error: attempting to clip to a position more than one buffer ahead of last clip position (1,478)->(2,678).
       Nov 5 21:54:28   IOAudioStream[0xffffff801567f000]::clipIfNecessary() - Error: attempting to clip to a position more than one buffer ahead of last clip position (1,458)->(2,658).
       Nov 5 22:00:05   SIOCPROTODETACH_IN6: utun1 error=6
       Nov 5 22:08:48   IOAudioStream[0xffffff80180a4200]::clipIfNecessary() - Error: attempting to clip to a position more than one buffer ahead of last clip position (1,40c)->(2,60c).
       Nov 5 22:31:57   SIOCPROTODETACH_IN6: utun1 error=6
       Nov 5 23:01:19   wl0: Roamed or switched channel, reason #8, bssid 4a:xx:xx:xx:xx:70
       Nov 6 00:01:42   SIOCPROTODETACH_IN6: utun0 error=6
    Loaded extrinsic kernel extensions
       com.freecom.driver.BoulderScsi (1.0.0d1)
    Extrinsic daemons
       com.bitdefender.CoreIssues
       com.bitdefender.Daemon
       com.bitdefender.UpdDaemon
       com.wdc.WDSmartWareServer
       com.wdc.WDDMservice
       com.trusteer.rooks.rooksd
       com.sonycorporation.BloggieInstallerAgent
       com.oracle.java.JavaUpdateHelper
       com.microsoft.office.licensing.helper
       com.cisco.anyconnect.vpnagentd
       com.bitdefender.upgrade
       com.bitdefender.AuthHelperTool
       com.adobe.fpsaud
    Extrinsic agents
       com.trusteer.rapport.rapportd
       com.sony.BloggieSoftware.AutoRun
       com.cisco.anyconnect.gui
       com.bitdefender.antivirusformac
       com.Livestation
       com.google.keystone.user.agent
       com.divx.agent.postinstall
       com.adobe.ARM.UUID
    launchd items
       /Library/LaunchAgents/com.bitdefender.antivirusformac.plist
        (com.bitdefender.antivirusformac)
       /Library/LaunchAgents/com.cisco.anyconnect.gui.plist
        (com.cisco.anyconnect.gui)
       /Library/LaunchAgents/com.sony.BloggieSoftware.AutoRun.plist
        (com.sony.BloggieSoftware.AutoRun)
       /Library/LaunchAgents/com.trusteer.rapport.rapportd.plist
        (com.trusteer.rapport.rapportd)
       /Library/LaunchDaemons/com.adobe.fpsaud.plist
        (com.adobe.fpsaud)
       /Library/LaunchDaemons/com.bitdefender.AuthHelperTool.plist
        (com.bitdefender.AuthHelperTool)
       /Library/LaunchDaemons/com.bitdefender.upgrade.plist
        (com.bitdefender.upgrade)
       /Library/LaunchDaemons/com.cisco.anyconnect.vpnagentd.plist
        (com.cisco.anyconnect.vpnagentd)
       /Library/LaunchDaemons/com.microsoft.office.licensing.helper.plist
        (com.microsoft.office.licensing.helper)
       /Library/LaunchDaemons/com.oracle.java.JavaUpdateHelper.plist
        (com.oracle.java.JavaUpdateHelper)
       /Library/LaunchDaemons/com.sonycorporation.BloggieInstallerAgent.plist
        (com.sonycorporation.BloggieInstallerAgent)
       /Library/LaunchDaemons/com.trusteer.rooks.rooksd.plist
        (com.trusteer.rooks.rooksd)
       /Library/LaunchDaemons/com.wdc.WDDMservice.plist
        (com.wdc.WDDMservice)
       /Library/LaunchDaemons/com.wdc.WDSmartWareServer.plist
        (com.wdc.WDSmartWareServer)
       Library/LaunchAgents/com.adobe.ARM.UUID.plist
        (com.adobe.ARM.UUID)
       Library/LaunchAgents/com.apple.AddressBook.ScheduledSync.PHXCardDAVSource.UUID. plist
        (com.apple.AddressBook.ScheduledSync.PHXCardDAVSource.UUID)
       Library/LaunchAgents/com.apple.AddressBook.ScheduledSync.PHXCardDAVSource.UUID. plist
        (com.apple.AddressBook.ScheduledSync.PHXCardDAVSource.UUID)
       Library/LaunchAgents/com.divx.agent.postinstall.plist
        (com.divx.agent.postinstall)
       Library/LaunchAgents/com.google.keystone.agent.plist
        (com.google.keystone.user.agent)
       Library/LaunchAgents/com.Livestation.plist
        (com.Livestation)
    Extrinsic loadable bundles
       /System/Library/Extensions/acsock.kext
        (com.cisco.kext.acsock)
       /System/Library/Extensions/BoulderScsi.kext
        (com.freecom.driver.BoulderScsi)
       /System/Library/Extensions/WD1394HPDriver.kext
        (com.wdc.driver.1394HP)
       /System/Library/Extensions/WDUSBHPDriver.kext
        (com.wdc.driver.USBHP)
       /Library/Audio/Plug-Ins/Components/Flip4Mac WMA Import.component
        (net.telestream.wmv.import)
       /Library/Internet Plug-Ins/AdobePDFViewer.plugin
        (com.adobe.acrobat.pdfviewer)
       /Library/Internet Plug-Ins/AdobePDFViewerNPAPI.plugin
        (com.adobe.acrobat.pdfviewerNPAPI)
       /Library/Internet Plug-Ins/DivXBrowserPlugin.plugin
        (com.divx.DivXBrowserPlugin)
       /Library/Internet Plug-Ins/Flash Player.plugin
        (com.macromedia.Flash Player.plugin)
       /Library/Internet Plug-Ins/Flip4Mac WMV Plugin.plugin
        (net.telestream.wmv.plugin)
       /Library/Internet Plug-Ins/iPhotoPhotocast.plugin
        (com.apple.plugin.iPhotoPhotocast)
       /Library/Internet Plug-Ins/JavaAppletPlugin.plugin
        (com.apple.java.JavaAppletPlugin)
       /Library/Internet Plug-Ins/SharePointBrowserPlugin.plugin
        (com.microsoft.sharepoint.browserplugin)
       /Library/Internet Plug-Ins/SharePointWebKitPlugin.webplugin
        (com.microsoft.sharepoint.webkitplugin)
       /Library/Internet Plug-Ins/Silverlight.plugin
        (com.microsoft.SilverlightPlugin)
       /Library/Internet Plug-Ins/SonyOnlineMediaEngine.bundle
        (com.sony.sonyonlinemediaengine)
       /Library/Internet Plug-Ins/TVUPlugin.webplugin
        (com.tvunetworks.TVUPlugin)
       /Library/PreferencePanes/Flash Player.prefPane
        (com.adobe.flashplayerpreferences)
       /Library/PreferencePanes/Flip4Mac WMV.prefPane
        (net.telestream.wmv.prefpane)
       /Library/PreferencePanes/RapportPreferences.prefPane
        (com.trusteer.RapportPreferences)
       /Library/QuickTime/Flip4Mac WMV Advanced.component
        (net.telestream.wmv.advanced)
       /Library/QuickTime/Flip4Mac WMV Export.component
        (net.telestream.wmv.export)
       /Library/QuickTime/Flip4Mac WMV Import.component
        (net.telestream.wmv.import)
       /Library/Spotlight/GBSpotlightImporter.mdimporter
        (com.apple.garageband.spotlightimporter)
       Library/Address Book Plug-Ins/SkypeABDialer.bundle
        (com.skype.skypeabdialer)
       Library/Address Book Plug-Ins/SkypeABSMS.bundle
        (com.skype.skypeabsms)
    Extrinsic shared libraries
       /usr/lib/libgutenprint.2.dylib
       /usr/lib/sqlite/libtclsqlite3.0.dylib
    Global login items
       /Library/Application Support/WDSmartWare/WDQuickView.app
    User login items
       Dropbox.app
       GREEN BUTTON.app
       SpeechSynthesisServer.app
    Safari extensions
       Ghostery
       Facebook Disconnect
       Twitter Disconnect
       DivXHTML5
       TrafficLight
    Restricted user files: 21
    Font problems: 40
    Bad plists
       Library/Preferences/com.apple.iphotomosaic.plist
    Desktop file count: 25
    Elapsed time (s): 75

    Dear Linc,
    Thanks, once again, for repeating yourself by sending me the message above (a message you have sent to MANY users with this problem)!
    However, you give me this great opportunity to say two things:  1) YAHOO! I fixed the problem, and 2) I want to share how I did so because I hope it helps others.
    With the help of reading info at this website http://osxdaily.com/2011/09/22/fix-the-itunes-library-itl-cannot-be-read-version -error-when-downgrading-itunes/, I followed this procedure:
    1) I deleted the iTunes 12.0.1 app from my computer
    2) In addition, in reading related details at the website above (i.e., by clicking on links on the page AND scrolling to the very bottom to view links to related articles), in my iTunes library folder, I changed MY CURRENT "iTunes Library.itl" to "iTunes Library.old", as the website advises. The current .itl file was the one being used by the iTunes app I had just deleted from my computer.
    3) I went to the "Previous iTunes Libraries" folder and dragged a copy of the second-most recent .itl file to my desktop (for me, this file was "iTunes Library 2014-07-23.itl").
    4) I re-named it to "iTunes Library.itl"
    5) I then dragged a copy of the file in step #4 to my iTunes folder (the folder in which you now also have the "iTunes Library.old" file).
    6) I closed all remaining apps on my computer that were opened and I restarted it.
    7) Now, you don't have any iTunes app on your computer, so I downloaded a .dmg of iTunes 12.0.1.26 and installed the app (for example, you can download from here: http://www.macupdate.com/app/mac/5661/apple-itunes.
    8) Once installed, I opened iTunes and immediately I got the dialogue box, "updating iTunes library" -- THIS TOOK FOREVER AS I HAVE CLOSE TO 1,000 SONGS + OTHER ITEMS IN MY LIBRARY!
    9) I patiently waited until the library update completed, but it DID COMPLETE.
    10) Viola!  iTunes 12 is not "hanging" (or freezing) any longer.  I can navigate around the application.
    CAVEATS:
    1) Before I first deleted "the corrupted" iTunes 12, I was able to open the Preferences panel, go to "Devices", and check the box that stops the app from syncing with my iPhone.  This setting seemed to carry over; thus, I have not tried to sync yet…WISH ME LUCK!
    2) After going through steps 1-10 above, I didn't immediately have Internet Radio available in the application (i.e., I didn't see it), but it is now showing up and it works!  I just had to wait for a few minutes...
    3) I also use iTunes Match, but I haven't turned it on yet in the newly installed app. On the iTunes Match page, it says, "Add this computer" or "No thanks". So, the app is behaving as if I'm just beginning to use iTunes Match for the first time.  Later, I will click on "Add this computer", and I hope it goes smoothly!
    4) This isn't a caveat, but I think I should say: my iTunes library is on an external USB HD (I have to say THANK GOD for that). Obviously, this has implications for doing steps 2 to 5 above. The newly installed iTunes 12 app had no trouble in finding where my library is (I had it set up this way back when I was using iTunes 10).
    5) One last piece of advice: Make sure that when you plug your iPhone into any other computer only to re-charge but the iTunes app on that computer wants to sync with your phone, you DON'T let it sync.  First, you should go to Preferences in the iTunes app and click on "Devices". Then check the box that says, "Prevent iPods, iPhones,…….from syncing automatically."  After that, you would be able to plug in your iPhone to another computer to re-charge it.
    FINALLY:  I THANK EVERYONE WHO WAS WILLING TO SUGGEST SOLUTIONS TO ME REGARDING THIS PROBLEM!  I see that MANY users are having this difficulty, so I thought it would be fair for me to share how I resolved the issue -- my iTunes is running fine now...

  • TS2771 my ipod touch 4th gen is connected to wifi and will not open the app store or any of my social media apps i am logged in to itunes so i have no idea why its not letting me use app store itunes or any social media

    My Ipod Touch 4th Generation is connected to wi-fi and will not open the app store.  Says it cannot connect to iTunes Store.  I can get on the internet but for some reason it won't connect to the app store or the Software Updates.

    Can't connect to the iTunes Store
    For the socal sites, are y using a home network?
    Did it work before?
    Some work networks block sits like social sites.

Maybe you are looking for

  • Gnome 3 log file viewer crashes on file open

    Hi everyone,     I'm experiencing an annoying issue in which the system log file viewer crashes when I load certain log files.  For example, if I go to file>open>crond.log, the viewer will crash. The same occurs with errors.log, kernel.log, pm-suspen

  • CUCM and UCCX JTAPI version 7.1(5) vs 7.1(5b)

    Wondering if any one has CUCM 7.1(5) running with UCCX and what JTAPI version is being used?  Then if anyone is running CUCM 71(5b) and if what version of JTAPI is being used?   Running into bug on CUCM 7.1(3) CSCtb77537 and need to upgrade.

  • Dynamicly linked and stabalized footage doesn't work in PPro

    Hi, I've got a bit of a strange situtaion going on between After Effects and PPro. I am using PPro and After Effects CS5 from the Production Premium Suite and I sent some footage over to AE from PPro to stabalize via Dynamic Link. Everything works fi

  • Ipod turning of and won't sync

    My ipod keeps turning off and when it comes back on the setting have changes (font size is different, clicker noise is back on) and now it won't sync up with itunes so I can add all the new music that I just got. Any suggestions on how to fix these i

  • How to convert BlobDomain to Blob ?

    Hi all! I have created row in VO with field of BlobDomain type according to "File Upload and Download" in Developer guide. I want to save this row in database now. I created CallableStatement and tried to set values in the insert query. This code wor