I have created an email that contains a link to redirect users to a landing page. The users are required to enter their details and so the data is being upserted into a data extension using smart capture.
I am passing the subscriber key to the landing page and the data extension has a field that stores the subscriber keys of the users.
The issue here is that when a user updates the landing page and submits it, instead of updating the relevant record in the data extension a new record is created with the same key and a ','(comma) appended to it. Eg- if the key was '1234' the new record key is '1234,'. If the user updates the details again the new record is updated as expected.
Any thoughts as to why the ',' is getting appended to the key?
My email has the below Amp script:
%%[ var @skey set @skey = AttributeValue("_subscriberkey") SET @URL = ConCat('http://url/testpage?key=',@skey) ]%%
Below is the change to the html generated in my landing page:
<b>Hello %%= RequestParameter('key') =%%</b> <br /> <div> <b>LastName</b> </div> <div> <input type="text" maxlength="80" name="LastName" id="LastName" value="" size="75" /> </div>
Under the processing tab, the action selected is 'Upsert to Data Extension'.
The users can change their last name from the landing page.