cancel
Showing results for 
Search instead for 
Did you mean: 
ArchivedThis topic has been archived. Information and links in this thread may no longer be available or relevant. If you have a question create a new topic by clicking here and select the appropriate board.
mhaslam55
New member
1 0 0 0
Message 1 of 2
579
Flag Post

Invalid parameter Number Error

HP Recommended
Virtual User Generator 12.02
Microsoft Windows 7 (64-bit)

I am currently running into an error that I can't seem to get around.  I have recorded a script using the SQL Protocol against a PowerBuilder 9.0.2 front end application.  In the script there is an autogenerated ID that I am trying to capture using the lrd_save_ret_param.  Code used below:

 

    lrd_stmt(Csr3, "dbo.usp_GetNextId", -1, 1, 0 /*RPC original options*/, 0);
    lrd_assign(&D1880, "ID", 0, 0, 0);
    lrd_bind_placeholder(Csr3, "", &D1880, LRD_BIND_BY_POS, 0);
    lrd_assign(&D1881, "0", 0, 0, 0);
    lrd_bind_placeholder(Csr3, "", &D1881, LRD_BIND_BY_POS, 0);
    lrd_assign(&D1882, "1", 0, 0, 0);
    lrd_bind_placeholder(Csr3, "", &D1882, LRD_BIND_BY_POS, 0);

 

lrd_result_set(Csr3, 0 /*Succeed*/, 0, 0);
lrd_result_set(Csr3, 1 /*No results*/, 0, 0);
lrd_save_ret_param(Csr3,1,0,"ID");

 

I've used this code for years in 11.5 and had no trouble capturing the ID.  However, now when I play back the script.  I am getting an Invalid parameter Number Error.  Followed by this line:

 

lrd_save_ret_param: ERROR, return-code=LRDE2003.  Param="ID"

 

Can anyone tell me what I'm missing or why I might be getting this error?

 

Thanks,

 

Mike Haslam

0 Kudos
1 REPLY 1
Dennis_Handly
Level 7
1,515 1,503 30 63
Message 2 of 2
Flag Post
HP Recommended

This is the wrong company for Servers, Storage, Software, and Networking. Please use the Hewlett Packard Enterprise Community:
http://community.hpe.com/

The correct company for LR is Hewlett Packard Enterprise:

http://community.hpe.com/t5/LoadRunner-Support-Forum/bd-p/sws-LoadRunner_SF

0 Kudos
ArchivedThis topic has been archived. Information and links in this thread may no longer be available or relevant. If you have a question create a new topic by clicking here and select the appropriate board.
† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation