We're converting SharePoint documents to PDF via Flow.
It takes about a minute to convert a 100kB Word file to a PDF with all the same SharePoint metadata.
Issue
Some Quickparts that's take data from SharePoint columns (also available in the Document Information Panel) are not displayed correctly once a file is copied to OneDrive for Business. It's then converted to PDF incorrectly.
Flow summary
We use the OneDrive for Business (OD4B) PDF converter, which I can only get working on local documents in OneDrive. This means we have to copy the SharePoint (SP) document to OD4B before starting the conversion. The PDF is then copied back to the SP doc libary and metadata updated.
1 SP - For a selected item
2 SP - Get item
3 SP - Get file content
4 OD4B - Create copy of source file on OneDrive
5 OD4B - Convert file using path (Preview) - type PDF
6 OD4B - Create PDF on OneDrive
7 OD4B - Get PDF file content
8 SP - Create copy of PDF in doc library
9 SP - Get PDF item ID
10 SP - Update PDF columns
11 OD4B - Delete copied source file
12 OD4B - Delete pdf
Reproducing the error
We use Quick Parts from SharePoint columns to input controlled document information.
The data is editable in the document information panel (DIP).
This information is changing at the first OD4B step, step 4.
In particular, lookup columns seem to return the list location, not the list value.
e.g. Document type: "Report", instead displays "4" (user selects from list: Calculation, Specification, Proposal, Report etc.)
More information
From further testing outside of Flow, it appears that SharePoint DIP / quickparts don't work after a document is copied into OneDrive for Business.
If said doc is opened in Word online, it displays correctly
If said doc is opened in Word client, it throws this error:
Some external data was not retrieved. The form will load without the requested data.
(more details - this repeats for each error)
The query cannot be run for the following DataObject: list_22a361f3-b0c4-4912-a250-43095581c6e7
Document Information Panel cannot run the specified query.
The SOAP response indicates that an error occurred on the server:
Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.
<detail><errorstring xmlns="http://schemas.microsoft.com/sharepoint/soap/">
List does not exist.
The page you selected contains a list that does not exist. It may have been deleted by another user.
</errorstring><errorcode xmlns="http://schemas.microsoft.com/sharepoint/soap/">0x82000006</errorcode></detail>
...
So I'm guessing the XML docprops, which rely on the original Sharepoint column information, lose their datasource when the document is copied out of the Sharepoint library.
Request
Thanks in advance for any workarounds / solutions.