Error regarding CSV table referencing column positions and number of columns [closed] - google-bigquery

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I searched this and found posts saying that this error relates to having the wrong kind of data in a column but my data is the same as what it was previously, and also, I tried to find wrong types of data but I can't see any wrong type of data in any column. I can't even run a sample query inside Bigquery from this table without getting this error:
Error while reading table: tester-253410.test1.TGT_22, error message: CSV table references column position 3, but line starting at position:30 contains only 2 columns.
It's a CSV file that gets uploaded into Google Cloud Storage and then queried by Bigquery. I'm trying to figure out where these positions are so that I can look at the source data and see what the possible problem might be but I don't know where position 3 is, or where line starting at position:30 is.

I recently replaced Office and the new Excel settings were set to use a comma as a decimal instead of a dot.
Having a comma in the data caused CSV to save with semicolons and also changed the 4 columns into 2.
Changing the comma back to a dot did the trick.

Related

F4 search help based on a structure. How does it work? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I've recently been taking closer look at the Function Module 'F4IF_FIELD_VALUE_REQUEST' and saw that you can pass a table, but also a structure to the Parameter 'TABNAME'. When you pass a table name, the F4 help will obviously present entries of said DB-table, giving you the possibility to choose one of them as a value for your parameter. But how does it work if you pass the name of a structure? Since the structure is only a Datatype it doesn't contain any Data itself. Where is the Data I see in the F4-Help coming from then?
thanks in advance,
Jellyfish
When you pass a table name, the F4 help will obviously present entries of said DB-table
No, not necessarily.
It will use the search help defined for that field in the dictionary definition of the database table / structure. You can see those in the transaction SE11 on the tab "Input Help/Check".
The search help for each field might be:
Implemented with a check table, which is usually not the table you are looking at. See the column "check table" to see where the values come from.
Implemented with fixed values. The possible values are taken from the domain of the data type.
Implemented by a specialized picker for that data type (dates and times)
Implemented by an explicit search help, which might:
use a table or view
use a search help exit, which is a function module which provides the data procedurally
or both: The function module receives data from the database and can then process it before it is shown to the user

Oracle Apex Error while updating interactive grid report values [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
I am creating an application in Oracle Apex which using a table with 63 columns where I updated the values. While saving I got this error:
ORA-01733: virtual column not allowed here' while executing a DML command. This error can occur if a column is based on an aggregation or SQL expression.
Have a look at IG's query. I presume that some of columns don't belong to the table IG is based on. All those columns are referred to as "virtual columns" and should not be part of DML executed by automatic row processing.
What to do? Navigate to those columns' properties and set their "Query only" property to "Yes".

VBA Excel Convert 3 Columns into an Arrary [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I have been searching for a way to do this and I feel like I'm hitting a wall. . . I'm new at VBA, so I may not be going about this the right way.
I have a table that looks like this:
I need it to look like this:
The client needs to use this data for various purposes. They tried a Pivot Table, but they hated how it looked and their end users didn't like it either. They also do a lot of other tweaks to the data after it's in the final format.
I was able to get the Names and the Questions to copy/paste to a new sheet in the correct layout. I was then trying to do a For Each loop to filter the Name and copy/paste/transpose the answers to this new sheet. I went this method because the number of questions and names vary all the time.
I do not understand the code I've been seeing and I'm unsure how the older examples I've found online can be manipulated to match my case.
Any suggestions? Or is there another post that is doing something pretty close to what I'm trying to do that I've missed?
Thank you!!
You can do this simply with Power Pivot (a free MS add-in in 2010-2013 (aka Data --> Get & Transform in 2016)
Merely
select the Questions Column to Pivot (create new columns)
Values column --> Answers
Advanced Options Do not aggregate
This is the result using your data as posted:
The only formatting change I made was to turn off the Filter Button under Table Options.
Asuming that the names are sorted and every name does have the same questions, you could run a simple "double match -1" to get the answer as a worksheet formula. (Having list 1 in sheet1 and list 2 in sheet2)
=INDEX(sheet1!$C:$C,MATCH(B$1,INDEX(sheet1!$B:$B,MATCH($A2,sheet1!$A:$A,0)):sheet1!$B$99999,0)+MATCH($A2,sheet1!$A:$A,0)-1)
Formula for B2. Fill right and down.
If you don't want the formulas, hide the sheet and copy/paste values only via VBA to another sheet.
Names do not need to be in complete order but being together "aabb" and "bbaa" will work but "abab" or "baab" will not. Questions do not need to be in any order, but having no "q1" for someone will give him the next "q1" which is found by another name.

How to reference a value to a range of numbers in another list then have values returned from 2 different places where the value is found [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I hope my title made some sense. In essence I am trying to do this with very little programming experience and I understand now that I very much need help. I have been attempting to use Visual Basic because I am trying to sort through a very large list of unrecognized genes. Overall, I am trying to check whether ANY of my "midpoint" (original gene location) values lies in-between any row's "startpoint" and "endpoint" (known gene locations). If it does, then I need both code and name returned to me somehow, even if it matches in more than one row. To make matters worse, it should only do this if its "midchrom" matches the respective row's "chrom".
The list happens to be 3k rows long, hence why I would like to do it this way. I hope I explained myself well enough.. An example of the list is copied at the bottom (I hope csv is fine, first time asking here). I have been able to write no code at all since I don't know how to approach the problem at all, and I've been at it for 2 days, so I have sadly nothing to post.
Any suggestions appreciated! Thank you!
midchrom,midpoint, code, chrom, name, Startpoint, endpoint
chr1, 10052729.5, NM_018896,chr1, Name1, 117328105, 117475235
chr1,10249243,NM_001177888,chr1,Name2,109035529,109052409
chr1,1103696.50,NM_001256327,chr1,Name3,125766078,125845734
chr1,1112610.00,NM_001256360,chr1,Name4,125766078,125845734
chr1,11947610.5,NM_198383,chr1,Name5,12470846.00,12460843.00
chr1,12249877.50,NM_198396,chr1,Name6,125766225,125845740
chr1,12383427.00,NM_001256325,chr1,Name7,109035526,109052415
chr1,12410787.50,NM_020084,chr1,Name8,12383158,12451963
chr1,12470843.00,NM_001003406,chr1,Name9,12383158,12451963
chr1,12494320.50,NM_009783,chr1,Name10,109035538,109052412
chr2,12529476.00,NM_171733,chr1,Name11,125766225,125845740
chr1,12809629.00,NM_001256334,chr1,Name12,125766078,125845734
chr1,12909892.00,NM_001256329,chr1,Name13,175711654,176178148
chr1,13200078,NM_001029326,chr1,Name14,175711654,176281155
chr13,13706259.5,NM_001256328,chr2,Name15,192931857,192942982
chr1,1451461.5,NM_001193140,chr2,Name16,192931857,192942982
chr1,14004645.5,NM_001256359,chr1,Name17,176007934,176281155
chr1,15906995,NM_031601,chr1,Name18,142223122,142606517
chr1,15956960.5,NM_001044308,chr13,Name19,13709000,13706230
As pnuts suggested, you can do this without VBA by creating a matrix:
Add two rows above your data
Tranpose columns "midchrom", "midpoint" and "name" to top-right of your data as in the screenshot. use Paste Special->Values & Transpose
Place the following formula in the top left of the new "table/matrix": =IF(AND(H$1=$D4,H$2>=$F4,H$2<=$G4),H$3,"") - and copy it down and across. If it's 3k gene, the calculation might take a bit, but shouldn't be too long
Every row now shows the names of all genes whose' midpoints lay in between the start- and endpoint of the row's gene (assuming it the same chromatin)
Here's the sample file.

How can I write a script or a batch that will enable me to change image file name to each specific name? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 8 years ago.
Improve this question
I have a bunch of images (thousands) that their file name correspond to an employee number in a spreadsheet. How do I write a script that will change the file name of the image into an an employee number?
This is how spreadsheet looks like:
I have two columns in a spreadsheet "Employeenumber" e.g: 10003568 & "FileName" e.g: A647AC16825A4DBF86E0b704E4E9F853(1).jpg and thousands of rows.
I'm using Windows.
Every time I have to do this, I add another column and in it I compose CMD commands to operate on the data in that row.
So, say you were working in row 2, column C. This formula (in Excel) would be similar to what I'd do.
=CONCATENATE("rename """,a2,""" """,b2,".jpg""")
The resulting text would look like
rename "A647AC16825A4DBF86E0b704E4E9F853(1).jpg" "10003568.jpg"
It would probably be best to include the path to the source image (or both images if you wanted to copy the images to a new location.
Then, copy all the column C cells and paste them into a .CMD script and run it.