Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

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

Posted on by 42
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
    André Arnaud de Cal... 291,101 Super User 2024 Season 2 on at
    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
    bcbeats 42 on at
    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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,101 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,908 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans