Can't find data record in database table course_categories in moodle - moodle

[I'm getting this error in my moodle][1]
And I can't go in any activity like security and any other activity so I can solve
[1]: https://i.stack.imgur.com/83ofA.png

Related

Error when creating table in BigQuery Google cloud console

I followed this tutorial to export my firestore collections to excel
https://www.youtube.com/watch?v=3J1M1bSwgV8
Ive followed it before and it worked
Now, Iam not being able to make it work. I followed all the steps, but in the end, when I need to create the table, im getting the erro
Failed to create table: Entity "ycCJePRLCrkHXkQyJ9nn" was of unexpected kind "patients".
What I've been successful to do:
– create bucket and export collection in https://console.cloud.google.com/firestore/import-export
– create dataset in https://console.cloud.google.com/bigquery?project=root-catfish-299022
The next step would be to create the table, in which im getting the error

Heroku-Connect with Postgres and Salesforce : The new rows are not synchronized

I'm trying to use Heroku Connect to integrate a Postgres database with Salesforce.
The goal is to add more data from DB to Salesforce.
After connecting I can see updates from Salesforce in Postgres.
I can update existing posts in Postgres and see them in Salesforce.
I can create new records in tables like Leeds, Accounts and Contacts and see all the updates in Salesforce.
The problem with the Opportunity table I manage to update existing records from Postgres, but can not create new records to synchronize with Salesforce.
I.e. produces but updates does not go to Salesforce.
The error obtained is:
{"op": "INSERT", "src": "SFDC", "msg": "We can't save this record because the \u201cOpportunity - Owner Assignment\u201d process failed. Give your Salesforce admin these details. This error occurred when the flow tried to update records: INVALID_CROSS_REFERENCE_KEY: Owner ID: owner cannot be blank. You can look up ExceptionCode values in the SOAP API Developer Guide. Error ID: 1878853328-1317082 (142283924)k up ExceptionCode values in the SOAP API Developer Guide. Error ID: 1878853328-1317082 (142283924)"}
I.e. error tells me that ownerid is blank. But this field is not empty because I give the correct values of ownerid.
INSERT INTO salesforce.opportunity ( name , closedate, stagename, createdbyid, ownerid )
Values('zzzz' ,'2021-12-31','New', '0051t000002VZvKAAW','0051t000002VZvKAAW' )
In Heroku connect this like that:
What could be a problem ??
From the error reported it appears you have a flow configured on the opportunity object. Check the flow logic to see what downstream updates are occurring that could produce this error, or disable the flow temporarily to verify your insert works as expected.

* coming in place of keys when connecting saiku with mongo using apache drill

I am using Apache drill in embedded mode and when I am able to connect to mongo and query in drill successfully.
However when I create a schema in saiku schema designer using driver as "org.apache.drill.jdbc.Driver" and URL as "jdbc:drill:drillbit=hostname:31010" the connection is successful and all collections are also fetched and shown as tables in saiku, but in place of column names "*" is coming and actual column names are not coming.
Dont know what I am missing on.
I figured out the solution and posting in case anyone could benefit. I had created a view in drill with select * from table. When I created view as select col1,col2... from table the issue got resolved.

Magento getting error on product flat data reindixing

Getting this error
while reindexing using ssh command
exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1005 Can't create table './admin_magento16/catalog_product_flat_4.frm' (errno: 150)' in /home/magesite/public_html/store/lib/Zend/Db/Statement/Pdo.php:228
in my magento database there is no catalog_product_flat_4 table is present
what should I need to do for this?
Did you clean Magento cache before reindexing?
I can recommend you to check your database with original Magento Database Repair Tool
able to solve this problem with our team
1st I checked database
checked the core_store table there are 4 store created
also the catalog_product_flat_2 , 3 , 4 tables are missed
I checked my admin panel there is only 1 store
so create the sites from admin panel add added the catalog_product_flat_2 , 3 , 4
then re-index is works fine
cheers :)

Inserting data properly in to sqlite database

I am developing an app that contains a view controller,where the user fills all the fields and when he clicks save,the data must get inserted in to the database.I am able to retrieve the primary key (id) for every reminder saved.But I am unable to insert data,as when I am trying to display it in console,it's displaying null.Please post the correct and relevant code of my requirement to save the data in to created table in database.
It's my humble request to post the code for performing an action in such a way that when I click save,the data must get inserted in to the table of database.I would be pretty glad If I can see the code for retrieval of data to display in the other controller(page) "View/Edit Reminder"...Please help me out.I tried all the ways,I have gone through 100's of solutions.
retrieved data from sqlite database and displaying it on grouped table view
Sqlite iPhone data insertion problem
how to insert value from one table to other table in sqlite3 database
SQLite3 database doesn't actually insert data - iPhone
Why does SQLite not bring back any results from my database
http://www.edumobile.org/iphone/iphone-programming-tutorials/adding-data-using-sqlite-for-iphone/
etc... etc... Please make me get out of this problem
Check the answer of this question:
Storing and retrieving data from sqlite database
It shows how to connect to a database, insert a new record, and retrieve an old one.
Check Out this link:-
how to insert only one username and password in sqlite database
I have explain two method first is how to read from a table and second how to write inside the database.Just before calling any of these methods you have to call the method checkandCreateDatabase.