pgAdmin 4 v3.0 Query Tool Initialize Error - pgadmin-4

I recently got a new laptop and downloaded pgAdmin 4 v3.0. Before now, I had been running pgAdmin 4 v2.0 with no issues. However, now whenever I try to open the Query Tool (just by going through the drop down Tools menu), I receive the error message "Query Tool Initialize Error". The Query Tool worked for two or three queries after the initial error message, but has been returning the error message whenever selected in the days since then. I am able to create and edit tables and views, but only by right clicking the icons on the left-hand side of the screen. I tried uninstalling and reinstalling pgAdmin to no effect.
Has anyone encountered this issue before?
Query Tool Initialize Error

In Ubuntu 16.04 I updated my pgAdmin 4 version 2.1 to 3.0 and saw the same thing when attempting to open the Query Tool through the drop down menus. While this is not a fix, instead of browsing to http://12.70.0.1:5050 I changed the URL to http://localhost:5050. Then I was able to use the Query Tool via the drop down menus.
Edit: What I did was edit the
pgAdmin4/lib/python3.5/site-packages/pgadmin4/config.py file by
updating the line:
DEFAULT_SERVER = '127.0.0.1'
to
DEFAULT_SERVER = 'localhost'
Now when I open pgAdmin, the Query Tool works accordingly.

Try resetting your layout, under the File entry in the top menu. I suspect that there's something in the layout settings saved under v2.0 that's incompatible with the v3.0 release.

Related

SQLite Query works in DB Browser but not in VSCode

I have current VSCode and SQLite (alexcvzz) extension installed on Windows 11. Also have DB Browser installed. The following query works perfectly in DB Browser but not in VSCode. I opened DB in VSCode before attempting the query. Any thoughts as to why it's not working? Thanks for any suggestions (FYI, I'm a nooby with SQLite, VSCode and SQL - Please take that into consideration in your response!).
Query
INSERT INTO OwnerTable (UnitID,Owner,SaleDate,Price)
VALUES (10107,'Public, John Q','2022/03/19','280,000');
VSCode Error Message
[12:45:02 PM][vscode-sqlite][INFO] Activating extension vscode-sqlite v0.14.0...
[12:45:02 PM][vscode-sqlite][INFO] Extension activated.
[12:46:27 PM][vscode-sqlite][ERROR] Runtime error near line 4: unable to open database file (14)
PS: I've done numerous other queries in VSCode on same database and table and they have all worked without any issues.
Thanks forpas. I checked out your suggestion just to make sure nothing else was using the data base. Nothing was. Then, I discovered the problem.
I use Windows Ransomware Protection. Thought it might be worthwhile to check it out to see if it was blocking the insert command. It was! It was then that I realized that all the other VSCode queries I had run were information retrieval queries, not queries that wrote to the database. All I had to do was "allow" the SQLite.exe file. That was the difference. Still don't know why it worked for DB Browser but not VSCode.

MongoDB compass not initializing

I am trying to install MongoDB compass, however, my screen is getting stuck at initializing screen. Please help me as I really need help here. Here are the entire details: -
OS - Windows 8.1 64bit
Powershell version - 4.0 (I also tried to change the execution policy remote assigned. but that also didn't help)
MongoDB server version - 4.2.0 stable (tried MSI version)
MongoDB compass version - tried both (1.23beta version and 1.22 stable version)
I have also tried to install and uninstall multiple times.
Could anyone please help me? Any help will be highly appreciated.
Thanks in advance.
Have you tried adding this path C:\Windows\System32\wbem to your user Path variable?
I also had the same problem on Windows 10 and this has resolved my issue.
I found the fix there: https://dev.to/debugagrawal/fix-mongo-db-compass-initializing-screen-error-131e
Step by step instruction for less experienced Windows users:
Kill all running Compass instances using Task Manager (i.e. Ctrl + Shift + Esc, then find running instances, if any, and kill them with right click and End task)
Right click on This PC and then Properties
You should be in Control Panel\All Control Panel Items\System
Click Advanced system settings link on left pane
On System Properties window go to Advanced tab
Click on Environmental Variables button closer to bottom of the page
Select Path in top list window (User variables)
Click Edit button located below that list window
Click New button to create new entry on the list
Paste C:\Windows\System32\wbem and click OK.
Another OK on Environmental Variables window
And another OK in System Properties window
Now you can try to run MongoDB Compass application again.
Hey thanks for the blog mention 😄, hope it worked. I faced the same issue while use MongoGUI so I figured out the way to fix it with help of environment variables.
To know more about environment variables you can read this blog, I referred to this to get more clarity on such kind of issues
https://www.digitalcitizen.life/simple-questions-what-are-environment-variables/

pgAdmin 4 v3.3 Download as CSV button not working

My Download to CSV (F8) button is not working. I have a view open and want to export to CSV. It was working, and then I changed nothing and it was not working. I just installed the new version (pgAdmin 4 v3.3) to see if that would fix it. Still it does not work. The Tools>Import/Export... is grayed-put, also.
It does seem like I see a milli-sec refresh to the screen, like something is happening. But I get nothing. It's not in my downloads. Is this a browser thing? I'm using Chrome 69.0.3497.100.
I have looked for answers, not finding anything.
I would so very much appreciate an answer!! I am frustrated!
pgAdmin 4 v3.3 with Postgres 9.5, windows
You have to be in "View/Edit data" mode, so that you can see the rows you want to export as csv. Only then can you access the down arrow (Download as csv)
I had a similar problem, and maybe this is how it is supposed to work, but I had multiple queries in the SQL window which I was highlighting to run. Trying to download as CSV just resulted in the flash of a dialog as you say. Investigating the network Tab I noticed that the request to the server was failing.
You need to highlight the query you want to extract as CSV, otherwise it seems to run the whole window. It is not, as you would expect just processing the result window.
This was version 4.23 running inside Docker.

SSRS Deployed reports have disabled parameters in IE, and those without parameters just return a blank screen

I have a set of SSRS reports developed in Visual Studio Data Tools that are used for several clients.
For one particular site, each report will work perfectly in 'Preview' mode in Visual Studio, however when I deploy them and attempt to run them in IE all of the parameters are disabled/greyed out. I also tried to put in a set of default parameters to see what would happen and when I click 'Run Report' I do not even get the 'Loading' image and the report is just blank.
I have checked the IE security settings and have reset them, and also added the report web page location in to trusted sites which unfortunately hasn't made a difference. One thing I have also noticed is that when I try to view Developer Tools in IE, it also just shows a blank white screen.
I've searched online and found a couple of old posts on various websites with a similar issue but none that were ever resolved, and now I am not sure how to proceed.
More info that might be useful:
The client are using IE 11, it is a terminal server style setup with around 8 or 9 users logged on.
The report I am testing with has 2 date parameters first, and two multi-valued parameters (I have tried other reports but with the same issue)
The client recently moved servers and the reports worked fine before, although it was a fresh install of the report so I don't believe there would be any old settings that could be causing it?
Any help greatly appreciated :)
In SSRS, report parameters can be inactive when the report is generated from a snapshot. Removing this option is as follows:
Navigate to the report in SSRS
"Manage" the report from the drop down.
Select "Processing Options" from the left menu
Is "Render this report from a report snapshot" selected? If so, switch
to "Always run this report with the most recent data" option.
Run the report to determine if parameters are now active.
If this fixes your issue, you may need to switch from the snapshot option to the Scheduled Cache option available under the left menu link "Cache Refresh Options"
For one particular site, each report will work perfectly in 'Preview' mode in Visual Studio, however when I deploy them and attempt to run them in IE all of the parameters are disabled/greyed out.
If that is the case, and a previous version of the report was already on the SSRS report server, what you can do is delete the report, and upload it again. There is some kind of cache for the parameters, that causes that if you modify the order of them, some get disabled, and the only way I have found to get rid of it is to delete the old report from the server.
For me this worked:
Open IE
Go to Settings->Compatibility View Settings
Add the URL of your report server.
You could be experiencing an old bug which was reported a long time ago in a connect item:
SSRS Weird Parameters Order Bug (parameter grayed out)
The official Microsoft answer on this subject is:
Currently this behavior is per design. However we will consider this
behavior improvement in a future release of reporting services The
only workaround at this point is to change the order of the
parameters.
Are the parameters on the RDL file set to visible, like below:
Just going to add this as an answer, because it solved the issue for me;
Delete the report on the server & deploy again.
What happens is that you completely remove the report and thus also its parameters. When you deploy a report its parameters their default values do not get overwritten in case it didn't have a default the first time you deployed.

intellij idea data sources doesn't see existing table in the database

intellij idea data sources doesn't see existing table in my mysql database, while Netbeans see it.
i've created a table in the database. When i create connection in intellij idea data sources, it sees my scheme, i do select it in "schemas and tables" but then i don't see it in the list.
every schema, but mine's. When i try to connect to it with netbeans or mysql workbench, it's just ok. same story with several databases, with root access, too. any table, but mine's.
what could be wrong?
i see question like mine's here, related to visual studio, no answer.
please, give a good clue
I had the same problem in IntelliJ IDEA 15.
I fixed it by right clicking the data source -> Properties -> Schemas -> Use legacy introspector.
I found the reason of problem for HSQLDB: There is IDEA bug (i have 11.0 version).
Create db with relative path (relative of MODULE), like this:
jdbc:hsqldb:file:db_file/testDBInMemory;shutdown=true;hsqldb.write_delay=‌​false;
f:\TestModule\db_file\
When added it to Data Sources, IDEA recognizes this path as relative of $IDEA_HOME$/bin folder.
f:\Program Files\JetBrains\IntelliJ IDEA 11.0\bin\db_file\
So you have two different data bases. And when JPA updated first, Data Source doesn't see update in other.
WORKAROUND:
use absolute path in file db url.
For the latecomers still experiencing this, Intellij IDEA also has the following features which might help you as they have me:
'Force Refresh' (ctrl + shift + F5): "The Force Refresh action clears the data source information from cache and loads it again from scratch."
'Forget Cached Schema' which clears the schema cache. Does require you to set which schema you want shown again.
Right click your datasource -> Diagnostics -> 'Force Refresh' or 'Forget Cached Schema'
Source: https://www.jetbrains.com/help/idea/cannot-find-a-database-object-in-the-database-tree-view.html
The answer for me was buried in a comment, so I'm posting it here. The symptom for me was seeing an error like this:
Unable to resolve table 'thetablename'
And the table name was highlighted in red.
The following fixes are all ways to trigger IntelliJ to refresh data sources:
CTRL+ALT+Y to refresh the db stuff, or
CTRL+F5, or
Click the database vertical tab on the right, expand, right-click on each DB connection and select 'Refresh'
Kudos to #ice for answering this earlier in a comment. I'm basically just elaborating and making sure this shows up as an answer.

Resources