Hey
i have a problem regarding dates in appfarm.
i’m doing a data process on a date app variable on view load ( the value is empty )
after investigating deeply the problem i found that logic :
- Each time i use the word (months) in a value processor , i’ll always have an error while generating
i have this error
the value is still correctly shown on the page.
it was working before.
thanks
Edit : Seems like it has nothing to do with the “month” value. but the weird part is that sometimes it work, sometimes it doesn’t without changing anything. Date are still calculated correctly
Hi Yassine,
I see that you are doing an Update Object. Can you please confirm that the Datatype of the property you’re attempting to update has not changed?
You can read more about this error here
// Erik
Hey Erik
Yes i’m pretty sure this specific app variable never changed.
i think we can’t talk about data inconsistency because this is an appvariable, am i wrong ?
If this the only thing the update object is doing, is updating the value of the Datetime variables, then it seems like there is some sort if inconsistency in your model.
I have sent you a DM.
Hi!
I am pretty sure it is not the App variable that is the problem directly. Modifying this app variable probably results in some data records being read. And one of those records have a reference to another object that should have been an ID, but a string ("73021572 ") is stored there instead.
Data is mostly dynamic, so you do not necessarily need to have changed anything in the App to encounter a “new” error scenario in the usage of it.
First thing you need to do is to locate that data source containing the corrupt entry, and to do that, you may follow the link Erik posted (or jump straight to the checklist here).
Also: Is looks as is the error message might contain some info about the data source as well: Can you also try to select one of your data sources in Appfarm Create, and modify the URL (+refresh) by replacing the last part with “zTng4n”? If that gives you a data source selected in Appfarm Create, you have probably located the data source. Try to disable the data source to verify that the corrupt record belongs to that data source. And then you may try to locate the record and remove it (with e.g. graphql).
Hi Kristian
thank you for this perspective. now i can see better. i’ll try to locate that database.
Sadly, there is nothing selected when i use you tips ( which is an amazing one by the way )
i’ll come back to you if i have any news
Thanks again !
Hi,
The error in the console is pointing to an ObjectClass. You can run this command in your browser console to find out which Objectclass it is.
reduxStore.getState().objectClasses.find(el => el.id == "zTng4n")
// Erik
Problem Solved
it was indeed a property in one of my database that was being reloaded while changing my Date variable.
to fix it i just had to clean that property ( since my data is in dev, is it not a problem to change it )
Thanks again !