How to fix the error "multipart identifier could not be found"

This is my code. Please let me know how to fix this.
DECLARE @DATEPROCESS DATETIME;
DECLARE @TODAYDATE DATETIME;
DECLARE @PARAMORG VARCHAR(50);
DECLARE @BATCHSIZE INT;
SET @PARAMORG='USA';
SET @DATEPROCESS = CAST(DATEADD(D, -((DATEPART(WEEKDAY, GETDATE()) + 1 + @@DATEFIRST) % 7), GETDATE()) AS DATE)
SET @TODAYDATE=CAST(GETDATE() AS DATE)
SET @BATCHSIZE = 2000
Select
FFC.[DSSI Item #] as PART,
REPLACE(REPLACE(FFC.[Splr Name],'&','-'), '''', '') as SPLRNAME,
@PARAMORG as ORG,
FFC.[REPLACEMENT ITEM#] as REPITEM,
FFC.[NEEDS RFQ?] RFQ,
FFC.[BUY INCREMENT] INCR,
FFC.[PRICE GOOD THRU DATE] GDATE,
CASE 
WHEN FFC.[ACTIVE INACTIVE FLAG] = 'A' THEN '-' 
WHEN FFC.[ACTIVE INACTIVE FLAG] = 'D' THEN '+' 
END as FLAG,
1 as UPD  into #TEMPJOIN
FROM R5PARTS RP JOIN FRI_FULL_CATALOG FFC  ON RP.PAR_UDFCHAR06 = FFC.[DSSI Item #]
WHERE RP.PAR_ORG=@PARAMORG AND FFC.FRI_CREATED=@DATEPROCESS 
WHILE @BATCHSIZE <> 0
BEGIN
   UPDATE  TOP (@BATCHSIZE) RP
SET
RP.PAR_PREFSUP= TJ.SPLRNAME,
RP.PAR_PREFSUP_ORG=TJ.ORG,
RP.PAR_UDFCHAR05 = TJ.REPITEM,
RP.PAR_UDFCHAR09 = TJ.RFQ,
RP.PAR_UDFNUM01 = TJ.INCR,
RP.PAR_UDFDATE01= TJ.GDATE,
RP.PAR_UDFCHKBOX01 = TJ.FLAG,
TJ.UPD=0
FROM R5PARTS RP JOIN #TEMPJOIN TJ  ON RP.PAR_UDFCHAR06 = TJ.PART and TJ.UPD='1'
  SET @BATCHSIZE = @@ROWCOUNT
END  

Hi Balamurugan,
To update multiple tables, you need to use individual update statements. Please see below pseudo-code.
UPDATE T1
SET T1.col='col'
FROM
T1 JOIN T2 ON T1.ID=T2.ID
WHERE ...
UPDATE T2
SET T2.col='col'
FROM T1 JOIN T2 ON T1.ID = T2.ID
WHERE ..
If you have any feedback on our support, you can click
here.
Eric Zhang
TechNet Community Support

Similar Messages

  • Itunes installation problem I get the error IXP577 file could not be found.

    I keep getting this error, I get it if I try to install the new version of Itunes, or if I try and delete the version already on my computer. This is my personal laptop and have administative access to everything on here thru windows
    The feature you are trying to use is on a network resource that is unavailable.
    Click OK to try again, or enter an alternate path to a folder containing the installation package iTunes64.msi in the box below.
    C:\Users\user\AppData\Local\Temp\IXP577.TMP\
    Please help, I have been trying for months to get this work!

    may i suggest opening the files in Olymous Viewer 3  and exporting them (you can do some editing there if you wish or not) asTIFF files. After that you can import the new files into LR. LR seems to like tiiff more than .orf files 
    The advantage to using OV3 is that it seems to do a much better job converting RAW EM1 files. Colors are more accurate ( my red flower pot turned orange when loaded directly into lightroom)
    . The tiff files just LOOK better in LR  after the conversion . there is a youtube on this subject and when i tried it myself i was impressed 

  • Quick time error "a file could not be found"

    Quick time error "a file could not be found" when trying to open a file that exist in a directory name including hebrew characters.
    When copying the same file to other directory with english characters only, file opens without any problem.
    This is very frustrating since my files are located under My documents directory
    The full path of the "My Document" directory is:
    C:\Documents and Settings\אלון\My Documents.
    Also, I have IPOD 5G (with video). iTunes does not have any problems with audio files located under the above directory, but video files for my IPOD have the same problem (since probably it is using Quick time). The problem with iTunes is more frustrating since it does not report any error, but you just cant update video podcasts or add video files to library.
    I spent a few days to uderstand this.
      Windows XP  

    http://discussions.apple.com/thread.jspa?threadID=769732
    This is a old post from when I had recieved the Error-43 file could not be found. In my case I had a drive lettered F:\ F:\ when changing the drive to a single letter F:\ it resolved the problem, so something you might want to take a look at.

  • How to fix this error "this iPad is not able to complete the activation process. Please press Home and start over. If the issue persists, please visit your nearest Apple Store or Authorized service provider for more information or replacement"?

    How to fix this error "this iPad is not able to complete the activation process. Please press Home and start over. If the issue persists, please visit your nearest Apple Store or Authorized service provider for more information or replacement"? When I plugged in my iPad this popped up!

    Hi csreddy, 
    If you are receiving a message to contact an Apple Retail Store or Authorized Service Provider for help updating from iOS 3, click on the link below to initiate that support:
    Update the iOS software on your iPhone, iPad, and iPod touch - Apple Support
    http://support.apple.com/en-us/HT204204
    Update your device using iTunes
    If you can’t update wirelessly, or if you want to update with iTunes, follow these steps:
    Install the latest version of iTunes on your computer.
    Plug in your device to your computer.
    In iTunes, select your device.
    In the Summary pane, click Check for Update. 
    Click Download and Update.
    If you don't have enough free space to update using iTunes, you'll need to delete content manually from your device.
    Find out what to do if you get other error messages while updating your device.
    Last Modified: Jan 12, 2015
    Apple - Find Locations
    https://locate.apple.com
    Contact Apple for support and service - Apple Support
    http://support.apple.com/en-us/HT201232
    Regards,
    - Judy

  • How to get rid of the error message we could not complete your iTunes store request?

    How to get rid of the error message we could not complete your iTunes store request?
    having this problem when trying to authorise an newly downloaded app in iTunes

    Based on the numerous posts regarding iTunes and the App Store, there appears to be an issue at Apple's end. Although Apple has not provided any indication on the cloud status page.
    Do not change your settings.
    Edit

  • How i fix the error 1015 for my iphone3g coz my phone i opining

    how i fix the error 1015 for my iphone3g coz my phone i opining and also i can use since i face that problem

    Yes, if it has been jailbroken, then there is probably nothing that you can do and you will never be able to use it, so ditch it and buy a new phone.
    If it's an iPhone 3g, then it is a very old phone anyway and you shoud consider buying a new one.

  • TS2529 how to fix the error message itunes can't sync apps because it can't determine what apps are installed

    how to fix the error message itunes can't sync apps because it can't determine what apps are installed

    Hi,
    This may be Helpful 
    AMDS for Windows
    http://support.apple.com/kb/TS1567

  • Am from India. when i tried to turn on face time the error displayed is" Could not  sign in. Check your network connection and try again". how can it be resolved?

    Am from India. when i tried to turn on face time the error displayed is" Could not  sign in. Check your network connection and try again". how can it be resolved?

    If you are using someone else's WiFi they may have restrictions in place.
      (cofee shop, etc..)
    Have you tried connecting using at least more than one particular WiFi network ?
    You might want to try googling for a bandwidth test site
      verify you have reasonable throughput..
        1 megabit up and 1 megabit down..
          (bandwidthplace.com is what I typically use..)

  • How to fix the error code 1009?

    How to fix the error code 1009?

    Fix for error 1009 in iPhone 4S? - ThinkiOS
    How to fix error 1009 with your iDevice . - YouTube
    Change iTunes Store Country on an iDevice
    1. Tap Settings;
    2. Tap iTunes & App Stores;
    3. Tap View Apple ID;
    4. Enter your user name and password;
    5. Tap Country/Region;
    6. Tap Change Country/Region;
    7. Select the region where you will be located;
    8. Tap Done.
    Also, see How to Change Your iTunes Store Account Location | eHow.com.

  • How can I resolve error message, Linklok could not open the file ?

    I have an MP3 subscription download link (with Abraham HIcks) but I am unable to complete the download because I get the error message "Linklok could not open the file".

    Please have the site administrator contact us at vibralogix.com as it appears something is not setup correctly with Linklok on their site.

  • How do i fix "Merge to HDR.jsx could not be found" cs6?

    how do i fix "Merge to HDR.jsx could not be found" cs6?

    Nobody can tell without some system info. Start by running the Creative Suite Cleaner Tool and reinstalling PS.
    Mylenium

  • HT1414 I restored my iPhone and when sync is in progress I receivee the error message "iTunes could not back up the iPhone because a session could not be started with the iPhone."  Any suggestions?

    I restored my iPhone and when sync with iTunes is in progress I receive the error message "iTunes could not back up the iPhone because a session could not be started with the iPhone."  Any suggestions on what to do?

    Hi Judy,
    Im using windows 7 and im not a computer wizard, i've tried the method by using the instruction for Win7 but it does not work, same problem still exist.
    Could uninstall itunes and reinstall it back on my pc fix my problem, please advise...... Many Thanks!
    VBR,
    ray

  • I recently upgraded computer to windows 7.  When I open itunes I am able to see my music library, but unable to play.  Gives an error message of "Could not be found".  How do I retrieve my library contents?

    I recently upgraded computer to Windows 7.  When I open itunes I am able to see my music library, but unable to play.  Gives an error message of "Could not be found".  How do I retrieve my library contents?

    Hello ehoff5,
    I would be concerned too if I was not able to play my music in iTunes.  It sounds like the music files may be in a location that iTunes is not expecting.  I recommend reviewing the following articles to locate you music files on your computer:
    iTunes: Finding lost media and downloads
    http://support.apple.com/kb/ts1408
    Where are my iTunes files located?
    http://support.apple.com/kb/ht1391
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • TS1424 everytime i try to download an app from itunes, or to 'view all' the apps listed, the error says; 'We could not complete your iTunes Store reuest. The network connection was reset' I used both my desktop and laptop both on Windows 7 Pro, & net is f

    everytime i try to download an app from itunes, or to 'view all' the apps listed, the error says; 'We could not complete your iTunes Store reuest. The network connection was reset' I used both my desktop and laptop both on Windows 7 Pro, & net is fine. please help. is there soemthing wrong with apple store temporarily?

    The latest message is: 'We could not complete your iTunes Store request. The network connection was reset.'
    In between, I got a messge about verifying my payment method. When I tried to submit the details, I kept getting a mmessage stating that my payment method was declined (my card is not near it's expiration date, and works fine).
    Argh!

  • Using Windows 8.1 with Directx11, when I lauch Photoshop Elements Organizer, I see the error message "DirectX could not be initialized. Please be sure that it is installed on your system. You can download the latest DirectX installer from:[URL] I have the

    Using Windows 8.1 with Directx11, when I lauch Photoshop Elements 12 Organizer, I see the error message "DirectX could not be initialized. Please be sure that it is installed on your system. You can download the latest DirectX installer from:[URL] I have the latest version, Directx11, as verified by running dxdiag.

    Maybe you need to enable Direct Play under Legacy Components in the Turn Windows Features on or off dialog.
    1. Right click on the windows start Logo on the taskbar, select Control Panel and click on Programs
    2. Under Programs and Features click on Turn Windows Features on or off and then under Legacy Components enable Direct Play

Maybe you are looking for