Title: Brazil: Modern platform New action displays previously saved record despite /-1 URL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Title: Brazil: Modern platform New action displays previously saved record despite /-1 URL
I’m developing a custom scoped application on the Brazil release and have encountered unexpected behavior when creating records through the modern platform list and form interface.
Steps to reproduce
- Open the custom table’s modern list:
/now/platform/list/x_2267261_blue_p_0_bp_choice/default-view/params/module/d7d9052a47945b10c96ff3f2e16d437f
- Click New. A blank form opens with this URL:
/now/platform/record/x_2267261_blue_p_0_bp_choice/default-view/-1
- Populate the fields and save the record. The form remains open, and the URL changes to the saved record’s sys_id:
/now/platform/record/x_2267261_blue_p_0_bp_choice/default-view/ab02112a47d45b10c96ff3f2e16d431c
- Manually return to the list and click New again.
Expected behavior
A blank form should open to create another record.
Actual behavior
The URL correctly changes back to the new-record route ending in /-1, but the form displays the previously saved record and its field values. Changing those values and saving updates the existing record rather than inserting a new one.
Troubleshooting results
- Reloading the browser clears the behavior and allows a blank new-record form to open.
- Creating records repeatedly through the same table’s classic list and classic form works as expected.
These results suggest that the modern form may be retaining the previous record’s state during navigation, although I haven’t confirmed the underlying cause.
Has anyone encountered this behavior in Brazil? Is there a known issue or a configuration setting I should check?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
@michaelsear your troubleshooting already narrows it down a lot. A browser refresh fixes it, and the classic UI works fine, so the data and table setup are almost certainly OK. What you’re seeing is client-side state on the modern record page not being reset when the route goes back to -1. The URL changes, but the page reuses the same component instance and the form controller keeps the last loaded record instead of re-initialising for a new one.
A few things I’d check:
- Test an OOB table the same way. Go to /now/platform/list/incident/..., create a record, go back, and click New again. If incident behaves the same, it’s a platform issue and you should raise a case with Support. If incident works and only your table doesn’t, it’s something in your app config.
- Check for a custom record page or variant. If your scoped app (or anyone else) cloned the record page in UI Builder, check how the sys_id gets to the form controller. It should be bound to the page’s sysId URL parameter (@context.props.sysId), not to client state or a data resource that only fires on page load. I’ve seen cloned record pages where the binding was changed and the form stopped reacting to route changes.
- Check your patch level. If you’re not on the latest Brazil patch, read the fixed problems list for the patches above yours. Form-controller and navigation issues in Next Experience get fixed in patches fairly often.
- Rule out cache. Clear the browser cache and also flush the instance cache (cache.do) on a sub-prod. It’s unlikely to be the cause, but it’s quick to rule out.
In the meantime, there are a couple of workarounds. You can save with Insert and Stay instead of Save, if that option is on your form. Or you can add a reload/new action that navigates with a full page load rather than in-app routing. Neither is great for end users, but they’ll stop people from overwriting the previous record by accident, which is the real risk here.
If the OOB test reproduces it, I’d raise it with Support with exactly the steps you’ve posted here, plus a HAR file captured while clicking New the second time. That usually speeds things up a lot.
Let me know what the incident test shows. I’m curious whether it’s platform-wide or specific to your table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Hello @Sreeram Nair Sreeram,
Thank you very much for your additional troubleshooting ideas. I greatly appreciate that you shared your thoughts.
I haven't had time to work through all your suggestions, so I can't respond appropriately to any of your follow-up questions yet. But I didn't want to allow more time to pass before thanking you for the sound ideas. Hoping that I have time this week to work through your list of suggestions. If I make it I will send you a reply/results to report what I found.
Thank you again for your thoughts.
Michael