This might not be a bug. As you may know, Mendix does not always flush all database commits immediately. Even if you call Commit in a sub-microflow, the transaction is still part of the main microflow and may not yet be fully finalized at the database level. It sends all objects that will be committed with End Activity in the mail microflow.
The PDF Generator works differently because it renders the page in a separate context (headless browser). If the transaction has not been fully completed yet, the PDF generation may read the previous state of the object instead of the updated value.
To verify this, you can try calling the EndTransaction action from the CommunityCommons module just before generating the PDF. This forces the current transaction to complete and ensures that all committed values are available to the PDF Generator.
If the PDF shows the correct value after using EndTransaction, it confirms that the issue is related to transaction timing rather than a commit failure.
Check whether the user who is committing the modified file has given proper access rights for read/write