Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
sanjujeeboy
Creator
Creator

Remove space from field name

i have a field like this in some excel files: 

[Province

],

and in some excel i have field like this : [Province]

how to load all files at same time. Right now if i load , it throws error province field not found because of different formats.

 

Labels (1)
3 Replies
DavidM
Partner - Creator II
Partner - Creator II

You can load columns based on their order @1 if xls file, column letter eg. A if xxls. Like this:

LOAD
A as field1
B as field2

FROM [lib://*.xlsx]
(ooxml, no labels, header is 0 lines, table is [table])
;

Be sure to include no labels in the load.

Brett_Bleess
Former Employee
Former Employee

Sanju, did David's suggestion work for you on this one?  If so, be sure to come back and use the Accept as Solution Button to give him credit and let others know that worked.  If you are still working on things, leave an update.  I cannot think of any better way to go about things than what David described.  

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.
Surya
Creator II
Creator II

Hello.,

Before reload need to change field like this

mid(Province,2,10) as Province

do it in  data model