The parameters supplied for the batch are not valid.

Error:The parameters supplied for the batch are not valid
Stored Procedure is as follows
CREATE PROCEDURE [dbo].[Usp_TrackVehicleDetails] 
@reg_Number     NVARCHAR(25)
AS
BEGIN
SET NOCOUNT ON;
    DECLARE @Imei_Number    NVARCHAR(25),
@Imei_Table
NVARCHAR(MAX),
@Latitude_Val
NVARCHAR(MAX),
@Longitude_Val  NVARCHAR(MAX),
@Imei_PK
NVARCHAR(MAX),
@result         INT
-- Tracking Device by means of Latitude and Longitude
SELECT @Imei_Number=Imei_No FROM MapDevice_Vehicle WHERE Vehicle_No=@reg_Number;
SELECT @Imei_Table='Imei_'+@Imei_Number
SET @Imei_PK='SELECT(MAX(CAST(Imei_Id AS NVARCHAR(MAX)))) FROM dbo.'+@Imei_Table;
SET @Latitude_Val='SELECT Latitude FROM dbo.' +@Imei_Table+' WHERE CAST(Imei_Id AS NVARCHAR(MAX))='+'('+@Imei_PK+')';
            SET @Longitude_Val='SELECT Longitude FROM dbo.' +@Imei_Table+' WHERE CAST(Imei_Id AS NVARCHAR(MAX))='+'('+@Imei_PK+')';
            EXEC @result= sp_executesql @Imei_PK,@Latitude_Val,@Longitude_Val
            SELECT @result
--RETURN @result
   BEGIN TRY
BEGIN TRANSACTION T1
-- Returning Values based on Vehicle_Number
SELECT ISNULL(@Latitude_Val,'')[latitude],
  ISNULL(@Longitude_Val,'')[longitude]
IF @@ERROR!=0
BEGIN
ROLLBACK TRANSACTION T1
END
ELSE
COMMIT TRANSACTION T1 
END TRY
BEGIN CATCH
SELECT ERROR_MESSAGE() AS ErrMsg, ERROR_LINE() AS ErrLine,ERROR_PROCEDURE() AS ErrProc
END CATCH
END 

Your construct is not correct....
 EXEC @result= sp_executesql @Imei_PK,@Latitude_Val,@Longitude_Val --These
should be  parameters/....
Please try the below(The longitude and latitude to be included...)
/*Test script*/create table MapDevice_Vehicle(vehicle_no nvarchar(25),imei_no nvarchar(25))
Insert into MapDevice_Vehicle Select 'KL8P8234','KL'
create table Imei_KL(Imei_Id nvarchar(25))
Insert into Imei_KL Select 'KL8P8234'
exec [Usp_TrackVehicleDetails] 'KL8P8234'/*Test script*/
CREATE PROCEDURE [dbo].[Usp_TrackVehicleDetails]
@reg_Number NVARCHAR(25)
AS
BEGIN
SET NOCOUNT ON;
DECLARE @Imei_Number NVARCHAR(25),
@Imei_Table NVARCHAR(MAX),
@Latitude_Val NVARCHAR(MAX),
@Longitude_Val NVARCHAR(MAX),
@Imei_PK NVARCHAR(MAX),@paramdefs nvarchar(MAX),@result INT
-- Tracking Device by means of Latitude and Longitude
SELECT @Imei_Number=Imei_No FROM MapDevice_Vehicle WHERE Vehicle_No=@reg_Number;
SELECT @Imei_Table='Imei_'+@Imei_Number
SET @Imei_PK='SELECT(MAX(CAST(Imei_Id AS NVARCHAR(MAX)))) FROM dbo.+@Imei_Table';
SET @paramdefs = N'@Imei_Table nvarchar(255)';
--SET @Latitude_Val='SELECT Latitude FROM dbo.' +@Imei_Table+' WHERE CAST(Imei_Id AS NVARCHAR(MAX))='+'('+@Imei_PK+')';
--SET @Longitude_Val='SELECT Longitude FROM dbo.' +@Imei_Table+' WHERE CAST(Imei_Id AS NVARCHAR(MAX))='+'('+@Imei_PK+')';
EXEC @result= sp_executesql @Imei_PK,@paramdefs,@Imei_Table = @Imei_Table
SELECT @result
--RETURN @result
BEGIN TRY
BEGIN TRANSACTION T1
-- Returning Values based on Vehicle_Number
SELECT ISNULL(@Latitude_Val,'')[latitude],
ISNULL(@Longitude_Val,'')[longitude]
IF @@ERROR!=0
BEGIN
ROLLBACK TRANSACTION T1
END
ELSE
COMMIT TRANSACTION T1
END TRY
BEGIN CATCH
SELECT ERROR_MESSAGE() AS ErrMsg, ERROR_LINE() AS ErrLine,ERROR_PROCEDURE() AS ErrProc
END CATCH
END

Similar Messages

  • MyApp was not installed on the iPhone "myPhone" because the entitlements are not valid

    Just in case it help anyone. I was experiencing a problem where every time I attempted to add an app to my iPhone via iTunes, I was getting the error
    MyApp was not installed on the iPhone "myPhone" because the entitlements are not valid
    I have figured out the problem to be that the App ID which you fill in on the AIR for IOS Settings Deployment settings screen needed to be the App ID I had included in my provisioning profile. This setting appears to be auto-completed with the name of the Flash file so you need to be sure to change this if you are having this problem.
    Hope that helps someone.....

    First app could be a nightmare . So I repost
    http://forums.adobe.com/message/3471632#3471632

  • The links to download the software are not valid and not functioning

    I have the disc to CS5 but we upgraded to 6 in January.  I no longer have the product on my computer and so I atempted to install it by clicking th download link in the email I recived in January but it no longer works.  I have my serial number but I am so confused as to how I can get this added back onto my computer.  I still have the CS5 disc but not sure what to do

    Rmerrill,
    Please go ahead and follow the links and instruction given in the link below:
    http://forums.adobe.com/thread/981369
    -Mandhir

  • "Entitlements are not valid" error message when trying to sync ipa file from iTunes to iPad

    Is anyone else getting this error message, "Entitlements are not valid",  when trying to sync .ipa file from iTunes to iPad?
    The issue I'm having is getting the ipa file that was built by the 'Adobe Flash Packager for Iphone' installed into my iPad.
    So, I have a swf file that works and was able to publish it into the Android Market.  I then compiled and build the same flash project with the Packager for Iphone into an .ipa file.  But when I try and install this .ipa file into my iPad to do my testings, i'm getting the error message. 
    I would like to test my ipa file in my iPad device before submitting it to the Apple Store.
    Any help would be appreciated. thank you.

    Developing for iphone can be amazingly complicated and frustrating.  (even before you start coding).  The process of having to create a Certificate, to approving the Certificate, to Assigning the deviceIDs to the certificate, to creating the AppIDs, to creating the provisioning profiles and then creating the .p12 file... is just too tedious. 
    I solved the problem of the "Entitlements are not valid".   The AppID i had set in the iPhone Developer Portal did not match that of the AppID i had set in the Adobe Flash CS5 -> Publish Settings.  (ie. com.yourdomainname.yourappname).  After I re-entered my AppID and compile, i was able to sync the .ipa file into my ipad. 
    I wish the error message had been a little more descriptive.  Could have saved me a whole day.
    I hope this helps others.  But my guess is, if you don't set the 40 character device ID correctly, or the email in the signingcertificate correctly, you'll get this same generic error message.

  • Entitlements are not valid

    Hello,
    I have an error when I try to put my app on a device: The application "your app name" was not installed on the iPhone "your device name" because the entitlements are not valid.
    I check all the possible steps:
    - Have the app id bound in the provisioning file
    - Have the device bound in the provisioning file
    - Have the provisioning file on the device (Profiles)
    - Have the p12 certificate (Created on a Mac).
    I did this many time, reinstalling the provisioning file and application.
    I create the .ipa from Flash Builder following this tutorial:
    http://iphoneflashdev.blogspot.com/2010/09/i-promise-this-is-last-post-about-this.html
    I don't know if it's something that I'm doing wrong at compilation time, but I get the .ipa.
    I just want to get the game on my device for testing and debugging.
    If someone knows what is wrong, please let me know because I'm blocked.
    Thanks.
    Victor.

    I had this problem when compiling from command line and it turned out that my app.xml wasn't set up correctly.  In my case, I didn't have the correct thing in the <id> tag.  I needed the fully qualified name listed on the Apple developer portal which was com.myCompanyName.MyApplicationName.  Once I switched that, everything worked.  This tutorial is about a different problem, but it has an app.xml that should be valid.  Make sure yours is setup like this one.  http://blog.alastairdawson.com/2010/10/27/getting-a-blank-screen-when-using-adobes-flash-p ackager-for-iphone/

  • Entitlements are not valid valid on compiled app

    I just started using flash cs5 today to try and make a quick app, I have joined apples iphone dev program, I have a cert, and finally figured out how to get a .p12 file (i just dragged it into itunes).  I create an ad hoc file and double click it and it goes into itunes just fine but when I sync my iphone it loads the app on the phone and at the end I get a message saying that it cant use the app because the entitlements are not valid valid.  What am I missing?  I am using windows 7 and not a mac, so alot of this stuff is very new.  Has anyone else encountered this problem?  Any ideas why its not working?

    I faced the same problem, and you probably didn't type the application name in the provisioning profile field in the flash cs5 compiler.
    For example; when you open the flash cs5 compiler, in the deployment tab you have to browse for your provisioning profile and the compiler will automatically type in the field right below the browsing field the following: (com.talalmanaa) - where talalmanaa can be any name you set in apple developer program while you create a provisioning profile -  this is not sufficient coz you need to add the application name after talalmanaa. Hence, you should add your application name to be as the following:
    com.talalmanaa.myAppName
    P.S: you need to make sure that your provisioning profile can accept any application name (for testing) and that's by adding (*) sign before you create prov profile in your Apple's Developer program. so make sure that you type the following before you submit to create a profile:
    com.talalmanaa.* (this start sign means that your provisioning profile can test any application name).

  • Vendor listed in the batch does not reflect actual supplier.

    Hi,
    Vendor listed in the batch does not reflect actual supplier.
    For some (STO's) it reflects the actual supplier & for some it is replaced by receving vendor.
    Regards,
    Sudakar

    Great, that worked, thanks.
    Now I have a small problem. I'm dispatching a MOVE event
    manually at one point to force a listener to trigger, and it seems
    that afterBounds is null. Here's how I'm dispatching the event:
    nativeWindow.dispatchEvent(new
    NativeWindowBoundsEvent('move'));
    While the MOVE listener function is successfully called,
    event.afterBounds.x throws a null reference exception.
    Is there an easy workaround?

  • In an eMail message, when I attempt to save two photos by clicking the 'Save 2 Images' link, not the 'Save Image' link, the images are not saved. (I use I I apologize for the late notice, butOS7 on IPhone5). Is this feature broken?

    In an eMail message, when I attempt to save two photos by clicking the 'Save 2 Images' link, not the 'Save Image' link, the images are not saved. (I use I I apologize for the late notice, butOS7 on IPhone5). Is this feature broken?

    Please don't post the same question multiple times!

  • In SOLUTION MANAGER, the thresholds for log attrib are not taken in account

    I’m using a SAP SOLUTION MANAGER to monitor any satellites systems.
    In this case, I have a problem with the monitoring of BDoc messages for a satellite.
    I’m declaring some threshold for BDocs in error status and anothers thresholds for BDocs in waiting for response in SOLMAN.
    Unfortunately, the thresholds are not taken in account.
    Here, you should find the threshold in the setup monitoring:
          green to yellow: 10
          yellow to green:   11
          red to yellow:       9
          yellow to green:   8
    When I have only 2 errors in the satellite system and 1 entrie in Waiting status ,I have 2 red alerts in SOLMAN. It is not correct because my thresholds in SOLMAN are greater than this values.
    unfortunately thresholds are only considered for performance attributes
    (see legend in the monitoring setup). For all other MTE types in CCMS
    the tresholds are not considered. The BDoc MTEs that I have used
    in my example is a log attribute.
    Please, someone could you help me to solve this problem or indicate me how to correct this problem with another tips?
    best regards
    cesario

    Sorry, but what you say is not a good idea, since it would mean changing a standard object. But what I posted is ok, using a redefinition of the method GET_DQUERY_VALUEHELPS works perfectly well for the need.
    Regards,
    Xavier

  • I bought a used PowerMacPC G5. I can burn and read DVDs, but I can't read or burn CDs. The CDs are not even recognized. After the drive searches for a while, the CD is ejected without any error messages. The CDs work okay on my iMac.

    I bought a used PowerMacPC G5. I can burn and read DVDs, but I can't read or burn CDs. The CDs are not even recognized. After the drive searches for a while, the CD is ejected without any error messages. The CDs work okay on my iMac.
    I am running Mac OSX 10.4.11. According to the System profiler the CD/DVD drive is a "PioneerDVD-RWDVR-112D." When I compare the information under this heading, the only unusual difference from my iMac is that the G5 reads "Burn Support: Yes (Unsupported)." My iMac reads "Burn Support: Yes (Apple Shipping Drive)."
    Under the System Preferences the options are set to "Ask what to do" when a blank CD or DVD is inserted. Music CD set to open iTunes, Picture CD set to open iPhoto, Video DVD set to open DVD player.
    Do you have any suggestions?
    Thanks, Jack

    Hi Jack, great help so far!
    Internal...
    http://eshop.macsales.com/static_pages/Framework.cfm?page=superdrive/sdl_powerma c_g5.html
    External be sure it's Firewire & not Bus powered...
    http://eshop.macsales.com/shop/firewire/optical-drives/

  • Officejet Pro 8600 Premium error message The drivers for this device are not installed. Code 28

    Printer : Officejet Pro 8600 Premium. model CN577A
    OS : Microsoft Windows 7 Home
    Basic 64
    How is your product connected to your PC? : Network
    Problem description : In Device Manager I've got an error message with the
    Officejet pro 8600 icon - "The drivers for this device are not installed.
    (Code 28)
    There is no driver selected for the device information set or element." I
    have uninstalled and re-installed the driver to no effect. The printer
    appears to be functioning properly.
    This question was solved.
    View Solution.

    Hello, 
    Yes, i too would suggest a clean re-installation of the software.
    Regards,
    Jabzi
    Give Kudos to say "thanks" by clicking on the "thumps Up icon" .
    Click "Accept as Solution" if it solved your problem, so others can find it.
    Although I am an HP employee, I am speaking for myself and not for HP.

  • Hi, I m using an iPhone 4 and my yahoo push email was working just fine but for the last few days I am experiencing some problem that is the emails are not getting pushed , I have to manually fetch the mails. So what could be the reason for this....

    Hi, I m using an iPhone 4 and my yahoo push email was working just fine but for the last few days I am experiencing some problem that is the emails are not getting pushed , I have to manually fetch the mails. So what could be the reason for this.....I have set the email setting to "push" mode. Moreover I can't edit the mail server address ....current it's on Yahoo SMTP server

    Will it get rectified and restored...if so after how long. What could be the reason for such outage kindly share,  as I am facing real problem because of this...

  • When I external edit an aperture photo using Photoshop Elements 9 and then get out, the changes are not reflected in Aperture when I return - this used to work for me but doesn't seem to have for some time - help please?

    Have used Aperture for some time - at some point this stopped working - not sure when
    workflow:
    click photo and elect to use the external editor (Photoshop Elements 9)
    Copy of the photo is created in Aperture with the "O" badge and I am rolled out to Photoshop
    Have to change the type to 8-bit in Photoshop to start making changes
    When done and I exit I am prompted to save the photo
    On returning to Aperture however the "O" badged photo does not get updated/reflect my changes
    Other Things:
    I can find a changed photo sitting in the Aperture Library using finder or Photoshop itself - so I know changes have been made a new file saved (TIFF).
    I am wondering if I am missing some (new) preference such that the changes are not proerly being saved for re-display/storage in the Aperture Library
    I am running Lion OSX at the moment but the behaviour was the same under Snow Lepoard versions.
    Current version of Aperture is 3.1.3, Elements is 9.0
    Any help/suggestions greatfully received

    Try using psd.  Some rerports indicate some confustion between the apps with TIFF.  See:
    https://discussions.apple.com/message/15921933#15921933
    I cannot confirm, nor test, since I use PS CS5, and not Elements.
    Ernie

  • I've been editing images with ease for a long time but now the changes are not being saved.

    I've been editing images with ease for a long time but now the changes are not being saved.
    Also, it is not liking me adding a large ammount of images in one go?

    Remember: we cannot see your machine. There are 9 different versions of iPhoto and they run on 8 different versions of the Operating System. The tricks and tips for dealing with issues vary depending on the version of iPhoto and the version of the OS.  So to get help you need to give as much information as you can. Basic things like :
    - What version of iPhoto.
    - What version of the Operating System.
    - Details. As full a description of the problem as you can. For instance: 'iPhoto won't export' is best explained by describing how you are trying to export, and so on.
    - History: Is this going on long? Has anything been installed or deleted?
    - Are there error messages?
    - What steps have you tried already to solve the issue.
    - Anything unusual about your set up? Or how you use iPhoto?
    Anything else you can think of that might help someone understand the problem you have.

  • Line items for the PO are not automatically displayed

    Hi all,
    When attempting to post an invoice against PO, the line items for the PO are not automatically displayed. When we went to the Listing of PO's and brought this up, we noticed under the "invoice"tab that the: Invoice Receipt & GR-BsdIV is checked.
    need your help
    Thanks
    Fayaz

    Hi,
    Can you check delivery complete indicator in PO. It is in PO item details delivery tab.
    In MIRO transaction, select the  tab Purchase order/scheduling agreement, enter PO number and press enter.
    Right hand side select the layout all information .
    Regards,
    Chandra

Maybe you are looking for