Runtime error in Access 2010 when importing csv with VBA - vba

i am writing a simple application in Access 2010 which imports FlatFiles into the database according to an import specification (fixed column lengths).
The following line:
DoCmd.TransferText acImportFixed, "Betreuer_Importspezifikation", "Betreuer", Me.txt_betreuer_path, 0
Produces this error:
Runtime Error '3035': System resouce exceeded
When importing this exact File with this specification in the table manually everything works fine. The same line works with other files and the according specifications. And i also tried to not use the textfield but hardcode the path (same error occured).
Also the file that raises this error only has 37 records with 11 columns and files with >4k records and 150 columns work find so i don't think the size is the problem (although the error message sounds like it).
Does anyone have an idea what the problem could be? I am really out of ideas at this point.
BR

Related

dbt Error : Encountered an error: 'utf-8' codec can't decode byte 0xa0 in position 441: invalid start byte

I have upgraded my dbt version to 1.0.0 yesterday night and ran few connection test. It went well . Now when i am running the my first dbt example model , i am getting below error , even though i have not changed any code in this default example model.
Same error i am getting while running dbt seed command also for a csv dataset . The csv is utf-8 encoded and no special character in it .
I am using python 3.9
Could anyone suggest what is the issue ?
Below is my first dbt model sql
After lots of back and forth, I figured out the issue. This is more like fundamental concept issue.
Every time we execute dbt run, dbt will scan through the entire project directory ( including seeds directory even though it is not materializing the seed ) [Attached screenshot below].
If it finds any csv it also parsed it .
In case of above error, I had a csv file which looks follows :
If we see the highlighted line it contains some symbol character which dbt (i.e python) was not able to parse it causing above error.
This symbol was not visible earlier in excel or notepad++.
It could be the issue with Snowflake python connector that #PeterH has pointed out .
As temporary solution , for now we are manually removing these character from Data file.
I’d leave this as a comment but I don’t have the rep yet…
This appears to be related to a recently-opened issue.
https://github.com/dbt-labs/dbt-snowflake/issues/66
Apparently it’s something to do with the snowflake python adapter.
Since you’re seeing the error from a different context, it might be helpful for you to post in that issue that you’re seeing this outside of query preview.

XLRDError: Unsupported format, or corrupt file

Getting error while reading .xlsx files using pandas. It looks like it is opening the file as it is able to read first 8 char of column name that is employee id but failing with this error. I see a lot of post about this but the last part is never a column name in those error messages. Any suggestions?
In dev environment, when I opened this file as excel and reloaded into server, it worked.
Error: XLRDError: Unsupported format, or corrupt file: Expected BOF record; found 'Employee'
As noted in the release email, linked to from the release tweet and noted in large orange warning that appears on the front page of the documentation, and less orange but still present in the readme on the repo and the release on pypi:
xlrd has explicitly removed support for anything other than xls files.
This is due to potential security vulnerabilities relating to the use of xlrd version 1.2 or earlier for reading .xlsx files.
Solutions available:
specify older xlrd version i.e. xlrd==1.2.0 OR
Use openpyxl on pandas:
Make sure you are on a recent version of pandas, at least 1.0.1, and preferably the latest release.
Install openpyxl: https://openpyxl.readthedocs.io/en/stable/
change your pandas code to be: 
pandas.read_excel('cat.xlsx', engine='openpyxl')
The next pandas release, pandas 1.2, will do this by default.

How to fix error problem when i import excel to postgresql?

I am trying to import an excel file with some Japanese data in it. I tried solutions that use COPY, use pgadmin import but I always end with an error message:
C:/Users/設備53/Desktop/Book4.csv : Invalid argument
and for the way using copy:
ERROR: could not open file "C:\Users\設備53\Desktop\Book4.csv" for reading:
No such file or directory
SQL state: 58P01
I I tried many little things e.g. be careful of the encoding, changing the security parameter etc that I saw on the net.

Generated corrupt large ply file - how to find the error

I just wrote a java class to generate meshes from a cylinder list stored to a ply file. I tested the files with a hand generated list of 3 cylinders. The resulting file I can open both in Meshlab and Cloudcompare.
When I use the class in my real program I have to write a mesh for more than 13000 cylinders.
Cloudcompare gives me the following error : Reading error(no access right?)
Meshlab this one : error details, unexptected eof
I already checked if my ply file contains the exact number of vertices and faces defined in the header. I also assured, there are no nan (checked for 'n','a', etc in winedit) values contained.
I can reproduce the errors with my test file from the 3 hand made cylinder file by deleting the last line. But as mentioned earlier, I already checked if the line numbers are correct (might be an empty line not caught by my eyes though, as scrolling down half a million lines is impossible).
So are there any programs available to parse the ply file for errors? Open source tools would be appreciated here. Or are the files just to large? 436302 lines to be exact. I use ascii version of ply.
Found a non open source tool called nugraf, which provides information about the corrupted line numbers.
Java seems to print NAN with '?'. For this char i did not check, so problem seems to be solved and I can debug my java software now again.

Error trying rename a file

Hi community!
I have an application in VB.Net, in the user's computer is located in program files.
The users run always the program as an Administrators.
But in some cases; when the program try to rename a file in the program files the program throws the following exception:
The given path's format is not supported.
SOURCE = System.Security.Util.StringExpressionSet.CanonicalizePath
Also, happens when I try to copy a file.
The application does the rename or copy automatically and it's the same name for all the users
Example:
Rename(vOld, vNew)
FileCopy(vOld, vNew)
This exception only happen in Win7.
Somebody have an idea what is the reason to some users appear this exception?
This will happen when the user provides an invalid file name, for example one that includes colons.
You should validate that the user-entered file name does not contain any of the values in System.IO.Path.GetInvalidPathChars.
All it's my fault!
-_-'
I'm trying to rename this path:
C:\_MyFile.xlsx
To:
C:\MyFile.xlsx
In my computer all works fine because I have the both files (The users only has the file with the underscore).
When the program try to validate it try to rename the file "_C:\MyFile.xlsx" to "C:\MyFile.xlsx"
The exception don't give much information about my error...