Error in BAPI RFM code Generator

Hi,

We are currently focusing on Invoking BAPI with UiPath. In the RFC code Generator when I connect to SAP getting connected successfully popup. While Searching for the RFC name and after clicking the Search button Facing an issue. I have pasted the error snapshots. Please do help out to resolve the issue.


Getting the Exception as :" See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at RfcCodeGen.RfcCodeGenForm.Worker_Completed(Object sender, RunWorkerCompletedEventArgs e)
at System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e)
at System.ComponentModel.BackgroundWorker.AsyncOperationCompleted(Object arg) "

Thanks,
Swapna. S
Uploading: snip1.JPG…

@s.swapna8

Hello Swapna,
I tried it and I can reproduce this behaviour. Please take a look at your dev_nco_rfc.log file, you can find it in the same directory as the RFM Code Generator executable. In my case I got this message:

SAP.Middleware.Connector.RfcCommunicationException: The only destination RFCCodeGen available failed when retrieving metadata from XYZ -- see log for details

Leave the System ID field blank.

Try it again and let us know your results.
Best regards
Stefan

1 Like

Hi @StefanSchnell

I tried with the solution you provided. But still facing the same Error.

1 Like

@s.swapna8

Hello Swapna,
the error that popped up yesterday at my system no longer appears today, but it seems that have other causes than yours.

In your case the error pops up if the worker has completed its job.
Is this the entire Exception Text? If not would you please post the full one.
Is a text displayed in the status bar? If yes, which?
Which Windows version and which dotNET version do you use?

I can reproduce this error if no connection to the backend system exists.
image
Are you really sure that there is a connection to the SAP backend system? Maybe the connection was interrupted.

Thanks and best regards
Stefan