Skip to main content
Post a question

Notifications

Community site session details

Community site session details

Session Id : 2ILY3M1tR5qhYJpMDn/JAl
Finance | Project Operations, Human Resources, ...
Answered

Invoice Capture - The provided document type is not a File type.

Like (0) ShareShare
ReportReport
Posted on 29 Jan 2024 18:36:25 by 44
We tested Invoice Capture in our sandbox environment and have been successfully transferring files from Invoice Capture to D365. We moved it into our production environment and are getting the error: /The provided document type is not a File type/ when selecting /Transfer invoice/.
 
The same files work in Sandbox. So it isn't file corruption. Though strangely the files do not get attached in Sanbox using the Documen type = File as the defaults are set. It grabs the first alphabetical item from the list of document types that is in the File group.
 
The settings are the same in Document types and Document management parameters in both Sandbox and Prod.
 
Any thoughts?
  • AndrĂ© Arnaud de Calavon Profile Picture
    293,518 Super User 2025 Season 1 on 29 Jan 2024 at 22:03:42
    Invoice Capture - The provided document type is not a File type.
    Hi bcbeats,
     
    I'm glad you found a solution for your environment. I checked the coding. It is trying to find a document type. Here it is indeed selecting the first one where the group has the value 'File'. 
    There is no other setting possible for this. In your scenario, you had a wrong setup on a dummy document type.
    I agree with you that it would be better if Microsoft would pull the document type from a parameter setting or the default document types instead of relying on a group field on the document types. Anyway, Microsoft will most likely initially tell customers to use intended setup data for the document types. Acknowledgment from Microsoft that this is a bug that needs to be solved as soon as possible will be hard. Anyway, you can try submitting a support ticket.
  • Verified answer
    bcbeats Profile Picture
    44 on 29 Jan 2024 at 21:27:32
    Invoice Capture - The provided document type is not a File type.
    Found the problem.

    For some reason Invoice Capture ignores the Document management preferences -> Default document types. It grabs the first Document type in the list alphabetically that is in the group File. In our case, it was a dummy setup that mismatched Simple note with File. I flipped it to Simple note and Note, Invoice capture then went to the next Document type in the list which is Attach file and File. 
     
    I can't find out if there is somewhere else where Invoice Capture is pulling its defaults from. If not, this is an issue that MS needs to correct.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,518 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,594 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans
Loading complete