• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

PDF upload error|Power Query|Excel Forum|My Online Training Hub

You are here: Home / PDF upload error|Power Query|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumPower QueryPDF upload error
sp_PrintTopic sp_TopicIcon
PDF upload error
Avatar
John Langham-Service
Member
Members
Level 0
Forum Posts: 51
Member Since:
July 17, 2018
sp_UserOfflineSmall Offline
1
January 8, 2021 - 2:53 am
sp_Permalink sp_Print

Hi Me Again

I have got my pdfs uploading from a folder and working fine filtered for the files I need and combining the 1st and 2nd pages but when a file with only one page added (supposedly filtered out by name containing "EIRE") the query that pulls the second page in fails, the transform sample query gives the error below if I remove the single page file it works again.

Expression.Error: The key didn't match any rows in the table.
Details:
Key=
Id=Page002
Table=[Table]

Eventually I intend to extract the data from the "Eire" files and append the the main table once I get this bit working

sp_AnswersTopicSeeAnswer See Answer
Avatar
Catalin Bombea
Iasi, Romania
Admin
Level 10
Forum Posts: 1810
Member Since:
November 8, 2013
sp_UserOfflineSmall Offline
2
January 9, 2021 - 2:09 am
sp_Permalink sp_Print sp_EditHistory

Hi John,
you should separate the queries for page 1 and 2. For page 2, catch the error with: try...otherwise .

Should be something like: try GetData(page2) otherwise #table( Table.ColumnNames(Page1), {} )

This way, instead of an error, you will get an empty table if page 2 is not in the file.

Avatar
John Langham-Service
Member
Members
Level 0
Forum Posts: 51
Member Since:
July 17, 2018
sp_UserOfflineSmall Offline
3
January 9, 2021 - 3:12 am
sp_Permalink sp_Print

Hi Catalin,

I have split the query and will add the try otherwise error catch.

I just dont see how the Orders_Page2 query errors out when I thought I had already filtered out the single page "EIRE" files at source before the Transform query kicks in

Avatar
Catalin Bombea
Iasi, Romania
Admin
Level 10
Forum Posts: 1810
Member Since:
November 8, 2013
sp_UserOfflineSmall Offline
4
January 9, 2021 - 2:17 pm
sp_Permalink sp_Print sp_EditHistory

Use the Go To Error button that shows up in Transform sample2 query. Will highlight [id="Page002"]

Even you are filtering, automatic transformation steps remains as they are, they will not follow any other changes, they are not flexible.

Even if you filtered  out the page, that page is hard written into the query and is still trying to perform operations on that page

Use try -otherwise in that query

sp_AnswersTopicAnswer
Answers Post
Avatar
Catalin Bombea
Iasi, Romania
Admin
Level 10
Forum Posts: 1810
Member Since:
November 8, 2013
sp_UserOfflineSmall Offline
5
January 9, 2021 - 3:18 pm
sp_Permalink sp_Print

22.jpgImage Enlarger

sp_PlupAttachments Attachments
  • sp_PlupImage 22.jpg (63 KB)
Avatar
John Langham-Service
Member
Members
Level 0
Forum Posts: 51
Member Since:
July 17, 2018
sp_UserOfflineSmall Offline
6
January 11, 2021 - 10:12 pm
sp_Permalink sp_Print

Thanks Catalin didnt know that despite filter it hardcodes and also try/otherwise is a new one for me.

Now I just have to get the way the .pdf report is produced, locked down as latest one has an extra column :GrrrrrCry

Avatar
John Langham-Service
Member
Members
Level 0
Forum Posts: 51
Member Since:
July 17, 2018
sp_UserOfflineSmall Offline
7
July 5, 2021 - 9:59 pm
sp_Permalink sp_Print

Hi,

This has been working fine until a third page was added, now the transform sample file (2) is blank and the query gives a couple of errors

Expression.Error: The column '' of the table wasn't found.

Details:

details are blank and when I goto error I get this.

Expression.Error: The field '' of the record wasn't found.
Details:
Source.Name=01.07.2021
Column1=
Column2=
Column3=
Column4=
Column15=
Attribute=
Value=
Attribute - Copy=

I can't see what needs to be changed in the try/let to make it work

 

John

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Andy Kirby, Shanna Getschel, Ryan Marceau, Darrell Hodge, Mike Green, Tiffany Kang
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 871
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
Jessica Stewart: 204
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Maria Conatser
Jefferson Granemann
Glen Coulthard
Nikki Fox
Rachele Dickie
Raj Mattoo
Mark Luke
terimeri dooriyan
Jack Aston
AndyC
Forum Stats:
Groups: 3
Forums: 24
Topics: 6221
Posts: 27285

 

Member Stats:
Guest Posters: 49
Members: 31908
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.