No Column Name Was Specified for Column 1 of 'ShipFromStoreXML'

I get the error:
Msg 8155, Level 16, State 2, Line 16
No column name was specified for column 1 of 'ShipFromStoreXML'.
My SQL is as follows:
SELECT * FROM (
 SELECT [StoreInventoryID] AS A
    ,[StoreID]
    ,[ProductID] AS B
    ,[QtyOnHand]
    ,[QtyDefective]
    ,[QtyTradeHold]
    ,[ModifiedDate]
    ,[CreatedDate]
    ,[QtyReservationHold]
    ,[QtyHopsHold]
    ,[QtyTradeHoldDefective]
   FROM [StoreInformation].[dbo].[StoreInventory]
   WHERE StoreID = 8127
   FOR XML PATH('Item'),ROOT('ShipNode'))
   AS ShipFromStoreXML 
Ryan P. Casey • <a href="http://www.R-P-C-Group.com">www.R-P-C-Group.com</a>

You just have to give the column an alias
SELECT * FROM (
SELECT [StoreInventoryID] AS A
,[StoreID]
,[ProductID] AS B
,[QtyOnHand]
,[QtyDefective]
,[QtyTradeHold]
,[ModifiedDate]
,[CreatedDate]
,[QtyReservationHold]
,[QtyHopsHold]
,[QtyTradeHoldDefective]
FROM [StoreInformation].[dbo].[StoreInventory]
WHERE StoreID = 8127
FOR XML PATH('Item'),ROOT('ShipNode')
AS ShipFromStoreXML(x)
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page

Similar Messages

  • HT1414 the iphone software update server could not be contacted.a duplicate file name was specified , please help as this is driving me nuts,does anyone know which file it could possibly be ?

    Hi could anyone help me out? my iphone 3gs keeps restarting itself every two minutes which i think is some kind of software issue,now there are a number of things i have done starting with putting in a new battery.when i charge the phone it resets itself every two minutes or so and the battery indicator stays at 4% so i decided to restore the phone on itunes (which is the latest edition) and when i connect my phone which i have put into recovery mode using the buttons, i get an error message saying :- the iphone software update server could not be contacted.a duplicate file name was specified. i have tried re-installing i tunes and that doesn't solve the issue and i have trawled through the program files to see if i could spot the duplicate but without success ,has anyone had the same issue and resolved it?

    An iPhone 3G cannot be updated beyond iOS 4.2.1...that's the end of the line for your phone.

  • Can't synch iPod classic to iTunes after updating iTunes. a duplicate file name was specified.

    I can't synch my iPod classic. "A duplicate file name was specified." I tried on two different computers on which it had previously worked fine.

    Try deleting the iPod Photo Cache from the nominated folder that you have set up to sync photos to the devices.
    See iTunes: Understanding the iPod Photo Cache folder for more info.
    tt2

  • I get an error message when trying to sync my reset ipod "The iPod ...cannot be synced. A duplicate file name was specified."

    i get an error message when trying to sync my reset ipod "The iPod ...cannot be synced. A duplicate file name was specified."

    Locate the photos folder which is selected for syncing with the device and delete the folder iPod Photo Cache inside.
    tt2

  • Each time i try to connect my ipod it keeps coming up with a duplicate file name was specified,

    can some one help me,  each time i plug my ipod into the computor it keeps saying ,, a duplicate file name was specified, how can i change this file name ,,it seems to be the name of the ipod ,,?

    Hi stelincs,
    You should be able to change the name of your iPod classic in the iTunes application.   Here's how:
    Change the name of your iPhone, iPad, or iPod - Apple Support
    https://support.apple.com/en-us/HT201997
    Use your computer
    Connect your device and open iTunes.
    Click the Device button in the upper right corner. (If viewing the iTunes Store, click the Library button in the upper-right corner first.) If you don't see your device, choose Hide Sidebar from the View menu.
    Next to the picture of your device, double-click the name of your device.
    Type the new name for your device and press Return on the keyboard.
    Sync the device (press Sync in the bottom right corner of the screen).
    Last Modified: Feb 4, 2015
    Cheers,
    - Judy

  • Every time i try to sync my iphone with my music on itunes, it says, "The iPhone "KORA" cannot be synced. A duplicate file name was specified."

    I need help

    Hi korasaurous,
    Thanks for visiting Apple Support Communities.
    You may find the troubleshooting steps in this article helpful with resolving the error message you're seeing:
    iTunes: Troubleshooting issues with third-party iTunes plug-ins
    http://support.apple.com/kb/ts3430
    There are several ways an add-on can cause iTunes to act erratically, such as those listed below:
    You see this alert while syncing: "... cannot be synced. A duplicate file name was specified."
    Best Regards,
    Jeremy

  • I am getting and error message saying a duplicate file name was specified

    Help I am trying to sync new songs onto my Iphone and keep getting an error message telling me "the iphone can not be synched. a duplicate file name was specified" how can i fix this,

    I have a 27" iMac with the latest version of iTunes.  I tried restoring my iPod and even removing and re-installing iTunes.  What eventually worked for me was plugging into my PC and restoring/reformatting it to work with my PC.  I don't know why it wouldn't work with my iMac, but now it seems to be working.

  • ITunes Library file cannot be saved. A duplicate file name was specified.

    Every time I open up iTunes I get the error 'The iTunes Library file cannot be saved. A duplicate file name was specified.'
    I've had this problem for a couple of months, tried out every solution I can find, changed the library names, recreated the library etc. Recreating the library seemed to work for a few days, but now the problem has returned. Because of this problem I can't add any new songs to my iTunes, and I cannot update any of my apps.
    Any help would be appreciated!

    I also have the same problem as in the duplicate file was specified thing after opening up itunes.
    But for me is the apps. I can't download or update my apps from my comp but i can do that on my iphone. I did tried to transfer purchases but it popped up about something that if i dont authorize this comp my apps will be removed. When i clicked dont authorize, it removed almost all my apps so i stopped in the middle of syncing. I click authorize and after entering my apple ID, another pop up saying that there is an error in transfering the purchases and told me to repair my itunes. I tried that too but it didnt work. I already did authorize my comp long ago. When i clicked cancel, it doesnt sync all my stuff and remains the same cause it always stuck at the apps. I tried to uninstall itunes but it says there's an error in the package thing, error code 2330. Any idea on what should i do? >_<

  • Receiving "The Itunes Library file cannot be saved. A duplicate file name was specified".

    Itunes Version 10.5.3.3
    Using Iphone 4 on Windows 7 Proffesional PC.
    Keep getting "The Itunes Library file cannot be saved. A duplicate file name was specified" when trying to sync Itunes with Iphone.
    Have tried the following steps;
    first you have to locate your last library file, you can do this by clicking Edit-preferences-advanced. it will show you the itunes media folder location. then close Itunes
    open your folder and locate the last library (libraries are saved with date names, find the most recent one or the one that was last modified).
    change the name of the library to today´s date following the format it already has. you will have to change the name for libraries: .itl, .xml, genius and extras.
    once you have changed the name to today´s date on the 4 libraries you will have to delete all other libraries existing on the same folder or on a folder named "previous itunes libraries". it is also recommended to delete the itunes "preferences file" .dat (usually 1kb) and the "sentinel" file.
    so, you will have on your itunes media folder only 4 libraries: .itl .xml genius and extras.
    the next step is to click the itunes icon holding the "shift" key . itunes will ask you to either "quit, choose library or create library" click on choose library. then locate the library you just renamed with today´s date and extension .itl
    done, itunes will open with the last saved version of your library. keep in mind that some changes or songs will not be present if you added any while getting the error "itunes cannot save the library file. a duplicate name has been specified" just locate the songs and add them again, if you have the option "copy files to itunes media folder when adding to library" checked. then go to file-add folder or file-and locate the songs missing on the itunes media folder.itunes saves the files on the hard drive but does not save the changes on the library.
    No luck.
    Any help would be greatly appriciated.

    I found the solution:
    first you have to locate your last library file, you can do this by clicking Edit-preferences-advanced. it will show you the itunes media folder location. then close Itunes
    open your folder and locate the last library (libraries are saved with date names, find the most recent one or the one that was last modified).
    change the name of the library to today´s date following the format it already has. you will have to change the name for libraries: .itl, .xml, genius and extras.
    once you have changed the name to today´s date on the 4 libraries you will have to delete all other libraries existing on the same folder or on a folder named "previous itunes libraries". it is also recommended to delete the itunes "preferences file" .dat (usually 1kb) and the "sentinel" file.
    so, you will have on your itunes media folder only 4 libraries: .itl .xml genius and extras.
    the next step is to click the itunes icon holding the "shift" key . itunes will ask you to either "quit, choose library or create library" click on choose library. then locate the library you just renamed with today´s date and extension .itl
    done, itunes will open with the last saved version of your library. keep in mind that some changes or songs will not be present if you added any while getting the error "itunes cannot save the library file. a duplicate name has been specified" just locate the songs and add them again, if you have the option "copy files to itunes media folder when adding to library" checked. then go to file-add folder or file-and locate the songs missing on the itunes media folder.itunes saves the files on the hard drive but does not save the changes on the library.
    hope this is clear enough.

  • Podcasts broken in 9.2 with error "A duplicate file name was specified"

    Ever since the 9.2 upgrade my podcasts have not been able to update. The following error message is displayed when I click the icon next to the podcast:
    +There was a problem downloading "... podcast name ...". A duplicate file name was specified.+
    Digging in the iTunes download directory I see that a directory entry is created for each podcast (with a .tmp suffix). Inside there is a download.mp3 that is zero bytes in size.
    I've tried reorganizing the library, restarting, reinstalling, etc.
    Not sure if this matters, but I've been mounting my itunes library via nfs for the past five years or so without any issue.
    I tried to see what iTunes was up to via dtrace/iosnoop but it appears that they've gone and restricted that at the OS level -- so no luck there. Any luck here?

    Close iTunes, delete the download directory, and restart.
    tt2

  • I keep getting this message "A dublicate file name was specified Windows"

    I've tried everything, this has been going on for months, and now I really need help.
    I just bought an album on itunes, had to send it to myself as a gift, to make it work. It did, but now I can't download it, because I keep getting this error: "A dublicate file name was specified".
    I'm using windows 7.
    I really hope someone can help me. The support wasn't very helpful....

    Hmm, I'm most familiar with that message in the context of syncing devices when it usual means a problem with the iPod Photo Cache. Any chance of a screenshot of the error message? What exactly do you do before it appears?
    Also try this post from b noir, he seems to know most about quirkly iTunes for Windows installs. It may be we need to track down another of his posts that covers how to completely remove iTunes and all other traces of Apple software before reinstalling.
    tt2

  • A duplicate file name was specified

    The iphone could not be synced a file name was specified.
    Does anyone know a fix for this.
    Thanks,
    MJB

    Try looking for and/or deleting incomplete downloads from the the iTunes Media folder. Then try downloading again, so its not resuming or overwriting a previous download.
    Apple does have this article that talks about a very similar syncing error -> iTunes: Troubleshooting issues with third-party iTunes plug-ins.
    WTH.

  • "A duplicate file name was specified" While trying to sync?

    I've literally been trying to make iTunes work with my new iPhone 5c for the past 3 hours, and I'm fed up. Everytime I start up iTunes, it says "A Duplicate file name was specified".  I'm unable to do anything because everytime I try to sync, it gives me that error message. I also can't restore my iPhone because I purchased apps and it says if I restore my iPhone, the apps haven't been added to my library.  It also won't let me authorize my account as it just gives me an error. Please help.

    Try looking for and/or deleting incomplete downloads from the the iTunes Media folder. Then try downloading again, so its not resuming or overwriting a previous download.
    Apple does have this article that talks about a very similar syncing error -> iTunes: Troubleshooting issues with third-party iTunes plug-ins.
    WTH.

  • When starting iTunes I get a message - a duplicate file name was specified

    I had to restore my system (Windows 7).  I deleted and recreated my profile and copied all my music back into my profile as well as all of the AppData settings for iTunes.  All of my music and playlists are fine and all of my settings are fine. 
    However, now I am getting the following error whenever I start iTunes:
    A duplicate file name was specified
    I am running iTunes 10.5.3.3.
    How do I fix this?
    Thanks,
    Bill

    Hello midnite1,
    Thank you for using Apple Support Communities!
    I would recommend uninstalling iTunes altogether, and then installing the newest version from http://www.apple.com/itunes/download/
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    http://support.apple.com/kb/HT1923
    Take care,
    Sterling

  • When i go to sync my ipod nano 5th generation i get an error saying "A duplicate file name was specified".  what do i do then?

    I am trying to sync my iPod nano 5th generation to my computer and when i go to add music through iTunes i get the following message:
    The iPod "X's iPod" cannot be synced.  A duplicate file name was specified.  Any ideas how to fix this?
    On my computer (iMac) while in iTunes it is showing that the music is indeed on my iPod, but when i eject the iPod there is nothing there.

    I have a 27" iMac with the latest version of iTunes.  I tried restoring my iPod and even removing and re-installing iTunes.  What eventually worked for me was plugging into my PC and restoring/reformatting it to work with my PC.  I don't know why it wouldn't work with my iMac, but now it seems to be working.

Maybe you are looking for

  • How to tell apart a 5th generation to a 5th late 2006 model (5.5) ?

    Hi, I will be checking out a used iPod 30gb 5th generation model in order to possibly purchase it tomorrow. Though I've never extensively used an iPod. How can I tell if it's a late 2006 5th generation or not ? What should I look at to find out ? Fra

  • Issue w/ top USB port on 20" rev.B

    I occasionally have the need to use all three ports on the back of the iMac - one for the USB keyboard, HP printer, and USB 2.0 external HDD. Currently (and I'm not sure if this has happened from day 1 or more recently) I cannot use the top USB port.

  • Anyone got Nokia Music to work with (recognise) N9...

    Several times over the last months I have tried to get Nokia Music to work with my N95 8GB. Every time I have spent hours and hours installing, upgrading, uninstalling etc etc but never success. The Nokia Music PC software will not recognize my phone

  • Why can't I see moire reduction tool in camera raw 8.1?

    Hi There, I have been happilly using the moire reduction tool in camera raw up until a day or 2 ago. For some reason the moire reduction panel no longer appears under the adjustment brush. The funny thing is that 1 dng file that I used the moire redu

  • Data upload into infotype 2003

    Hiii    I have a customer requirement to upload flat file containing below fileds into IT2003 PersNo, Begindate, Endate, Daily work schedule. currently they are using LSMW. Can i use Function Module  HR_INFOTYPE_OPERATION' to upload in to IT2003 Rega