Highlighted
Regular Contributor.
Regular Contributor.
798 views

I got this error when I replay my script ( Http Status-code=409 (conflict) ) in LR how to fix it ?

I record a script , when I replay the script it give me this error (vuser_init.c(29): Error -26622: HTTP Status-Code=409 (Conflict) for "http://lbslx-imaljava:8202/imal_core_portal_cp_mashreq_o12/login/unSecureAction_prelogin" [MsgId: MERR-26622])

How to fix this error?

thanks

0 Likes
12 Replies
Highlighted
Super Contributor.. Super Contributor..
Super Contributor..

Re: I got this error when I replay my script ( Http Status-code=409 (conflict) ) in LR how to fix it

We need more information about what you are trying to script. 

what version of LoadRunner(VuGen) are you using?

would be helpful to see the script too 

Highlighted
Respected Contributor.
Respected Contributor.

Re: I got this error when I replay my script ( Http Status-code=409 (conflict) ) in LR how to fix it

Hello, 

Could you please let us know the request type (GET, POST, PUT. DELETE)

THanks.

Highlighted
Regular Contributor.
Regular Contributor.

Re: I got this error when I replay my script ( Http Status-code=409 (conflict) ) in LR how to fix it

This error appear in login transaction
I use 12.55 LR
/* -------------------------------------------------------------------------------
Script Title :
Script Description :


Recorder Version : 911
------------------------------------------------------------------------------- */

vuser_init()
{

web_add_auto_header("Upgrade-Insecure-Requests",
"1");

/*Correlation comment - Do not change! Original value='sz8jQL6FUOEm2RQGs9VpX118NY3fF72UqkBR4H1Lbln/NbFe2sJ0i7wpfmqrFG8V' Name ='CorrelationParameter' Type ='Manual'*/
web_reg_save_param_ex(
"ParamName=CorrelationParameter",
"LB== '",
"RB='",
"Ordinal=2",
SEARCH_FILTERS,
"Scope=Body",
"RequestUrl=*/unSecureAction_prelogin*",
LAST);

/*Correlation comment - Do not change! Original value='14020031424' Name ='value' Type ='ResponseBased'*/
web_reg_save_param_regexp(
"ParamName=value",
"RegExp=src=\"/imal_core_portal_cp_mashreq_o12/login/js/Login\\.js\\?_=(.*?)\"></script",
SEARCH_FILTERS,
"Scope=Body",
"IgnoreRedirections=No",
"RequestUrl=*/unSecureAction_prelogin*",
LAST);

/*Correlation comment - Do not change! Original value='b4ZfybkyTfQRCGPdprJP44CnKhmv0s6INWtjvcXfRtmpE5NUZjtthsqLniajyiv1' Name ='CorrelationParameter_2' Type ='Manual'*/
web_reg_save_param_ex(
"ParamName=CorrelationParameter_2",
"LB== '",
"RB='",
"Ordinal=2",
SEARCH_FILTERS,
"Scope=Body",
"RequestUrl=*/unSecureAction_prelogin*",
LAST);

web_url("unSecureAction_prelogin",
"URL=http://lbslx-imaljava:8202/imal_core_portal_cp_mashreq_o12/login/unSecureAction_prelogin",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=images/img/top_lef.gif", ENDITEM,
"Url=images/img/cen_lef.gif", ENDITEM,
"Url=images/img/top_rig.gif", ENDITEM,
"Url=images/img/top_mid.gif", ENDITEM,
"Url=images/img/bot_rig.gif", ENDITEM,
"Url=images/img/bot_mid.gif", ENDITEM,
"Url=images/img/cen_rig.gif", ENDITEM,
"Url=images/img/bot_lef.gif", ENDITEM,
LAST);

web_set_sockets_option("SSL_VERSION", "2&3");

lr_start_transaction("TR1_Login");

web_revert_auto_header("Upgrade-Insecure-Requests");

web_add_auto_header("Origin",
"http://lbslx-imaljava:8202");

web_submit_data("j_spring_security_check",
"Action=http://lbslx-imaljava:8202/imal_core_portal_cp_mashreq_o12/login/unSecureAction_prelogin",
"Method=POST",
"RecContentType=text/html",
"Referer=http://lbslx-imaljava:8202/imal_core_portal_cp_mashreq_o12/login/unSecureAction_prelogin",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=PATHPARAM", "Value=DBAu/1ur8s2Oq/1n3TD5tRICutNCSnUYwnGH3rN8QEqhElugryO8jmV1zU6iA4MromyFVFer3DjPX89HsX79iOXHFssJpO2GHYsWh+POwhF7obn9tsnK39K1u5q66YxKnUg55YVOX+E3W+IzrcPJTYGHr1uiZQDKKAxbEeGGlG/Wc2ElaxMeky16sxAkwUmDYQY1TlZufypFjeizaFcnXg==", ENDITEM,
LAST);

web_revert_auto_header("Origin");

web_add_auto_header("Upgrade-Insecure-Requests",
"1");

web_submit_data("loginCompBrAction_loginCoBrScreen",
"Action=http://lbslx-imaljava:8202/imal_core_portal_cp_mashreq_o12/pathdesktop/loginCompBrAction_loginCoBrScreen",
"Method=POST",
"RecContentType=text/html",
"Referer=http://lbslx-imaljava:8202/imal_core_portal_cp_mashreq_o12/path/PreMain.jsp",
"Snapshot=t3.inf",
"Mode=HTML",
ITEMDATA,
"Name=PATHPARAM", "Value=QVI4XKyMhgXnzd9L1puRZMCaNHpELb5Y+Qz3o3OX3MPPOtu1N39ODm61DoAmEpC02Yks97bIdtwTklZduY+U7l3Pwix86t/9FCgLku+IH10rNllaXMZp2FxmtuYI1vXsLKm5IXKAn+VfmOLHvjhuKPD2nhYLSZ5b1w6NHDoOecUfxMw58pBCybeEoejzI7ehISjnk+nr0lSLIWJbPxvZ6vJV6uS7FWQmyKlS4vbFFWoNPNpecarcJ3nYaAEfmh9rUkYaM3G+rNiTiwRgjVmQzDkCjkhy5iq9ATojpMsaufGteEl2tnAXSpvu8tIUzKvFkstE/rMK5Ni4KT/bE4XIUw==", ENDITEM,
EXTRARES,
"URL=../common/js/customization/AppMainHeader.js?_={_}", "Referer=http://lbslx-imaljava:8202/imal_core_portal_cp_mashreq_o12/pathdesktop/loginCompBrAction_!loginCompBr.action?PATHPARAM=di4g73sfnqAr5R1H6aLtomD8U1jU%2FBnslz9BKOQG9gAhjTC3VWKVngnUvbYDIrU1LKfQl%2FcXrTIv4Z5E3TSGomrakxSg8NI%2BrzFmqCohIgCDV6qtA2pYQtBHOt1488Q78NnEu1E2TfakFnwGGezj2A%3D%3D", ENDITEM,
"URL=../common/dashboard/themes/css/PortletPageMenu.css", "Referer=http://lbslx-imaljava:8202/imal_core_portal_cp_mashreq_o12/pathdesktop/loginCompBrAction_!loginCompBr.action?PATHPARAM=di4g73sfnqAr5R1H6aLtomD8U1jU%2FBnslz9BKOQG9gAhjTC3VWKVngnUvbYDIrU1LKfQl%2FcXrTIv4Z5E3TSGomrakxSg8NI%2BrzFmqCohIgCDV6qtA2pYQtBHOt1488Q78NnEu1E2TfakFnwGGezj2A%3D%3D", ENDITEM,
"URL=../common/dashboard/themes/css/PortletPageMenu_Custom_ltr.css", "Referer=http://lbslx-imaljava:8202/imal_core_portal_cp_mashreq_o12/pathdesktop/loginCompBrAction_!loginCompBr.action?PATHPARAM=di4g73sfnqAr5R1H6aLtomD8U1jU%2FBnslz9BKOQG9gAhjTC3VWKVngnUvbYDIrU1LKfQl%2FcXrTIv4Z5E3TSGomrakxSg8NI%2BrzFmqCohIgCDV6qtA2pYQtBHOt1488Q78NnEu1E2TfakFnwGGezj2A%3D%3D", ENDITEM,
"URL=../common/js/portaloptions/PortalHeaderOptions.js?_={_}", "Referer=http://lbslx-imaljava:8202/imal_core_portal_cp_mashreq_o12/pathdesktop/loginCompBrAction_!loginCompBr.action?PATHPARAM=di4g73sfnqAr5R1H6aLtomD8U1jU%2FBnslz9BKOQG9gAhjTC3VWKVngnUvbYDIrU1LKfQl%2FcXrTIv4Z5E3TSGomrakxSg8NI%2BrzFmqCohIgCDV6qtA2pYQtBHOt1488Q78NnEu1E2TfakFnwGGezj2A%3D%3D", ENDITEM,
"URL=../common/style/themeroller/themes/cupertino/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png", "Referer=http://lbslx-imaljava:8202/imal_core_portal_cp_mashreq_o12/common/style/themeroller/themes/cupertino/jquery-ui.css", ENDITEM,
"URL=../common/images/pathSmallLogo.png", "Referer=http://lbslx-imaljava:8202/imal_core_portal_cp_mashreq_o12/pathdesktop/loginCompBrAction_!loginCompBr.action?PATHPARAM=di4g73sfnqAr5R1H6aLtomD8U1jU%2FBnslz9BKOQG9gAhjTC3VWKVngnUvbYDIrU1LKfQl%2FcXrTIv4Z5E3TSGomrakxSg8NI%2BrzFmqCohIgCDV6qtA2pYQtBHOt1488Q78NnEu1E2TfakFnwGGezj2A%3D%3D", ENDITEM,
"URL=../common/style/themeroller/themes/cupertino/images/ui-bg_glass_80_d7ebf9_1x400.png", "Referer=http://lbslx-imaljava:8202/imal_core_portal_cp_mashreq_o12/common/style/themeroller/themes/cupertino/jquery-ui.css", ENDITEM,
"URL=../common/style/themeroller/themes/cupertino/images/ui-bg_glass_100_e4f1fb_1x400.png", "Referer=http://lbslx-imaljava:8202/imal_core_portal_cp_mashreq_o12/common/style/themeroller/themes/cupertino/jquery-ui.css", ENDITEM,
"URL=../common/style/themeroller/themes/cupertino/images/ui-bg_glass_50_3baae3_1x400.png", "Referer=http://lbslx-imaljava:8202/imal_core_portal_cp_mashreq_o12/common/style/themeroller/themes/cupertino/jquery-ui.css", ENDITEM,
LAST);

web_revert_auto_header("Upgrade-Insecure-Requests");

web_add_auto_header("Origin",
"http://lbslx-imaljava:8202");

web_submit_data("loginCompBrAction_moduleRedirect",
"Action=http://lbslx-imaljava:8202/imal_core_portal_cp_mashreq_o12/pathdesktop/loginCompBrAction_moduleRedirect",
"Method=POST",
"RecContentType=text/html",
"Referer=http://lbslx-imaljava:8202/imal_core_portal_cp_mashreq_o12/pathdesktop/loginCompBrAction_!loginCompBr.action?PATHPARAM=di4g73sfnqAr5R1H6aLtomD8U1jU%2FBnslz9BKOQG9gAhjTC3VWKVngnUvbYDIrU1LKfQl%2FcXrTIv4Z5E3TSGomrakxSg8NI%2BrzFmqCohIgCDV6qtA2pYQtBHOt1488Q78NnEu1E2TfakFnwGGezj2A%3D%3D",
"Snapshot=t4.inf",
"Mode=HTML",
ITEMDATA,
"Name=PATHPARAM", "Value=oSIompREjuAKpM7tyYD8/ScFvjfin+zlLMtP51bqGWSHFQQZYdxy2tQValxnfdJH71Sgyhgkl903CMunCEy2vOlE/KPbIaORdH8i6KvjCWxcl8cqNxdmCvZ1gEUPsFztNxDMhyMAbQq0iMtMpzfnA4Beq+TAMjVZ2XfwcwbueAYnwuHE6tr0SQji1bdqFRe3", ENDITEM,
EXTRARES,
"URL=../common/js/customization/AppMainHeader.js?_={_}", "Referer=http://lbslx-imaljava:8202/imal_core_portal_cp_mashreq_o12/pathdesktop/DesktopAction_!corePortal.action", ENDITEM,
"URL=../common/dashboard/themes/css/PortletPageMenu.css", "Referer=http://lbslx-imaljava:8202/imal_core_portal_cp_mashreq_o12/pathdesktop/DesktopAction_!corePortal.action", ENDITEM,
"URL=../common/dashboard/themes/css/PortletPageMenu_Custom_ltr.css", "Referer=http://lbslx-imaljava:8202/imal_core_portal_cp_mashreq_o12/pathdesktop/DesktopAction_!corePortal.action", ENDITEM,
"URL=../common/style/themeroller/themes/cupertino/images/ui-icons_72a7cf_256x240.png", "Referer=http://lbslx-imaljava:8202/imal_core_portal_cp_mashreq_o12/common/style/themeroller/themes/cupertino/jquery-ui.css", ENDITEM,
"URL=../common/js/portaloptions/PortalHeaderOptions.js?_={_}", "Referer=http://lbslx-imaljava:8202/imal_core_portal_cp_mashreq_o12/pathdesktop/DesktopAction_!corePortal.action", ENDITEM,
"URL=../common/js/customization/FieldCustomization.js?_={_}", "Referer=http://lbslx-imaljava:8202/imal_core_portal_cp_mashreq_o12/pathdesktop/DesktopAction_!corePortal.action", ENDITEM,
"URL=../common/js/screengenerator/ScreenGeneratorList.js?_={_}", "Referer=http://lbslx-imaljava:8202/imal_core_portal_cp_mashreq_o12/pathdesktop/DesktopAction_!corePortal.action", ENDITEM,
"URL=../common/js/translation/Translation.js?_={_}", "Referer=http://lbslx-imaljava:8202/imal_core_portal_cp_mashreq_o12/pathdesktop/DesktopAction_!corePortal.action", ENDITEM,
"URL=../common/js/dynclientparams/DynClientParams.js?_={_}", "Referer=http://lbslx-imaljava:8202/imal_core_portal_cp_mashreq_o12/pathdesktop/DesktopAction_!corePortal.action", ENDITEM,
"URL=../common/images/loading.gif", "Referer=http://lbslx-imaljava:8202/imal_core_portal_cp_mashreq_o12/pathdesktop/DesktopAction_!corePortal.action", ENDITEM,
"URL=../common/style/themeroller/themes/cupertino/images/ui-bg_diagonals-thick_90_eeeeee_40x40.png", "Referer=http://lbslx-imaljava:8202/imal_core_portal_cp_mashreq_o12/common/style/themeroller/themes/cupertino/jquery-ui.css", ENDITEM,
"URL=../common/style/themeroller/themes/cupertino/images/ui-icons_3d80b3_256x240.png", "Referer=http://lbslx-imaljava:8202/imal_core_portal_cp_mashreq_o12/common/style/themeroller/themes/cupertino/jquery-ui.css", ENDITEM,
"URL=../common/images/mini-top.gif", "Referer=http://lbslx-imaljava:8202/imal_core_portal_cp_mashreq_o12/common/style/layout/layout-default-latest.css", ENDITEM,
"URL=../common/images/mini-bottom.gif", "Referer=http://lbslx-imaljava:8202/imal_core_portal_cp_mashreq_o12/common/style/layout/layout-default-latest.css", ENDITEM,
"URL=../common/images/mini-left.gif", "Referer=http://lbslx-imaljava:8202/imal_core_portal_cp_mashreq_o12/common/style/layout/layout-default-latest.css", ENDITEM,
"URL=../common/style/menu/AccordionMenu.css", "Referer=http://lbslx-imaljava:8202/imal_core_portal_cp_mashreq_o12/pathdesktop/DesktopAction_!corePortal.action", ENDITEM,
"URL=../common/style/themeroller/themes/cupertino/images/ui-bg_highlight-soft_100_deedf7_1x100.png", "Referer=http://lbslx-imaljava:8202/imal_core_portal_cp_mashreq_o12/common/style/themeroller/themes/cupertino/jquery-ui.css", ENDITEM,
LAST);

web_add_auto_header("X-Requested-With",
"XMLHttpRequest");

web_add_header("selector",
"((usrCompBr IS NULL) OR (usrCompBr='RAJ2-1-101')) AND ((applicationName IS NULL) OR (applicationName='RET'))");

web_submit_data("AlertsAjaxServlet",
"Action=http://lbslx-imaljava:8202/imal_core_portal_cp_mashreq_o12/path/AlertsAjaxServlet",
"Method=POST",
"RecContentType=text/plain",
"Referer=http://lbslx-imaljava:8202/imal_core_portal_cp_mashreq_o12/pathdesktop/DesktopAction_!corePortal.action",
"Snapshot=t5.inf",
"Mode=HTML",
ITEMDATA,
"Name=PATHPARAM", "Value=tqiJ/O7PW8I+xF0cnmuQCBrD78VD6XI1xO6QAxgC+nQetL9zF4znrRX9v88u7kUMF5vPPELtxGy0wlbo0BQTTFmAONTAeDkfMxZpFI30y6Xfx/Odpaz9NUxyglWAkMsG7GZKQhp9L72PNK/hjseSp+w71lQ7bIfJhZtTPNrx9xwmJyliLceqMNML1z4BBGLVy7VsVk3dAZuI72iU6frcjeX39dN48rjeN7M0ad+t5O0zVOUEq+c1Vr8GIcfBYD2FdAC2G9Eb6e0nTmUc5Ro+IXi8WDrre0xN59gfP2oXK6FUg588jM+YE5Is7eOuxfI/", ENDITEM,
LAST);

web_custom_request("generateMenuOnRequest",
"URL=http://lbslx-imaljava:8202/imal_core_portal_cp_mashreq_o12/pathdesktop/generateMenuOnRequest?PATHPARAM=q73ULLtlfYcNH%2F02HMEQymx%2BRzEX8Uz4rIKtmAusoN5tWkusLaPuaFZcMtHMFcORBbgqrWxgEp%2BXiFfSGNsSKP8%2F9zt%2BFVyH2HP57Razqr5yC2nElKjt2r7LPhJvztW79gyZBv3pz3w1BbAMSU%2FNv0pQvs7i9UmT307jST3S%2F%2FOUwwE6ZwossCsGyvOElvBrln%2BD4pDPIMzGg629Ep7wKi5BALnlPRyQpItRXUUc7VYl%2FK0JH%2FL8eUpd8K%2Fs8P5l",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://lbslx-imaljava:8202/imal_core_portal_cp_mashreq_o12/pathdesktop/DesktopAction_!corePortal.action",
"Snapshot=t6.inf",
"Mode=HTML",
"EncType=",
LAST);

lr_end_transaction("TR1_Login",LR_AUTO);

return 0;
}
0 Likes
Highlighted
Regular Contributor.
Regular Contributor.

Re: I got this error when I replay my script ( Http Status-code=409 (conflict) ) in LR how to fix it

I think it is post
0 Likes
Highlighted
Regular Contributor.
Regular Contributor.

Re: I got this error when I replay my script ( Http Status-code=409 (conflict) ) in LR how to fix it

We need more information about what you are trying to script. 

this error appear in Login transaction in (vuser_init)

what version of LoadRunner(VuGen) are you using?

Version 12.55

would be helpful to see the script too 

This is the vuser_init code

 

0 Likes
Respected Contributor.
Respected Contributor.

Re: I got this error when I replay my script ( Http Status-code=409 (conflict) ) in LR how to fix it

Hello David,

It seems like there is correlation pending in your script for below parameter,

PATHPARAM

 Please correlate the dynamic parameter and replay the script and let me know the outcome.

 

Thanks.

0 Likes
Highlighted
Regular Contributor.
Regular Contributor.

Re: I got this error when I replay my script ( Http Status-code=409 (conflict) ) in LR how to fix it

I Re-generate the script with (URL based script) the I correlated all dynamic data (PATHPARAM) and other like session token, and the same erroe appear 

0 Likes
Highlighted
Super Contributor.. Super Contributor..
Super Contributor..

Re: I got this error when I replay my script ( Http Status-code=409 (conflict) ) in LR how to fix it

Hello Boudi

the Vuser_init.txt show you capturing some of the dynamic values: however, I don't see were you are using the capture values in the script.

 

please 

Upload a copy of the script to the case

  • In VuGen, open your script
  • Turn on full logging in Runtime settings,
  • Execute the script,
  • Zip up the script using Load Runner VuGen's File > Manage Zip Files… Export ,
    • select the "all files" option,
  • save the script to your desktop
  • then upload
0 Likes
Highlighted
Regular Contributor.
Regular Contributor.

Re: I got this error when I replay my script ( Http Status-code=409 (conflict) ) in LR how to fix it

I uploaded the zip file

thanks 

0 Likes
Highlighted
Super Contributor.. Super Contributor..
Super Contributor..

Re: I got this error when I replay my script ( Http Status-code=409 (conflict) ) in LR how to fix it

Thank you,

Is the captcha security disabled or is it in is the test mode?

Captcha security code cannot be scripted. if it could be then the captcha would be a useless security tool to block bots.

Highlighted
Regular Contributor.
Regular Contributor.

Re: I got this error when I replay my script ( Http Status-code=409 (conflict) ) in LR how to fix it

I did not understand you I need more clarification from your side

what is the Captcha security code ??

And how I do know it is disabled or not 

What do meant by (if it could be then the captcha would be a useless security tool to block bots) ??

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.