I've got a weird of the day. Within a scheduled sc...
# suitescript
m
I've got a weird of the day. Within a scheduled script, I execute a
submitFields()
. I have verified, using my browser's find feature, that the record type name is correct, the field name is correct, the options are correct down to the case, everything. Here's an anonymized example:
Copy code
record.submitFields({
						type: "customrecord_my_thing",
						id: 1234,
						values: {
							"custrecord_my_field": "This is a test."
						},
						enablesourcing: false,
						ignoreMandatoryFields: true
					});
That's right, down to manually specifying the internal ID of the record I want to update. I confirm that the script runs, and it does execute the
submitFields()
... ...And nothing happens. The record doesn't get updated. There isn't even a history entry in the System Notes. Yet the call executed and even returned the ID of my record. What in the world could be causing this? It's like this is failing silently..
n
Probably a UE/WF running on Xedit which is failing and blocking the record from getting updated. Try it in the console and see if it works. Then turn off all UE and WF and then try again from your scheduled script
m
You're right, a UE is indeed getting in the way. Even better: it's editing the same field back to what it was before, resulting in, well, no modification at all. Now I know where to look to fix this. Thanks!
👍 1