With the huge amount of information you have provided, We would normal consult my crystal ball to fill the gaps. Alas, our crystal ball is still in the workshop getting repaired.
Therefore, you are going to have to provide some more information.
Which program and Version and build number? Which Operating system? Exactly what does the error message say?