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 "">lbslx-imaljava:8202/.../unSecureAction_prelogin" [MsgId: MERR-26622])

How to fix this error?

thanks

  • 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 

  • Hello, 

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

    THanks.

  • 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=">lbslx-imaljava:8202/.../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=">lbslx-imaljava:8202/.../unSecureAction_prelogin",
    "Method=POST",
    "RecContentType=text/html",
    "Referer=">lbslx-imaljava:8202/.../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=">lbslx-imaljava:8202/.../loginCompBrAction_loginCoBrScreen",
    "Method=POST",
    "RecContentType=text/html",
    "Referer=">lbslx-imaljava:8202/.../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=">lbslx-imaljava:8202/.../loginCompBrAction_!loginCompBr.action, ENDITEM,
    "URL=../common/dashboard/themes/css/PortletPageMenu.css", "Referer=">lbslx-imaljava:8202/.../loginCompBrAction_!loginCompBr.action, ENDITEM,
    "URL=../common/dashboard/themes/css/PortletPageMenu_Custom_ltr.css", "Referer=">lbslx-imaljava:8202/.../loginCompBrAction_!loginCompBr.action, ENDITEM,
    "URL=../common/js/portaloptions/PortalHeaderOptions.js?_={_}", "Referer=">lbslx-imaljava:8202/.../loginCompBrAction_!loginCompBr.action, ENDITEM,
    "URL=../common/style/themeroller/themes/cupertino/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png", "Referer=">lbslx-imaljava:8202/.../jquery-ui.css", ENDITEM,
    "URL=../common/images/pathSmallLogo.png", "Referer=">lbslx-imaljava:8202/.../loginCompBrAction_!loginCompBr.action, ENDITEM,
    "URL=../common/style/themeroller/themes/cupertino/images/ui-bg_glass_80_d7ebf9_1x400.png", "Referer=">lbslx-imaljava:8202/.../jquery-ui.css", ENDITEM,
    "URL=../common/style/themeroller/themes/cupertino/images/ui-bg_glass_100_e4f1fb_1x400.png", "Referer=">lbslx-imaljava:8202/.../jquery-ui.css", ENDITEM,
    "URL=../common/style/themeroller/themes/cupertino/images/ui-bg_glass_50_3baae3_1x400.png", "Referer=">lbslx-imaljava:8202/.../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=">lbslx-imaljava:8202/.../loginCompBrAction_moduleRedirect",
    "Method=POST",
    "RecContentType=text/html",
    "Referer=">lbslx-imaljava:8202/.../loginCompBrAction_!loginCompBr.action
    "Snapshot=t4.inf",
    "Mode=HTML",
    ITEMDATA,
    "Name=PATHPARAM", "Value=oSIompREjuAKpM7tyYD8/ScFvjfin zlLMtP51bqGWSHFQQZYdxy2tQValxnfdJH71Sgyhgkl903CMunCEy2vOlE/KPbIaORdH8i6KvjCWxcl8cqNxdmCvZ1gEUPsFztNxDMhyMAbQq0iMtMpzfnA4Beq TAMjVZ2XfwcwbueAYnwuHE6tr0SQji1bdqFRe3", ENDITEM,
    EXTRARES,
    "URL=../common/js/customization/AppMainHeader.js?_={_}", "Referer=">lbslx-imaljava:8202/.../DesktopAction_!corePortal.action", ENDITEM,
    "URL=../common/dashboard/themes/css/PortletPageMenu.css", "Referer=">lbslx-imaljava:8202/.../DesktopAction_!corePortal.action", ENDITEM,
    "URL=../common/dashboard/themes/css/PortletPageMenu_Custom_ltr.css", "Referer=">lbslx-imaljava:8202/.../DesktopAction_!corePortal.action", ENDITEM,
    "URL=../common/style/themeroller/themes/cupertino/images/ui-icons_72a7cf_256x240.png", "Referer=">lbslx-imaljava:8202/.../jquery-ui.css", ENDITEM,
    "URL=../common/js/portaloptions/PortalHeaderOptions.js?_={_}", "Referer=">lbslx-imaljava:8202/.../DesktopAction_!corePortal.action", ENDITEM,
    "URL=../common/js/customization/FieldCustomization.js?_={_}", "Referer=">lbslx-imaljava:8202/.../DesktopAction_!corePortal.action", ENDITEM,
    "URL=../common/js/screengenerator/ScreenGeneratorList.js?_={_}", "Referer=">lbslx-imaljava:8202/.../DesktopAction_!corePortal.action", ENDITEM,
    "URL=../common/js/translation/Translation.js?_={_}", "Referer=">lbslx-imaljava:8202/.../DesktopAction_!corePortal.action", ENDITEM,
    "URL=../common/js/dynclientparams/DynClientParams.js?_={_}", "Referer=">lbslx-imaljava:8202/.../DesktopAction_!corePortal.action", ENDITEM,
    "URL=../common/images/loading.gif", "Referer=">lbslx-imaljava:8202/.../DesktopAction_!corePortal.action", ENDITEM,
    "URL=../common/style/themeroller/themes/cupertino/images/ui-bg_diagonals-thick_90_eeeeee_40x40.png", "Referer=">lbslx-imaljava:8202/.../jquery-ui.css", ENDITEM,
    "URL=../common/style/themeroller/themes/cupertino/images/ui-icons_3d80b3_256x240.png", "Referer=">lbslx-imaljava:8202/.../jquery-ui.css", ENDITEM,
    "URL=../common/images/mini-top.gif", "Referer=">lbslx-imaljava:8202/.../layout-default-latest.css", ENDITEM,
    "URL=../common/images/mini-bottom.gif", "Referer=">lbslx-imaljava:8202/.../layout-default-latest.css", ENDITEM,
    "URL=../common/images/mini-left.gif", "Referer=">lbslx-imaljava:8202/.../layout-default-latest.css", ENDITEM,
    "URL=../common/style/menu/AccordionMenu.css", "Referer=">lbslx-imaljava:8202/.../DesktopAction_!corePortal.action", ENDITEM,
    "URL=../common/style/themeroller/themes/cupertino/images/ui-bg_highlight-soft_100_deedf7_1x100.png", "Referer=">lbslx-imaljava:8202/.../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=">lbslx-imaljava:8202/.../AlertsAjaxServlet",
    "Method=POST",
    "RecContentType=text/plain",
    "Referer=">lbslx-imaljava:8202/.../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=">lbslx-imaljava:8202/.../generateMenuOnRequest
    "Method=POST",
    "Resource=0",
    "RecContentType=text/html",
    "Referer=">lbslx-imaljava:8202/.../DesktopAction_!corePortal.action",
    "Snapshot=t6.inf",
    "Mode=HTML",
    "EncType=",
    LAST);

    lr_end_transaction("TR1_Login",LR_AUTO);

    return 0;
    }
  • 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

     

  • 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.

  • 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 

  • 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
  • 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.