Datafile datasource saving => 422 (Unprocessable Entity)
-
@mattfox said in Datafile datasource saving => 422 (Unprocessable Entity):
I cannot see where I need to configure for the location of the poll class code... It shows it in the dropdown in the new UI...
The files will show up in the drop down after you use the Data File Tools tab to upload and compile the templates.
You can see the templates in the file store via this url (or by navigating there in the UI)
ui/administration/file-stores?fileStore=DATA_FILE_TEMPLATE
-
@terrypacker said in Datafile datasource saving => 422 (Unprocessable Entity):
ui/administration/file-stores?fileStore=DATA_FILE_TEMPLATE
When I used your link it redirected me to default...
Regardless... looks like I'm having to resave every data file datasource T_T
The other issue is despite data coming in, looks like mango was still giving a 201 for each datapoint sent into the API even though the API data wasn't going in... -
Anyfurther news? It's still fubar and I've got data now that won't/can't enter the system
-
I've exported and tried to reimport one of my broken datasources that won't update and I get this error:
Data source 'DS_7e7a794c-2686-438a-8b5f-2a28e0ea0db2': templateFileStore --> No read permission for filestore DATA_FILE_COMPILED_TEMPLATE Data source 'DS_7e7a794c-2686-438a-8b5f-2a28e0ea0db2': pollClassFileStore --> No read permission for filestore DATA_FILE_COMPILED_TEMPLATE
-
@MattFox I'm surprised the permissions are not working. How are you importing it? There are specific permissions for the file store in the System Settings area but normally one would import as
superadmin
so I'm confused as to why you don't have permission. -
I am too, I don't understand it myself. I am a superadmin. I'm using the config import/export in the mangoUI
-
I just checked and the problem is because of the file store permissions. In Mango 3.7.x there is no short circuit for
superadmin
to get permission to a file store. This means you have to explicitly set thesuperadmin
role on theDATA_FILE_COMPILED_TEMPLATE
File Store Read Permission.The 422 error is stopping you from updating the data source to point to the correct poll class.
-
@terrypacker said in Datafile datasource saving => 422 (Unprocessable Entity):
DATA_FILE_COMPILED_TEMPLATE
Ok I've added the permission explicitly and still no change. I restarted mango trying to load your debug. I'm not seeing debug so I'm wondering if it's how I start mango...
Realised I'm still booting mango as if it were 3.5.6.I take it it's preferred if I boot as if it's 3.6+?
-
I just had @Dave-Frazier try to get it working in 3.7 and he wasn't able to. I won't have time until later this week at the earliest.
Can you not approach this problem a different way, are you using the data file import functionality? It sounds like you are not. Perhaps you could just use settable virtual no-change data points to store your values in from the REST api?
-
Cripes Id love to but we are talking five thousand plus points here. Thanks so much for digging deeper