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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
PowerPaul
Helper I
Helper I

Power Query skipping wrapped text from PDF's Column Headers causing Null values in that column

Hi, I am importing from folder that contain invoices stored as PDFs. The format on page 2 of the invoice is a table that contains the line items I need to import. I always chose page 2 from first file and everything comes through except when the column name has text that is wrapped. The issue is that some months the column names have the column header in wrapped text while other months the the text is not wrapped. Here is an example.

PowerPaul_0-1671578637674.png  

PowerPaul_1-1671578701104.png

It appears that power query is only reading the first line in the wrapped text and identifying it as a different column name and providing null values instead of the dates in that column. Its also happening in other columns. 

The PDFs cannot be edited. 

Any advice in fixing this would be appreciated. 

 

5 REPLIES 5
GJL00
New Member

I also need to solve this query. Is there a solution?

 

Thanks

Hi GL00 I have not been able to solve this and no one has provided me a solution on here. If you find one, please share it with me as it would make life so much easier!

PowerPaul
Helper I
Helper I

Also, I want to solve this problem of power query not recognizing wrapped text as the same as unwrapped text when the data source is PDF. I can get the dates from another column but if this happens to any other column, then there would be no solution. Thr real issue is that power query not only doesnt recognize the column header but it makes all values for that column for that invoice null! In this case its the service period for a few invoices being null. The service period is the date of service for the bill. 

PowerPaul_1-1671633351295.png

 

 

 

Jayaselvan
Helper II
Helper II

Hello @PowerPaul ,

Basically your requirement is to automate the task even it may present wrapped column header at any column or just need to fix this maually each time.

Hi Jayasalvan, I would like the process to be automatic. I want to drop the new invoice in the folder and refresh my query to retrieve the new data. It varies month to month and I never know when the text in the columns will be wrapped or not. 

Also, I am using Excel power query for this task. The plan is to keep the data in excel and then upload to power bi. 

Thank you

Helpful resources

Announcements
FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.