AnsweredAssumed Answered

AFWrapper ActiveX Component Can't Create Object error for older PDI files

Question asked by akenyon on Jan 9, 2016

I've read a handful of posts about an ActiveX Component Can't Create Object while running the AFWrapper with ProcessBook. I have a similar error but have yet to find a working solution.

 

The problem I'm running into is that I only receive this error while opening PDI files built using an older version of the AFWrapper. Displays built against the latest version of the AFWrapper open without issue. The two versions were built with the same version of .NET.

 

This is the code that throws the error.

If AFW Is Nothing Then      Set AFW = New Wrapper End If

 

If I take an old file and modify it to the following, the error goes away.

If AFW Is Nothing Then      Set AFW = New AFWrapper.Wrapper End If

 

The problem with that is there's several thousand files that need to be modified with a number of applications still in production that generate the previous VBA code automatically.

Outcomes