I want to update a single attribute in local storage from a text field in the UI
However I keep getting the same "Cannot read properties of null" with whatever approach I take
I have a very simple flow of
The local item is being found
My local variable is being set
I've tried various approaches, such as setting to a local variable of entity and passing it to Update
In my most recent one, I started manually defining values but still no luck
Any suggestions on how I can narrow down what's causing the issue or why it would come up?
Thank you for your suggestions @Dorine Boudry , the Id attribute made me wonder if I had done it wrong
So I deleted and recreated the entity using the "Add Entity From Database" feature, and now it works
Would have been nicer to have a clear error message but it is what it is
Hi Andrew,
Look in the console of dev tools or in Service Center if you can find more detail about the error.
How did the record get there in the first place ? That apparently did not fail.
Just for investigative reason : If you change your logic to a delete followed by a create, what happens? Where does it fail than ?
Share the problem oml to help us investigate?
Dorine
Unfortunately it's a work program, so I shouldn't share more than I have to.
If I can't resolve this, then I'l l create a sample app to replicate it
The steps leading up to this
Console did not have any additional information unfortunately
Deleting has a similar issue
This did not work either, same error
In step 2 I suppose you do a create ? Can you share flow and exact assign statement ?
It feels like it goes wrong in the corner of the id attribute.
can you debug and see if this is correct after that assign you do there in that assign right before your update.
What is data type of that client variable you are using and validate it is always correctly populated ?