Skip to Content
0

Matrix - invalid column number

May 19, 2017 at 12:57 PM

141

avatar image
Former Member
Error - Matrix - invalid column number
During Fill value in Grid column through this error . 
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Fabio Vassura Jul 05, 2017 at 07:12 AM
1

Hi,

I had the same error... after a few attempts it seems to me that the maximum lenght accepted for ColumnUID is 20 characters!

Renaming column names under this limit, it started to work!

Give it a try...

PS: I didn't find any reference to this limit. If confirmed it should be reported to SBO Support.

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Fabio,

i'm having the same issue.
Can you be more specific? You renamed the column... where exactly?

Thanks

0

When you create a DataTable object (binded to a Grid object) pay attention to every "DataColumn"."Name" property;

it seems to have problems if the "Name" lenght is greater than 20 characters.

So if you have:

MyDataTable.SetValue("column_name_more_than_20_characters", rowIndex, value);

you'll get :

Error - Matrix - invalid columnnumber

0
avatar image
Former Member May 19, 2017 at 12:59 PM
0

Dim strCol As String = oRecordset.Fields.Item("U_QUESTION").Value
Dim strAns As String = oRecordset.Fields.Item("U_ANSWER").Value
Dim strArr() As String oHashTable.Add(iHashKey, oRecordset.Fields.Item("U_QSTID").Value) oGridQuest.DataTable.Columns.Add(strCol, SAPbouiCOM.BoFieldsType.ft_AlphaNumeric, 50) If oRecordset.Fields.Item("U_ANSMOD").Value = "COMBOBOX" Then
oGridQuest.Columns.Item(strCol).Type = SAPbouiCOM.BoGridColumnType.gct_ComboBox strArr = strAns.Split("|")
If strArr.Count > 0 Then
For iCount As Integer = 0 To strArr.Count - 1
oGridQuest.Columns.Item(strCol).ValidValues.Add(strArr(iCount), strArr(iCount))
Next
End If Else
oGridQuest.Columns.Item(strCol).Type = SAPbouiCOM.BoGridColumnType.gct_EditText
End If oRecordset.MoveNext()
iHashKey = iHashKey + 1
End While

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

this is code please help me

0

Hi,

Which line is giving the error? Kindly help to highlight it.

Kind regards,

ANKIT CHAUHAN

SAP SME Support

0
avatar image
Former Member May 19, 2017 at 03:19 PM
0

oGridQuest.Columns.Item(strCol).Type = SAPbouiCOM.BoGridColumnType.gct_ComboBox

oGridQuest.Columns.Item(strCol).Type = SAPbouiCOM.BoGridColumnType.gct_EditText

on this line

please support me ..

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hi,

Make sure Grid Column 'strCol' exists. I think, you need to use "U_QUESTION" instead.

Kind regards,

ANKIT CHAUHAN

SAP SME Support

0
Former Member

not solve and through error MATRIX - invalid column no

0
avatar image
Former Member May 20, 2017 at 06:28 AM
0

oGridQuest.Columns.Item(strCol).Type = SAPbouiCOM.BoGridColumnType.gct_EditText

i am use maximum possibility but code through error Matrix invalid column Number

Share
10 |10000 characters needed characters left characters exceeded