Embedded View Problem

Good Morning all… here is my problem…

I have a form with an embedded view to a different database.

On Submit, I do a field validation and within that I do a uidoc.refresh

I find that half the time, the uidoc.refresh causes the session.currentdatabase property to change from the value of the current database to the value of the database of the embedded document.

This causes subsequent errors in the workflow…

Any one know why this would happen?

I have the same process in other databases and the currentdatabase property isn’t changing.

I know it is this embedded view because if I delete and recreate it, pointing to a different database, I see the uidoc.refresh cause the currentdatabase property to change to the database connected to this new embeddedview

I thank you in advance for any insight you all might have, and for the time you take to respond.