Share all details about your problem, including any error messages you may have received.
Hello, I have several instances where I update an object programatically but it does not get updated in the backend.
I updated extended attribute of a managedAttribute and it did not get updated in the db. Today, I updated the proxy of an application and it also did not get updated in the db. could there be a reason why this is happening?
Check logs for potential errors
Even if no error appears in the UI, something could be failing silently in the logs. Look at catalina.out or sailpoint.log to see if there are any warnings/errors when executing your updates.
there is no mapping for an application attribute. so this does not explain why even the proxy app is not updating. I will post the managed attributes mapping later today.
I am already doing this in my code. There are no errors. When I update the proxy app for an application , it gets updated briefly and gets reverted back.
It looks like something external is reverting your updates after they are applied. Here are some steps I can think of to help debug the issue:
1. Check for Background Processes or Syncing Mechanisms
Scheduled Tasks & Workflows: Go to Debug → Task Results and look for tasks running around the time of your update. A scheduled job may be overriding your changes.
Identity Refresh Task: If your update affects identities, check if an “Identity Refresh” task is reapplying old values.
2. Debug Object Persistence
Add debugging logs before and after your update to track changes over time:
Application app = context.getObjectByName(Application.class, "YourAppName");
System.out.println("Before update: " + app.getProxy());
app.setProxy("NewProxyApp");
context.saveObject(app);
context.commitTransaction();
System.out.println("After update: " + app.getProxy());
// Check again after 5 seconds (change it if you wanna test more time)
Thread.sleep(5000);
app = context.getObjectByName(Application.class, "YourAppName");
System.out.println("After 5s delay: " + app.getProxy());
If the proxy value reverts after 5 seconds, something external is modifying it.
3. Manually Update via Debug Page
Try manually updating the proxy via SailPoint Debug → Application and see if it still reverts.
If it does revert, something external is modifying it.
If it doesn’t revert, the issue might be in your update logic.
Run your update and check the logs for unexpected modifications or rollbacks. Be aware that this may generate a large volume of logs, making it tedious to sift through—but if all else fails, this could be the best way to pinpoint the issue.
Hi @dmaan,
Just checking in to see if my response helped you.
If this solution resolved your issue, could you mark it as the accepted answer in the forum? This would help others facing similar challenges and also allow me to continue progressing on my journey as a SailPoint Ambassador.