Error BC31539 : For just a single line of code written in Invoke Code activity

Hi All,

I’m getting this error code BC31539 for just line of code written in Invoke Code activity.

I’ve imported the required namespace as well as shown in the screenshot.

Not sure, why this error keeps on poping up.

Please help

Hi @Ilangos

Could you give these two threads a read? They both contain a post marked as a solution and the error matches yours:

Hi loginerror,

I did tried the approach mentioned in those two threads. For me it is still throwing the same error :frowning:

Go to manage packages and install the following package: Microsoft.Office.Interop.Excel as mentioned in this post: Assembly reference error while using excel operations in Invoke code actvity

1 Like