Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
evansabres
Specialist
Specialist

Blank field name not allowed

I am loading in data from a .tsv file

TBL_USERPROFILES:

GENERIC LOAD

// ProfileID,

     UserID,

//   PropertyDefinitionID,

//   PropertyCategory,

     PropertyName,

     Capitalize(PropertyValue)

//   LastUpdatedDate

FROM

[User_Profiles.tsv]

(txt, codepage is 1252, embedded labels, delimiter is '\t', msq);

I receive the following error message. Is the error in the data or the script? What would the fix be?

Blank field name not allowed

TBL_USERPROFILES:

GENERIC LOAD

     UserID,

     PropertyName,

     Capitalize(PropertyValue)

FROM

[User_Profiles.tsv]

(txt, codepage is 1252, embedded labels, delimiter is '\t', msq)

20 Replies
vishsaggi
Champion III
Champion III

Does your third field has any values?

evansabres
Specialist
Specialist
Author

I tried this and also added to the other fields and still received the same error

rajivmeher
Creator
Creator

Thanks for the feedback evansabres‌.

Would it be possible to share sample file, so that I can do some troubleshooting on my side?

Regards

Rajiv.

evansabres
Specialist
Specialist
Author

ProfileIDUserIDPropertyDefinitionIDPropertyCategoryPropertyNamePropertyValueLastUpdatedDate
47665257189841577NameFirstNameWords5/18/2016 19:55
47665267189841579NameLastNameAdmin5/18/2016 19:55
49491127404861567Social StreamFacebookID12345676/30/2016 18:03
49491137404861568Social StreamFacebookTokenEA1246/30/2016 18:03
50732577568701577NameFirstNameNico7/28/2016 18:34
50732587568701579NameLastNameRichards7/28/2016 18:34
51903057785881577NameFirstNameDave8/11/2016 21:58
51903067785881579NameLastNameSmith8/11/2016 21:58
51903077785881586AddressPostalCode54518/11/2016 21:58
vishsaggi
Champion III
Champion III

ok. I just added some of your data at my end and i did generic load it worked fine. May be some problem with your delimiter \t. Can you upload your .tsv file here if possible?

rajivmeher
Creator
Creator

Hi Evan

I tried the load on my side by creating a sample file with your data. It worked fine for now. Can you please use this file (replace the path with your file path and see if it works?

Regards

Rajiv.

evansabres
Specialist
Specialist
Author

I still get the same error. I need to check into my data source to see if there is any potential the issue lies there

MarcoWedel

PropertyName


contains empty strings or null values?

swuehl
MVP
MVP

Works just fine for me:

TBL_USERPROFILES:

GENERIC LOAD

    UserID,

    PropertyName,

    Capitalize(PropertyValue) AS PropertyValue

FROM

[https://community.qlik.com/thread/314215]

(html, codepage is 1252, embedded labels, table is @1);

I assume the PropertyName field shows blanks or NULL, so maybe try to check your input data file or use something like

TBL_USERPROFILES:

GENERIC LOAD

    UserID,

    If(Len(Trim(PropertyName)),PropertyName,'DummyField') as PropertyName,

    Capitalize(PropertyValue) AS PropertyValue

FROM

[https://community.qlik.com/thread/314215]

(html, codepage is 1252, embedded labels, table is @1);

rajivmeher
Creator
Creator

Thanks. Please have a check on data quality to see if any of the column bring any blank or null value. If not, your script should run perfectly. Just as a last check try the following:

TBL_USERPROFILES:

GENERIC LOAD

    IF(ISNULL(UserID), 'Other', UserID) AS UserID,

    IF(ISNULL(PropertyName), 'Other', PropertyName) AS PropertyName,

    IF(ISNULL(PropertyValue), 'Other', PropertyValue) AS PropertyValue

FROM

[User_Profiles.tsv]

(txt, codepage is 1252, embedded labels, delimiter is '\t', msq);

Regards

Rajiv.